

.co-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  font-family: "Jost", sans-serif;
}

.co-heading {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 0.25rem;
  color: #1a1a1a;
}

.co-subheading {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 2.5rem;
}

.co-login-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: #f9f6f1;
  border: 1px solid #e8e0d4;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #666;
}

.co-login-banner a {
  color: #8b6f47;
  text-decoration: none;
  font-weight: 500;
}

.co-login-banner a:hover {
  text-decoration: underline;
}

.co-login-form {
  background: #f9f6f1;
  border: 1px solid #e8e0d4;
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  display: none;
}

.co-login-form.open {
  display: block;
}

.co-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 600px) {
  .co-login-row {
    grid-template-columns: 1fr;
  }
}

.co-logged-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #f0f7f0;
  border: 1px solid #c8dfc8;
  border-radius: 3px;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
}

.co-logged-bar strong {
  color: #2a5a2a;
}

.co-logout-btn {
  background: none;
  border: 1px solid #c8dfc8;
  color: #555;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.co-logout-btn:hover {
  background: #fff;
  border-color: #aaa;
  color: #333;
}

.co-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .co-layout {
    grid-template-columns: 1fr;
  }
}

.co-section-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e4ddd4;
}

.co-field {
  margin-bottom: 1.1rem;
}

.co-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.4rem;
}

.co-field input,
.co-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  color: #222;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.co-field input:focus,
.co-field select:focus {
  outline: none;
  border-color: #8b6f47;
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.08);
}

.co-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.co-fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .co-fields-2 {
    grid-template-columns: 1fr;
  }
}

.co-btn-primary {
  display: block;
  width: 100%;
  padding: 1.05rem;
  background: #1a1a1a;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition:
    background 0.2s,
    transform 0.1s;
}

.co-btn-primary:hover {
  background: #333;
}

.co-btn-primary:active {
  transform: scale(0.99);
}

.co-btn-secondary {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: #fff;
  color: #666;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 0.75rem;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
  box-sizing: border-box;
}

.co-btn-secondary:hover {
  border-color: #aaa;
  color: #333;
}

.co-btn-login {
  padding: 0.75rem 1.5rem;
  background: #8b6f47;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.co-btn-login:hover {
  background: #7a5f38;
}

.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}

.co-summary {
  background: #f9f6f1;
  border: 1px solid #e8e0d4;
  border-radius: 3px;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

/* Deal banner inside summary */
.co-deal-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #edfaf4;
  border: 1px solid #6ecf9d;
  border-radius: 3px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #1a7a4a;
  font-weight: 500;
}

.co-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid #ede6da;
}

.co-item:last-child {
  border-bottom: none;
}

.co-item-img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid #e4dbd0;
}

.co-item-info {
  flex: 1;
  min-width: 0;
}

.co-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-item-meta {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

.co-item-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  padding-top: 0.1rem;
  text-align: right;
}

/* Struck-through original price shown above discounted price */
.co-item-price-was {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #bbb;
  text-decoration: line-through;
}

.co-totals {
  border-top: 1px solid #e4dbd0;
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.co-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.co-totals-row.discount {
  color: #1a7a4a;
  font-weight: 500;
}

.co-totals-row.grand {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e4dbd0;
}

.co-tax-note {
  font-size: 0.72rem;
  color: #bbb;
  font-style: italic;
}

.co-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-radius: 3px;
  color: #c0392b;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
