/*
 * ═══════════════════════════════════════════════════════
 *  DWIJA Diamond — Checkout Page
 *  Rose Gold Luxury Theme (matches home.css)
 * ═══════════════════════════════════════════════════════
 */

:root {
    /* Rose Gold Palette (aligned with home.css) */
    --ck-rosegold: #B76E79;
    --ck-rosegold-light: #D4A0A7;
    --ck-rosegold-bright: #C9858E;
    --ck-rosegold-deep: #8E5158;
    --ck-rosegold-pale: #E8C4C9;

    /* Neutrals */
    --ck-cream: #FFF8F4;
    --ck-pearl: #FFFAF7;
    --ck-ivory: #FDF5EF;
    --ck-rose-mist: #F9EDEA;

    /* Text */
    --ck-charcoal: #2D2424;
    --ck-night: #1E1618;
    --ck-ink: #3A2E2E;
    --ck-text: #4A3C3C;
    --ck-text-light: #8A7A7A;
    --ck-text-muted: #A09090;

    /* Structure */
    --ck-border: #EBD8D0;
    --ck-border-light: #F2E6E0;
    --ck-white: #FFFFFF;

    /* Shadows */
    --ck-shadow-sm: 0 2px 12px rgba(45, 36, 36, 0.04);
    --ck-shadow-md: 0 8px 30px rgba(45, 36, 36, 0.07);
    --ck-shadow-lg: 0 20px 50px rgba(45, 36, 36, 0.10);
    --ck-shadow-hover: 0 16px 44px rgba(183, 110, 121, 0.16);
    --ck-shadow-glow: 0 8px 40px rgba(183, 110, 121, 0.12);
}

/* ── Hero background image ── */
.shop-hero__bg.checkout-hero__bg {
    background-image: url("../images/breadcrumb/checkout-hero.jpg");
    background-image: image-set(
        url("../images/breadcrumb/checkout-hero.webp") type("image/webp"),
        url("../images/breadcrumb/checkout-hero.jpg")  type("image/jpeg")
    );
}

/* ═══════════════════════════════════════════════════════
   PAGE SHELL
   ═══════════════════════════════════════════════════════ */

.checkout-page {
    position: relative;
    padding: 72px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(232, 196, 201, 0.28), transparent 38%),
        radial-gradient(circle at right center, rgba(183, 110, 121, 0.10), transparent 32%),
        linear-gradient(180deg, var(--ck-pearl) 0%, var(--ck-white) 46%, var(--ck-rose-mist) 100%);
    overflow: hidden;
}

.checkout-page__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.5;
    pointer-events: none;
}

.checkout-page__glow--one {
    width: 280px;
    height: 280px;
    top: 96px;
    left: -80px;
    background: rgba(212, 160, 167, 0.26);
}

.checkout-page__glow--two {
    width: 320px;
    height: 320px;
    right: -110px;
    bottom: 80px;
    background: rgba(183, 110, 121, 0.16);
}

.checkout-shell {
    position: relative;
    z-index: 1;
}

.checkout-shell__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.checkout-shell__copy {
    max-width: 720px;
}

.checkout-shell__eyebrow,
.checkout-card__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ck-rosegold-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.checkout-shell__copy h2 {
    margin: 0 0 12px;
    color: var(--ck-charcoal);
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1.12;
}

.checkout-shell__copy p,
.checkout-card__head p {
    margin: 0;
    color: var(--ck-text-light);
    font-size: 16px;
    line-height: 1.75;
}

.checkout-shell__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.checkout-shell__badges span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--ck-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ck-ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--ck-shadow-sm);
}

.checkout-shell__badges i {
    color: var(--ck-rosegold);
}

.checkout-utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════ */

.checkout-card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--ck-border);
    border-radius: 28px;
    background: var(--ck-white);
    box-shadow: var(--ck-shadow-md), var(--ck-shadow-glow);
    overflow: hidden;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(183, 110, 121, 0), rgba(183, 110, 121, 0.5), rgba(183, 110, 121, 0));
}

.checkout-card__head {
    margin-bottom: 24px;
}

.checkout-card__head--compact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.checkout-card__head--split {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.checkout-card__head h3,
.checkout-toggle-card__header h3 {
    margin: 0 0 10px;
    color: var(--ck-charcoal);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.checkout-toggle-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.checkout-toggle-card__header p {
    margin: 0;
    color: var(--ck-text-light);
    font-size: 15px;
    line-height: 1.7;
}

.checkout-toggle-card__button,
.checkout-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ck-rosegold) 0%, var(--ck-rosegold-deep) 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 16px 28px rgba(183, 110, 121, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.checkout-toggle-card__button:hover,
.checkout-secondary-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(183, 110, 121, 0.32);
}

.checkout-toggle-card .coupon-content,
.checkout-toggle-card .coupon-checkout-content {
    margin-top: 24px;
    margin-bottom: 0;
    padding: 24px;
    border: 1px solid var(--ck-border);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--ck-rose-mist) 0%, var(--ck-white) 100%);
}

.checkout-toggle-card .coupon-text,
.checkout-toggle-card .coupon-info p {
    color: var(--ck-text);
    font-size: 14px;
    line-height: 1.8;
}

.checkout-toggle-card .coupon-info form {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.checkout-toggle-card .coupon-info p {
    margin: 0;
}

.checkout-toggle-card .coupon-info label,
.checkout-field label {
    display: block;
    margin: 0 0 10px;
    color: var(--ck-ink);
    font-size: 14px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════════════════ */

.checkout-toggle-card input[type="text"],
.checkout-toggle-card input[type="password"],
.checkout-field input[type="text"],
.checkout-field input[type="password"],
.checkout-field input[type="email"],
.checkout-field textarea {
    width: 100%;
    border: 1px solid var(--ck-border);
    border-radius: 16px;
    background: var(--ck-pearl);
    color: var(--ck-charcoal);
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.checkout-toggle-card input[type="text"],
.checkout-toggle-card input[type="password"],
.checkout-field input[type="text"],
.checkout-field input[type="password"],
.checkout-field input[type="email"] {
    height: 54px;
    padding: 0 16px;
}

.checkout-field textarea {
    min-height: 150px;
    padding: 16px;
    resize: vertical;
}

.checkout-toggle-card input[type="text"]:focus,
.checkout-toggle-card input[type="password"]:focus,
.checkout-field input[type="text"]:focus,
.checkout-field input[type="password"]:focus,
.checkout-field input[type="email"]:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: var(--ck-rosegold);
    background: var(--ck-white);
    box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.12);
}

.checkout-toggle-card .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.checkout-toggle-card .form-row input[type="submit"],
.checkout-toggle-card .checkout-coupon input[type="submit"] {
    min-width: 150px;
    height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--ck-charcoal);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.checkout-toggle-card .form-row input[type="submit"]:hover,
.checkout-toggle-card .checkout-coupon input[type="submit"]:hover {
    background: var(--ck-rosegold);
    transform: translateY(-1px);
}

.checkout-toggle-card .form-row label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 600;
}

.checkout-toggle-card .checkout-coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.checkout-toggle-card .checkout-coupon input[type="text"] {
    flex: 1 1 220px;
}

.checkout-toggle-card .lost-password a {
    color: var(--ck-rosegold-deep);
    font-weight: 600;
}

.checkout-main-row {
    margin-top: 8px;
}

.checkout-field {
    margin-bottom: 22px;
}

.checkout-field .required {
    color: var(--ck-rosegold);
}

/* ── Nice select ── */
.checkout-page .nice-select {
    float: none;
    width: 100%;
    height: 54px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--ck-border);
    border-radius: 16px;
    background: var(--ck-pearl);
    color: var(--ck-charcoal);
    font-size: 15px;
    line-height: 52px;
}

.checkout-page .nice-select:after {
    width: 9px;
    height: 9px;
    right: 20px;
    margin-top: -6px;
    border-bottom: 2px solid var(--ck-rosegold);
    border-right: 2px solid var(--ck-rosegold);
}

.checkout-page .nice-select.open,
.checkout-page .nice-select:focus,
.checkout-page .nice-select:hover {
    border-color: var(--ck-rosegold);
}

.checkout-page .nice-select .list {
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--ck-border);
    border-radius: 18px;
    box-shadow: var(--ck-shadow-lg);
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════════════════ */

.checkout-switch-wrap {
    margin-top: 6px;
}

.checkout-switch {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    cursor: pointer;
}

.checkout-switch--inline {
    flex-shrink: 0;
    padding: 14px 16px;
    border: 1px solid var(--ck-border);
    border-radius: 20px;
    background: var(--ck-rose-mist);
}

.checkout-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-switch__track {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: var(--ck-rosegold-pale);
    transition: background-color 0.25s ease;
}

.checkout-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(45, 36, 36, 0.2);
    transition: transform 0.25s ease;
}

.checkout-switch__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-switch__content strong {
    color: var(--ck-charcoal);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.checkout-switch__content small {
    color: var(--ck-text-light);
    font-size: 13px;
    line-height: 1.5;
}

.checkout-switch input[type="checkbox"]:checked + .checkout-switch__track {
    background: linear-gradient(135deg, var(--ck-rosegold) 0%, var(--ck-rosegold-deep) 100%);
}

.checkout-switch input[type="checkbox"]:checked + .checkout-switch__track::after {
    transform: translateX(20px);
}

.checkout-switch input[type="checkbox"]:checked ~ .checkout-switch__content strong {
    color: var(--ck-rosegold-deep);
}

.checkout-inline-panel {
    margin-top: 18px;
    padding: 22px;
    border: 1px dashed var(--ck-rosegold-pale);
    border-radius: 20px;
    background: var(--ck-rose-mist);
}

.checkout-inline-panel p {
    margin: 0 0 16px;
    color: var(--ck-text);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   SAVED ADDRESSES
   ═══════════════════════════════════════════════════════ */

.saved-addresses-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.saved-address-item {
    border-radius: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.saved-address-item .address-radio {
    position: relative;
    height: 100%;
}

.saved-address-item .saved-address-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.saved-address-item label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--ck-border);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--ck-white) 0%, var(--ck-rose-mist) 100%);
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.saved-address-item label:hover {
    border-color: var(--ck-rosegold-pale);
    box-shadow: var(--ck-shadow-hover);
    transform: translateY(-1px);
}

.saved-address-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    border-radius: 50%;
    border: 1px solid var(--ck-rosegold-pale);
    background: #ffffff;
    color: var(--ck-rosegold-light);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.saved-address-item .saved-address-radio:checked + label,
.saved-address-item.selected label {
    border-color: var(--ck-rosegold);
    box-shadow: var(--ck-shadow-hover);
}

.saved-address-item .saved-address-radio:checked + label .saved-address-indicator,
.saved-address-item.selected .saved-address-indicator {
    border-color: var(--ck-rosegold);
    background: linear-gradient(135deg, var(--ck-rosegold) 0%, var(--ck-rosegold-deep) 100%);
    color: #ffffff;
}

.address-details {
    flex: 1;
    min-width: 0;
}

.address-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.address-name {
    color: var(--ck-charcoal);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.address-text {
    color: var(--ck-text);
    font-size: 14px;
    line-height: 1.75;
}

.checkout-page .badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(183, 110, 121, 0.12);
    color: var(--ck-rosegold-deep);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkout-page .ml-2 {
    margin-left: 0 !important;
}

#billing-form-section.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR & ORDER SUMMARY
   ═══════════════════════════════════════════════════════ */

.checkout-sidebar {
    position: sticky;
    top: 110px;
}

.checkout-item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(183, 110, 121, 0.1);
    color: var(--ck-rosegold-deep);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--ck-border);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--ck-white) 0%, var(--ck-rose-mist) 100%);
}

.checkout-summary-thumb {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, #FEF5F2, #FFF8F4);
    aspect-ratio: 1;
}

.checkout-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.checkout-summary-item:hover .checkout-summary-thumb img {
    transform: scale(1.04);
}

.checkout-summary-content {
    min-width: 0;
}

.checkout-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-summary-title {
    display: inline-block;
    color: var(--ck-charcoal);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.checkout-summary-title:hover {
    color: var(--ck-rosegold-deep);
}

.checkout-summary-price {
    color: var(--ck-charcoal);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.checkout-summary-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(183, 110, 121, 0.09);
    color: var(--ck-rosegold-deep);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.checkout-summary-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--ck-text-light);
    font-size: 13px;
    font-weight: 600;
}

.checkout-summary-bottom strong {
    color: var(--ck-charcoal);
}

.checkout-empty-state {
    padding: 34px 26px;
    border: 1px dashed var(--ck-rosegold-pale);
    border-radius: 24px;
    background: var(--ck-rose-mist);
    text-align: center;
}

.checkout-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.18) 0%, rgba(142, 81, 88, 0.08) 100%);
    color: var(--ck-rosegold);
    font-size: 26px;
}

.checkout-empty-state h4 {
    margin: 0 0 10px;
    color: var(--ck-charcoal);
    font-size: 24px;
    font-weight: 300;
}

.checkout-empty-state p {
    margin: 0 0 18px;
    color: var(--ck-text-light);
    line-height: 1.8;
}

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--ck-border);
}

.checkout-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ck-text);
    font-size: 16px;
    font-weight: 600;
}

.checkout-total-row span:last-child {
    color: var(--ck-charcoal);
}

.checkout-total-row--discount span:last-child {
    color: #2e9b59;
}

.checkout-total-row--grand {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--ck-border);
    color: var(--ck-charcoal);
    font-size: 20px;
    font-weight: 700;
}

.checkout-total-row--grand strong {
    color: var(--ck-rosegold-deep);
    font-size: 30px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   PAYMENT
   ═══════════════════════════════════════════════════════ */

.checkout-payment-card .payment-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-payment-option {
    border: 1px solid var(--ck-border);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--ck-white) 0%, var(--ck-rose-mist) 100%);
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.checkout-payment-option.is-active {
    border-color: var(--ck-rosegold);
    box-shadow: var(--ck-shadow-hover);
    transform: translateY(-1px);
}

.checkout-payment-option .card-header,
.checkout-payment-option .card-body {
    padding: 0;
    border: 0;
    background: transparent;
}

.checkout-payment-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 20px;
    cursor: pointer;
}

.checkout-payment-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--ck-rosegold);
    flex-shrink: 0;
}

.checkout-payment-label__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.checkout-payment-label__title {
    color: var(--ck-charcoal);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.checkout-payment-label__meta {
    color: var(--ck-text-light);
    font-size: 14px;
    line-height: 1.7;
}

.checkout-payment-label__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(183, 110, 121, 0.1);
    color: var(--ck-rosegold-deep);
    font-size: 18px;
}

.checkout-payment-option .card-body {
    padding: 0 20px 20px 52px;
}

.checkout-payment-option .card-body p {
    margin: 0;
    color: var(--ck-text);
    font-size: 14px;
    line-height: 1.75;
}

.checkout-trust-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--ck-rose-mist);
    color: var(--ck-text);
    font-size: 14px;
    line-height: 1.7;
}

.checkout-trust-note i {
    color: var(--ck-rosegold);
    font-size: 18px;
}

.order-button-payment input {
    width: 100%;
    height: 58px;
    margin-top: 20px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ck-rosegold) 0%, var(--ck-rosegold-deep) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 22px 38px rgba(183, 110, 121, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.order-button-payment input:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(183, 110, 121, 0.36);
}

.order-button-payment input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.checkout-page .alert {
    margin: 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(221, 172, 32, 0.18);
    background: #fff9e9;
    color: #74580d;
}

.checkout-page .alert strong {
    display: block;
    margin-bottom: 6px;
}

.coupon-message {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.coupon-message.success {
    border: 1px solid rgba(46, 155, 89, 0.24);
    background: rgba(46, 155, 89, 0.09);
    color: #187240;
}

.coupon-message.error {
    border: 1px solid rgba(193, 77, 63, 0.22);
    background: rgba(193, 77, 63, 0.08);
    color: #8b3025;
}

.coupon-discount {
    color: #2e9b59;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR ITEM PRICING & SAVINGS
   ═══════════════════════════════════════════════════════ */

.checkout-summary-price-original {
    display: block;
    color: var(--ck-text-muted);
    font-size: 13px;
    text-decoration: line-through;
    line-height: 1.2;
    font-weight: 400;
}

.checkout-summary-price--sale {
    display: block;
    color: var(--ck-rosegold-deep);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
}

.checkout-summary-price-wrapper {
    text-align: right;
    flex-shrink: 0;
}

.checkout-unit-price-original {
    display: inline-block;
    color: var(--ck-text-muted);
    font-size: 12px;
    text-decoration: line-through;
    margin-right: 4px;
}

.checkout-unit-price-sale {
    display: inline-block;
    color: var(--ck-rosegold-deep);
    font-size: 13px;
    font-weight: 600;
}

.checkout-sale-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--ck-rosegold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: 6px;
    vertical-align: middle;
}

.checkout-mrp-value {
    color: var(--ck-text-muted);
    font-size: 14px;
    text-decoration: line-through;
}

.checkout-total-savings-row {
    padding: 8px 14px;
    margin: 4px 0;
    border: 1px solid rgba(46, 155, 89, 0.22);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(46, 155, 89, 0.08), rgba(30, 132, 73, 0.05));
}

.checkout-total-savings-row span:first-child {
    color: #1e8449;
    font-weight: 700;
}

.checkout-savings-amount {
    color: #1e8449;
    font-weight: 700;
    font-size: 17px;
}

.checkout-coupon-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(46, 155, 89, 0.12);
    color: #1e8449;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 4px;
}

/* ── Discount percentage badges ── */
.checkout-pct-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(46, 155, 89, 0.14);
    color: #1e6b36;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 4px;
    vertical-align: middle;
}

.checkout-pct-badge--coupon {
    background: rgba(30, 116, 185, 0.12);
    color: #185e94;
}

.checkout-savings-pct-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e8449, #145c31);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(30, 132, 73, 0.25);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1199.98px) {
    .checkout-shell__copy h2 {
        font-size: 36px;
    }

    .saved-addresses-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .checkout-page {
        padding: 56px 0 70px;
    }

    .checkout-shell__intro,
    .checkout-card__head--compact,
    .checkout-card__head--split,
    .checkout-toggle-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-shell__badges {
        justify-content: flex-start;
    }

    .checkout-sidebar {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .checkout-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .checkout-card::before {
        left: 20px;
        right: 20px;
    }

    .checkout-shell__copy h2 {
        font-size: 30px;
    }

    .checkout-card__head h3,
    .checkout-toggle-card__header h3 {
        font-size: 24px;
    }

    .checkout-toggle-card__button,
    .checkout-secondary-btn,
    .checkout-toggle-card .form-row input[type="submit"],
    .checkout-toggle-card .checkout-coupon input[type="submit"] {
        width: 100%;
    }

    .checkout-summary-item {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .checkout-summary-top {
        flex-direction: column;
    }

    .checkout-summary-price {
        font-size: 17px;
    }

    .checkout-total-row--grand strong {
        font-size: 26px;
    }

    .checkout-payment-option .card-body {
        padding-left: 20px;
    }
}

@media (max-width: 575.98px) {
    .checkout-page {
        padding: 48px 0 62px;
    }

    .checkout-shell__copy h2 {
        font-size: 28px;
    }

    .checkout-shell__badges {
        gap: 10px;
    }

    .checkout-shell__badges span,
    .checkout-item-count {
        width: 100%;
        justify-content: center;
    }

    .checkout-summary-items {
        max-height: none;
    }

    .checkout-summary-item {
        grid-template-columns: 1fr;
    }

    .checkout-summary-thumb {
        max-width: 120px;
    }

    .checkout-total-row {
        font-size: 15px;
    }

    .checkout-total-row--grand {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-switch--inline {
        width: 100%;
    }
}

/* ── Small phones ── */
@media (max-width: 400px) {
    .checkout-page {
        padding: 40px 0 54px;
    }

    .checkout-card {
        padding: 20px 16px;
    }

    .checkout-card::before {
        left: 16px;
        right: 16px;
    }

    .checkout-shell__copy h2 {
        font-size: 24px;
    }

    .checkout-card__head h3,
    .checkout-toggle-card__header h3 {
        font-size: 21px;
    }

    .checkout-total-row--grand strong {
        font-size: 24px;
    }

    .checkout-field input[type="text"],
    .checkout-field input[type="password"],
    .checkout-field input[type="email"],
    .checkout-page .nice-select {
        height: 50px;
    }
}
