/*
 * Storefront modernization (2026-08-03, owner-directed).
 *
 * Presentation only -- the Commerce cart/checkout flow underneath is
 * unchanged. Selectors are scoped to the cart block, the cart page form and
 * the checkout flow so nothing leaks into the marketing pages (which carry
 * their own nav with a hard pixel budget).
 */

:root {
  --cc-brand: #41449f;
  --cc-brand-dark: #35387f;
  --cc-ink: #24262e;
  --cc-line: #e4e6ec;
  --cc-card-shadow: 0 1px 3px rgba(20, 22, 40, 0.07);
}

/* ---------------------------------------------------------------- top bar */

.cart--cart-block .cart-block--link__expand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cart--cart-block .cart-block--link__expand:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* --------------------------------------------------------------- cart page */

form[id^="views-form-commerce-cart-form"] table {
  border-collapse: collapse;
  width: 100%;
}

form[id^="views-form-commerce-cart-form"] td,
form[id^="views-form-commerce-cart-form"] th {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--cc-line);
  vertical-align: middle;
}

form[id^="views-form-commerce-cart-form"] thead th {
  border-bottom: 2px solid var(--cc-ink);
  font-weight: 600;
}

form[id^="views-form-commerce-cart-form"] .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cc-btn-checkout,
input.cc-btn-checkout {
  background: var(--cc-brand) !important;
  border-color: var(--cc-brand) !important;
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.6rem !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(65, 68, 159, 0.35);
  transition: background 0.15s ease;
  order: 3;
}

.cc-btn-checkout:hover,
input.cc-btn-checkout:hover {
  background: var(--cc-brand-dark) !important;
}

.cc-btn-quiet,
input.cc-btn-quiet {
  background: transparent !important;
  color: var(--cc-ink) !important;
  border: 1px solid #b9bcc7 !important;
  border-radius: 8px !important;
  padding: 0.8rem 1.4rem !important;
  order: 2;
}

.cc-btn-quiet:hover,
input.cc-btn-quiet:hover {
  border-color: var(--cc-ink) !important;
}

.cc-continue-shopping {
  order: 1;
  margin-right: auto;
  color: var(--cc-brand);
  text-decoration: none;
  font-weight: 500;
}

.cc-continue-shopping::before {
  content: "\2190\00a0";
}

.cc-continue-shopping:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- checkout */

.checkout-pane {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  box-shadow: var(--cc-card-shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

/* Sidebar summary: keep its own tone, stay in view while scrolling. */
.layout-region-checkout-secondary .checkout-pane,
.layout-region-checkout-secondary {
  background: #f6f7fa;
}

@media (min-width: 992px) {
  .layout-region-checkout-secondary {
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
  }
}

.checkout-pane legend,
.checkout-pane .fieldset-legend,
.checkout-pane > .panel-title,
.checkout-pane h3 {
  font-weight: 600;
  color: var(--cc-ink);
}

/* Wrapper panes must not double-card: the login pane wraps its two option
   cards, and the review step nests a pane inside a pane -- only the visible
   content card keeps the border. */
.checkout-pane.checkout-pane-login,
.checkout-pane .checkout-pane {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* "Payment information (Edit)" on the review step: keep the edit link on the
   title line instead of letting it break out onto its own row. */
.checkout-pane .fieldset-legend,
.checkout-pane .fieldset-legend a {
  display: inline !important;
}

.checkout-pane legend {
  display: block;
  border-bottom: 1px solid var(--cc-line);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
  font-weight: 600;
}

/* Login step: the two options read as side-by-side cards. */
.checkout-pane-login .form-wrapper__login-option {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  box-shadow: var(--cc-card-shadow);
  padding: 1.5rem 1.75rem;
  height: 100%;
}

/* Primary checkout actions (Log in / Create account / Continue / Pay). */
.checkout-pane-login input[type="submit"],
.layout-region-checkout-footer input[type="submit"],
[id^="edit-actions"] input[type="submit"].button--primary {
  background: var(--cc-brand);
  border-color: var(--cc-brand);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.9rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.checkout-pane-login input[type="submit"]:hover,
.layout-region-checkout-footer input[type="submit"]:hover,
[id^="edit-actions"] input[type="submit"].button--primary:hover {
  background: var(--cc-brand-dark);
  border-color: var(--cc-brand-dark);
}

/* Inputs: consistent modern fields. */
.checkout-pane input[type="text"],
.checkout-pane input[type="email"],
.checkout-pane input[type="password"],
.checkout-pane input[type="tel"],
.checkout-pane select {
  border-radius: 8px;
  border: 1px solid #c4c7d2;
  padding: 0.6rem 0.8rem;
}

.checkout-pane input:focus,
.checkout-pane select:focus {
  border-color: var(--cc-brand);
  box-shadow: 0 0 0 3px rgba(65, 68, 159, 0.15);
  outline: none;
}

/* Address form: name and city/state/zip share rows on wide screens. */
@media (min-width: 768px) {
  .checkout-pane .address-container-inline {
    display: flex;
    gap: 1rem;
  }

  .checkout-pane .address-container-inline > .form-item {
    flex: 1 1 0;
    margin-right: 0;
  }
}

/* Payment method choices: airier radio list. */
.checkout-pane [class*="payment-method"] .form-item,
.checkout-pane .form-radios .form-item {
  margin-bottom: 0.55rem;
}
