/* Checkout Page Styles - Shopify-like Design */

/* Hide global nav and footer when inside checkout */
body:has(.checkout-page) .sticky-nav-container,
body:has(.checkout-page) .section-navi,
body:has(.checkout-page) nav,
body:has(.checkout-page) .section-footer {
  display: none !important;
}

.checkout-page {
  height: 100vh;
  overflow: hidden;
  background-color: #fff;
  font-family: 'Kuniforma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  display: flex;
  flex-direction: column;
}

.checkout-page .top-bar-stripe .top-bar-right {
  display: flex;
}

@media (max-width: 767px) {
  .checkout-page .top-bar-stripe {
    padding-right: 16px;
  }

  .checkout-page .top-bar-stripe .top-bar-center {
    padding-right: 120px;
    text-align: center;
  }

  .checkout-page .top-bar-stripe .top-bar-right {
    right: 16px;
    gap: 10px;
    font-size: 11px;
  }
}

/* Top Header Bar */
.checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  border-bottom: 1px solid #e1e1e1;
  background: #fff;
  flex-shrink: 0;
  z-index: 10;
}

.checkout-topbar-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.checkout-topbar-cart {
  position: relative;
  color: #1a1a1a;
  display: flex;
  align-items: center;
}

.checkout-topbar-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Mobile/Tablet Order Summary Accordion */
.checkout-summary-accordion {
  display: none;
}

@media (max-width: 999px) {
  .checkout-summary-accordion {
    display: block;
    border-bottom: 1px solid #e1e1e1;
    background-color: #fafafa;
  }

  .checkout-summary-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 40px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
  }

  .checkout-summary-toggle-left {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .checkout-summary-chevron {
    transition: transform 0.3s ease;
  }

  .checkout-summary-accordion.is-open .checkout-summary-chevron {
    transform: rotate(180deg);
  }

  .checkout-summary-toggle-price {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .checkout-summary-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 40px;
    background-color: #fff;
  }

  .checkout-summary-accordion.is-open .checkout-summary-accordion-content {
    max-height: 600px;
    padding: 0 40px 20px;
  }

  .checkout-summary-accordion .checkout-discount-field .checkout-input {
    background-color: #f9f9f9 !important;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .checkout-summary-accordion .checkout-discount-field .checkout-input:focus {
    background-color: #fcfcfc !important;
  }

  .checkout-summary-accordion .checkout-discount-field .checkout-input:-webkit-autofill,
  .checkout-summary-accordion .checkout-discount-field .checkout-input:-webkit-autofill:hover,
  .checkout-summary-accordion .checkout-discount-field .checkout-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
    box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
  }
}

.checkout-container {
  display: flex;
  flex: 1;
  align-items: flex-start;
  overflow: hidden;
}

/* Main Content Area */
.checkout-main {
  flex: 0 0 55%;
  width: 55%;
  height: 100%;
  overflow-y: auto;
  padding: 40px 60px 40px 8%;
  box-sizing: border-box;
}

/* Sidebar */
.checkout-sidebar {
  flex: 0 0 45%;
  width: 45%;
  background-color: #fff;
  border-left: 1px solid #e1e1e1;
  padding: 40px 96px 40px 5%;
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
}

@media (min-width: 1440px) {
  .checkout-main {
    padding: 48px 3% 48px 14%;
  }

  .checkout-sidebar {
    padding: 48px 200px 48px 3%;
  }
}

/* Logo (legacy, kept for empty state) */
.checkout-header {
  margin-bottom: 24px;
}

.checkout-logo {
  display: inline-block;
}

.checkout-logo-img {
  height: 32px;
  width: auto;
}

/* Breadcrumb */
.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
}

.breadcrumb-link {
  color: #1773b0;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-active {
  color: #333;
  font-weight: 500;
}

.breadcrumb-inactive {
  color: #999;
}

.breadcrumb-separator {
  color: #999;
}

/* Express Checkout */
.express-checkout {
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.express-label {
  text-align: center;
  color: #737373;
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: "Kuniformatest 50", sans-serif;
}

.paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 54px;
  background-color: #ffc439;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.paypal-btn:hover {
  background-color: #f0b700;
}

.paypal-logo {
  height: 24px;
}

.checkout-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  box-sizing: border-box;
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e1e1e1;
}

.checkout-divider span {
  padding: 0 16px;
  color: #737373;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: "Kuniformatest 50", sans-serif;
}

/* Sections */
.checkout-section {
  margin-bottom: 32px;
}

.checkout-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.checkout-section-title {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 16px;
  color: #333;
}

.checkout-section-divider {
  border: none;
  border-top: 1px solid #e1e1e1;
  margin: 32px 0;
}

.checkout-section-desc {
  color: #737373;
  font-size: 13px;
  margin: -8px 0 16px;
}

.checkout-login-link {
  font-size: 13px;
  color: #737373;
}

.checkout-login-link a {
  color: #1773b0;
  text-decoration: none;
}

.checkout-login-link a:hover {
  text-decoration: underline;
}

/* Form Fields */
.checkout-field {
  position: relative;
  margin-bottom: 16px;
}

.checkout-input {
  width: 100%;
  height: 64px;
  padding: 24px 20px 8px;
  font-family: "Kuniformatest 50", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #14142b;
  line-height: 28px;
  color: #14142b;
  border: 0;
  border-radius: 8px;
  background: #f9f9f9;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s;
}

.checkout-input:-webkit-autofill,
.checkout-input:-webkit-autofill:hover,
.checkout-input:-webkit-autofill:focus,
.checkout-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
  box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
  -webkit-text-fill-color: #14142b !important;
  font-family: "Kuniformatest 50", sans-serif !important;
  font-size: 16px !important;
  transition: background-color 5000s ease-in-out 0s;
}

.checkout-input:focus {
  outline: 2px solid #000 !important;
  outline-offset: -2px;
  background-color: #fcfcfc;
  border: none !important;
  box-shadow: none !important;
}

.checkout-input:focus:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fcfcfc inset !important;
  box-shadow: 0 0 0 1000px #fcfcfc inset !important;
}

.checkout-input:focus + .checkout-label,
.checkout-input:not(:placeholder-shown) + .checkout-label {
  top: 20px;
  font-size: 11px;
  color: #737373;
}

/* Error states */
.checkout-input.is-error {
  background-color: #ffecfc;
  border: 2px solid #ca024f !important;
  outline: none !important;
}

.checkout-input.is-error + .checkout-label {
  color: #9e0038;
}

.checkout-input.is-error:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffecfc inset !important;
}

.checkout-field-error-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: #ca024f;
}

.checkout-field-error-text {
  color: #9e0038;
  font-size: 13px;
  margin-top: 4px;
}



/* Address autocomplete (Photon / OpenStreetMap) */
.checkout-field--address-autocomplete .checkout-input {
  position: relative;
  z-index: 1;
}

/* Input was stacking above the floating label — label must sit on top (pointer-events: none on .checkout-label) */
.checkout-field--address-autocomplete .checkout-label {
  z-index: 2;
}

.checkout-address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  text-align: left;
}

.checkout-address-suggestions-status {
  padding: 12px 16px;
  font-size: 13px;
  color: #737373;
}

.checkout-address-suggestion-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: "Kuniformatest 50", sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #14142b;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  border-radius: 0;
}

.checkout-address-suggestion-item:hover,
.checkout-address-suggestion-item:focus-visible {
  background: #f3f3f3;
  outline: none;
}

.checkout-address-suggestions-attrib {
  padding: 6px 12px 8px;
  font-size: 10px;
  color: #a0a0a0;
  border-top: 1px solid #eee;
}

.checkout-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a7a7a;
  font-family: "Kuniformatest 50", sans-serif;
  letter-spacing: 0.02em;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.15s ease;
  background: transparent;
  padding: 0;
}

.checkout-label-select {
  top: 12px;
  font-size: 11px;
}

.checkout-select {
  width: 100%;
  height: 70px;
  padding: 28px 20px 8px;
  font-family: "Kuniformatest 50", sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #14142b;
  border: 0;
  border-radius: 8px;
  background: #f9f9f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 20px center;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.checkout-select:-webkit-autofill,
.checkout-select:-webkit-autofill:hover,
.checkout-select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
  box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
  -webkit-text-fill-color: #14142b !important;
  transition: background-color 5000s ease-in-out 0s;
}

.checkout-select:focus {
  outline: 2px solid #000 !important;
  outline-offset: -2px;
  background-color: #fcfcfc;
  border: none !important;
  box-shadow: none !important;
}

.checkout-row {
  display: flex;
  gap: 12px;
}

.checkout-row .checkout-field {
  flex: 1;
}

.checkout-field-hint,
.checkout-field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #737373;
}

.checkout-field-hint {
  cursor: pointer;
}

.checkout-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: -8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 8px;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.checkout-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}

.checkout-field-hint:hover .checkout-tooltip,
.checkout-field-hint.is-active .checkout-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Checkbox */
.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.checkout-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #999;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  align-self: center;
  transition: border-color 0.2s ease;
}

.checkout-checkbox:hover input[type="checkbox"]:not(:checked),
.checkout-checkbox input[type="checkbox"]:not(:checked):hover {
  border-color: #000;
}

.checkout-checkbox input[type="checkbox"]:checked {
  border-color: #000;
  background: #fff;
}

.checkout-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.checkout-page .checkout-checkbox label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  min-height: 18px;
  color: #545454;
  cursor: pointer;
}

/* Hide global nav and footer on auth pages (login, register, forgot/reset password) */
body:has(.auth-page) .sticky-nav-container,
body:has(.auth-page) .section-navi,
body:has(.auth-page) nav,
body:has(.auth-page) .section-footer {
  display: none !important;
}

body:has(.auth-page) {
  overflow: hidden;
}

body:has(.auth-page) main {
  padding: 0;
  margin: 0;
}

/* Auth split layout — left scrolls, right image stays fixed */
.auth-page {
  display: flex;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  color: #333;
}

.auth-page-left {
  flex: 0 0 40%;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 5% 40px 6%;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.auth-page-left-inner {
  width: 100%;
  max-width: 400px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.auth-page-right {
  flex: 1 1 0%;
  height: 100dvh;
  min-height: 0;
  background: #000;
  position: sticky;
  top: 0;
  align-self: flex-start;
  overflow: hidden;
}

.auth-page-logo .logo-black {
  display: none;
}

.auth-page-logo .logo-white {
  display: block !important;
}

.auth-page-logo-mark .logo-with-claim-icon {
  height: 63px;
}

.auth-page-logo-mark .logo-with-claim-text {
  font-size: 23px;
}

@media (max-width: 1279px) {
  .auth-page-left {
    flex: 0 0 45%;
  }
}

@media (max-width: 999px) {
  .auth-page-left {
    flex: 0 0 55%;
  }
}

@media (max-width: 767px) {
  body:has(.auth-page) {
    overflow: auto;
  }

  .auth-page {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }

  .auth-page-left {
    flex: none;
    height: auto;
    padding: 32px 24px;
    order: 2;
    align-items: center;
    overflow-y: visible;
  }

  .auth-page-left > * {
    width: 100%;
    max-width: 400px;
  }

  .auth-page-left-inner {
    min-height: auto;
    justify-content: flex-start;
  }

  .auth-page-right {
    flex: none;
    height: 180px;
    order: 1;
    position: relative;
  }

  .auth-page-logo {
    top: 16px !important;
    left: 16px !important;
  }

  .auth-page-logo-mark .logo-with-claim-icon {
    height: 36px !important;
  }

  .auth-page-logo-mark .logo-with-claim-text {
    font-size: 13px !important;
  }

  .auth-page-logo-mark .minimal-nav-claim {
    display: none !important;
  }
}

/* Auth login/register — body text is white globally; checkbox labels need explicit color */
.auth-page .checkout-checkbox label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 18px;
  color: #333;
  cursor: pointer;
}

/* Shipping Options */
.shipping-options-checkout,
.payment-options-checkout {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.shipping-option-checkout,
.payment-option-checkout {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  border-bottom: 1px solid #d9d9d9;
  transition: background-color 0.15s;
}

.shipping-option-checkout:last-child,
.payment-option-checkout:last-child {
  border-bottom: none;
}

.shipping-option-checkout:hover,
.payment-option-checkout:hover {
  background-color: #fafafa;
}

.shipping-option-checkout.is-selected,
.payment-option-checkout.is-selected {
  background-color: #f5f5f5;
}

.shipping-option-checkout input,
.payment-option-checkout input {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
}

.shipping-option-checkout.is-selected .radio-custom,
.payment-option-checkout.is-selected .radio-custom {
  border-color: #000;
}

.shipping-option-checkout.is-selected .radio-custom::after,
.payment-option-checkout.is-selected .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
}

.option-label {
  flex: 1;
}

.option-name {
  display: block;
  font-weight: 500;
  color: #333;
}

.option-time {
  display: block;
  font-size: 13px;
  color: #737373;
}

.option-price {
  font-weight: 500;
  color: #333;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-icons img {
  height: 24px;
  width: auto;
}

.payment-icons img[alt="Visa"] {
  height: 20px;
}

/* Card Form */
.card-form {
  background-color: #fff;
  padding: 16px;
  margin-top: 0;
  border-radius: 0;
  border-bottom: 1px solid #d9d9d9;
}

.card-form .checkout-input {
  background: #f9f9f9;
}

/* Review Block */
.review-block {
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  overflow: hidden;
}

.review-row {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid #d9d9d9;
  align-items: flex-start;
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  width: 80px;
  color: #737373;
  font-size: 13px;
  flex-shrink: 0;
}

.review-value {
  flex: 1;
  font-size: 13px;
  color: #333;
}

.review-edit {
  background: none;
  border: none;
  color: #1773b0;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-left: 16px;
}

.review-edit:hover {
  text-decoration: underline;
}

/* Navigation */
.checkout-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.checkout-back {
  color: #1773b0;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.checkout-back:hover {
  text-decoration: underline;
}

.checkout-btn {
  padding: 18px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.checkout-btn-primary {
  background-color: #000;
  color: #fff;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: "Kuniformatest 70", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 12px 12px 24px;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  width: 100%;
  justify-content: space-between;
}

.checkout-btn-primary:hover {
  background-color: #333;
}

.checkout-btn-primary:disabled {
  background-color: #c8c8c8;
  cursor: not-allowed;
}

.checkout-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #55EC3B;
  color: #000;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.checkout-btn-primary:hover .checkout-btn-icon {
  background-color: #4DD832;
}

.checkout-btn-secondary {
  background-color: #e1e1e1;
  color: #333;
}

.checkout-btn-secondary:hover {
  background-color: #d1d1d1;
}

/* Footer */
.checkout-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e1e1e1;
}

.checkout-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e1e1e1;
}

.checkout-footer-link {
  color: #1a1a1a;
  font-size: 12px;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.checkout-footer-link:hover {
  color: #555;
}

/* Auth page links */
.auth-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}

.auth-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1a1a1a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.auth-link:hover::after {
  transform: scaleX(1);
}

.auth-link-secondary {
  color: #888;
  font-size: 0.8rem;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}

.auth-link-secondary::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1a1a1a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.auth-link-secondary:hover {
  color: #1a1a1a;
}

.auth-link-secondary:hover::after {
  transform: scaleX(1);
}

/* Auth policy inline links */
.auth-policy-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #333;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-policy-link:hover {
  color: #000;
}

/* Policy Modal */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkoutModalFadeIn 0.2s ease;
}

@keyframes checkoutModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.checkout-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: checkoutModalSlideUp 0.25s ease;
}

@keyframes checkoutModalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e1e1;
  flex-shrink: 0;
}

.checkout-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.checkout-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #737373;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
}

.checkout-modal-close:hover {
  color: #1a1a1a;
}

.checkout-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.checkout-modal-body p {
  margin: 0 0 12px;
}

.checkout-modal-body p:last-child {
  margin-bottom: 0;
}

@keyframes checkoutModalMobileSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 767px) {
  .checkout-modal-overlay {
    align-items: flex-end;
  }

  .checkout-modal {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    animation: checkoutModalMobileSlideUp 0.3s ease;
  }

  .checkout-modal-header {
    padding: 16px 24px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
  }

  .checkout-modal-body {
    flex: 1;
    padding: 20px 24px;
  }
}

/* Sidebar - Order Summary */
.checkout-summary {
  position: sticky;
  top: 40px;
}

.checkout-items {
  padding-bottom: 24px;
  border-bottom: 1px solid #e1e1e1;
}

.checkout-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-item:last-child {
  margin-bottom: 0;
}

.checkout-item-image {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.checkout-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #737373;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.checkout-item-specs {
  font-size: 12px;
  color: #737373;
  margin-top: 2px;
}

.checkout-item-variant {
  font-size: 12px;
  color: #737373;
  margin-top: 2px;
}

.checkout-item-price {
  font-size: 14px;
  color: #333;
  flex-shrink: 0;
}

/* Discount */
.checkout-discount-wrap {
  padding-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e1e1e1;
}

.checkout-discount {
  padding: 0;
}

.checkout-discount-field {
  margin-bottom: 0;
}

.checkout-discount-input {
  padding-right: 56px;
}

.checkout-discount-apply-wrap {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.checkout-discount-apply {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: #55EC3B;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.checkout-discount-apply:hover:not(:disabled) {
  background-color: #4DD832;
}

.checkout-discount-apply:disabled {
  background-color: #d1d1d1;
  color: #999;
  cursor: not-allowed;
}

.checkout-discount-apply-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-discount-apply-loading {
  font-size: 18px;
  line-height: 1;
  margin-top: -2px;
}

.checkout-discount-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  font-size: 14px;
  color: #10b981;
}

.checkout-discount-remove-wrap {
  position: relative;
  flex-shrink: 0;
}

.checkout-discount-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.checkout-discount-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #1a1a1a;
}

.checkout-discount-apply-wrap:hover .checkout-discount-tooltip,
.checkout-discount-remove-wrap:hover .checkout-discount-tooltip {
  opacity: 1;
  visibility: visible;
}

.checkout-discount-remove {
  width: 24px;
  height: 24px;
  border: 1px solid #999;
  border-radius: 50%;
  background: #fff;
  color: #737373;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.checkout-discount-remove:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
  background: #fff;
}

.checkout-discount-error {
  color: #ca024f;
  font-size: 13px;
  padding-bottom: 12px;
}

.checkout-total-discount {
  color: #10b981;
}

/* Totals */
.checkout-totals {
  padding-top: 24px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #545454;
}

.checkout-total-row .checkout-help {
  color: #999;
  margin-left: 4px;
  vertical-align: middle;
}

.checkout-total-final {
  padding-top: 16px;
  border-top: 1px solid #e1e1e1;
  font-size: 16px;
  color: #333;
}

.checkout-currency {
  font-size: 12px;
  color: #737373;
  margin-left: 4px;
}

.checkout-total-amount {
  font-size: 24px;
  font-weight: 500;
}

.checkout-vat {
  font-size: 12px;
  color: #737373;
  text-align: right;
  margin-top: 4px;
}

/* Empty State */
.checkout-empty {
  text-align: center;
  padding: 80px 20px;
}

.checkout-empty h2 {
  margin-bottom: 8px;
}

.checkout-empty p {
  color: #737373;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 999px) {
  .checkout-page {
    height: auto;
    overflow: visible;
    display: block;
  }

  .checkout-topbar {
    padding: 16px 40px;
  }

  .checkout-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .checkout-main {
    max-width: none;
    margin: 0;
    padding: 24px 40px;
    height: auto;
    overflow-y: visible;
    width: 100%;
    flex: none;
  }
  
  .checkout-sidebar {
    display: none;
  }
  
  .checkout-summary {
    position: static;
  }
  
  .checkout-nav {
    flex-direction: column-reverse;
    gap: 16px;
  }
  
  .checkout-btn-primary {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .checkout-topbar {
    padding: 16px 24px;
  }

  .checkout-summary-toggle {
    padding: 16px 24px;
  }

  .checkout-summary-accordion-content {
    padding: 0 24px;
  }

  .checkout-summary-accordion.is-open .checkout-summary-accordion-content {
    padding: 0 24px 20px;
  }

  .checkout-main {
    padding: 24px;
  }

  .checkout-row {
    flex-direction: column;
    gap: 0;
  }
}

