/* ==========================================================================
   Della checkout - cart, checkout, guest checkout, order confirmation
   Templates: woocommerce/cart, woocommerce/checkout, woocommerce/della-checkout
   Everything is scoped to .dc-page so the rest of the site is untouched.
   ========================================================================== */

.dc-page {
    /* Brand: Della gold, near-black ink, Figtree / Playfair Display.
       Gold is an accent and button colour only - as text on white it is
       2.3:1, so text uses --dc-gold-ink (6:1). */
    --dc-ink: #171717;
    --dc-ink-2: #404040;
    --dc-muted: #5c5c5c;
    --dc-line: #e7e5e0;
    --dc-line-strong: #cfcac0;
    --dc-bg: #faf9f6;
    --dc-surface: #ffffff;
    --dc-gold: #bda371;
    --dc-gold-hover: #a88e5c;
    /* Button gold: deep enough for white text (4.85:1, WCAG AA) */
    --dc-gold-btn: #8a6d3b;
    --dc-gold-btn-hover: #7a5f2e;
    --dc-gold-btn-active: #6b5228;
    --dc-gold-ink: #7a5f2e;
    --dc-gold-soft: #f6f1e7;
    --dc-error: #b42318;
    --dc-error-soft: #fef3f2;
    --dc-success: #067647;
    --dc-success-soft: #ecfdf3;
    --dc-info: #1d4ed8;
    --dc-info-soft: #eff6ff;
    --dc-radius: 0; /* sharp corners, brand rule 2026-10 */
    --dc-radius-sm: 0;
    --dc-shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 4px 16px rgba(23, 23, 23, .05);
    --dc-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --dc-font-display: "Playfair Display", Georgia, serif;
    --dc-focus: 0 0 0 3px rgba(189, 163, 113, .55);
    --dc-sticky-h: 0px;

    font-family: var(--dc-font);
    color: var(--dc-ink);
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px calc(96px + var(--dc-sticky-h));
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.dc-page *,
.dc-page *::before,
.dc-page *::after {
    box-sizing: border-box;
}

/* :where() keeps these resets at class-level weight, so component rules
   further down (margins on titles, lists, facts) still win */
.dc-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
    margin: 0;
}

.dc-page :where(ul, ol) {
    padding: 0;
    list-style: none;
}

.dc-page :where(a) {
    color: inherit;
}

.dc-page img {
    max-width: 100%;
    height: auto;
}

.dc-page [hidden] {
    display: none !important;
}

.dc-page .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dc-page :focus-visible {
    outline: 2px solid var(--dc-gold-ink);
    outline-offset: 2px;
}

.dc-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    vertical-align: -0.2em;
}

/* ---------- Page header & progress ---------- */

.dc-steps ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--dc-muted);
    overflow-x: auto;
    scrollbar-width: none;
}

.dc-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dc-steps__item + .dc-steps__item::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--dc-line-strong);
}

.dc-steps__dot {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--dc-line-strong);
    font-size: 12px;
    font-weight: 600;
    background: var(--dc-surface);
}

.dc-steps__item.is-current {
    color: var(--dc-ink);
    font-weight: 600;
}

.dc-steps__item.is-current .dc-steps__dot {
    background: var(--dc-ink);
    border-color: var(--dc-ink);
    color: #fff;
}

.dc-steps__item.is-done .dc-steps__dot {
    background: var(--dc-gold-soft);
    border-color: var(--dc-gold);
    color: var(--dc-gold-ink);
}

.dc-steps__item a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dc-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.dc-title {
    font-family: var(--dc-font-display);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.dc-title__count {
    font-family: var(--dc-font);
    font-size: 16px;
    color: var(--dc-muted);
    font-weight: 400;
    letter-spacing: 0;
}

/* ---------- Layout ---------- */

.dc-layout {
    display: grid;
    gap: 20px;
}

.dc-layout__main {
    display: grid;
    gap: 20px;
    align-content: start;
    min-width: 0;
}

.dc-layout__side {
    min-width: 0;
}

@media (min-width: 992px) {
    .dc-page {
        padding: 32px 24px 64px;
    }

    .dc-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 32px;
        align-items: start;
    }

    .dc-summary--sticky,
    .dc-page--cart .dc-summary {
        position: sticky;
        top: 24px;
    }
}

@media (min-width: 1200px) {
    .dc-layout {
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 48px;
    }
}

/* ---------- Cards & sections ---------- */

.dc-card {
    background: var(--dc-surface);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    padding: 20px;
    box-shadow: var(--dc-shadow);
}

@media (min-width: 768px) {
    .dc-card {
        padding: 28px;
    }
}

.dc-card__title {
    font-family: var(--dc-font-display);
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 16px;
}

.dc-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--dc-font-display);
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 20px;
}

.dc-section__num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dc-ink);
    color: #fff;
    font-family: var(--dc-font);
    font-size: 14px;
    font-weight: 600;
    flex: 0 0 auto;
}

.dc-section.is-complete .dc-section__num {
    background: var(--dc-success);
}

/* ---------- Buttons & links ---------- */

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--dc-radius-sm);
    border: 1px solid transparent;
    font: 600 15px/1.2 var(--dc-font);
    letter-spacing: .01em;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.dc-btn:focus-visible {
    outline: 2px solid var(--dc-ink);
    outline-offset: 2px;
    box-shadow: var(--dc-focus);
}

.dc-btn--primary {
    background: var(--dc-gold-btn);
    color: #fff !important;
}

.dc-btn--primary:hover {
    background: var(--dc-gold-btn-hover);
}

.dc-btn--primary:active {
    background: var(--dc-gold-btn-active);
}

.dc-btn--secondary {
    background: var(--dc-ink);
    color: #fff !important;
}

.dc-btn--secondary:hover {
    background: #000;
}

.dc-btn--ghost {
    background: var(--dc-surface);
    border-color: var(--dc-line-strong);
    color: var(--dc-ink) !important;
}

.dc-btn--ghost:hover {
    border-color: var(--dc-ink);
}

.dc-btn--block {
    width: 100%;
}

.dc-btn--small {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
}

.dc-btn--large {
    min-height: 56px;
    font-size: 16px;
}

.dc-btn[disabled],
.dc-btn.is-disabled {
    background: #e9e7e2 !important;
    border-color: #e9e7e2 !important;
    color: #6b6b6b !important;
    cursor: not-allowed;
}

/* Loading: label stays for screen readers, a spinner replaces it visually */
.dc-btn.is-loading {
    pointer-events: none;
    color: transparent !important;
}

.dc-btn.is-loading > * {
    visibility: hidden;
}

.dc-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-color: var(--dc-ink) var(--dc-ink) transparent transparent;
    animation: dc-spin .7s linear infinite;
}

.dc-btn--primary.is-loading::after,
.dc-btn--secondary.is-loading::after {
    border-color: #fff #fff transparent transparent;
}

@keyframes dc-spin {
    to { transform: rotate(360deg); }
}

.dc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 4px 0;
    font: inherit;
    font-size: 15px;
    color: var(--dc-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.dc-link:hover {
    color: var(--dc-gold-ink);
}

.dc-link--muted {
    color: var(--dc-ink-2);
    text-decoration: none;
}

.dc-link--muted:hover {
    text-decoration: underline;
}

.dc-link--small {
    font-size: 13px;
}

.dc-link[disabled] {
    color: var(--dc-muted);
    cursor: default;
    text-decoration: none;
}

/* ---------- Notices & error summary ---------- */

.dc-notices:empty {
    display: none;
}

.dc-notices {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.dc-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--dc-radius-sm);
    border: 1px solid;
    font-size: 15px;
}

.dc-notice .dc-icon {
    margin-top: 2px;
}

.dc-notice__glyph {
    flex: 0 0 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font: 700 11px/15px var(--dc-font);
    text-align: center;
}

.dc-notice--error {
    background: var(--dc-error-soft);
    border-color: #fecdca;
    color: var(--dc-error);
}

.dc-notice--success {
    background: var(--dc-success-soft);
    border-color: #abefc6;
    color: var(--dc-success);
}

.dc-notice--info {
    background: var(--dc-info-soft);
    border-color: #bfdbfe;
    color: var(--dc-info);
}

.dc-notice__text a {
    color: inherit;
    font-weight: 600;
}

/* WooCommerce's own notice markup (gateway messages, checkout errors) */
.dc-page .woocommerce-error,
.dc-page .woocommerce-message,
.dc-page .woocommerce-info,
.dc-page .woocommerce-NoticeGroup .woocommerce-error {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 14px 12px 40px;
    border-radius: var(--dc-radius-sm);
    border: 1px solid #fecdca;
    background: var(--dc-error-soft);
    color: var(--dc-error);
    font-size: 15px;
    position: relative;
}

.dc-page .woocommerce-message {
    border-color: #abefc6;
    background: var(--dc-success-soft);
    color: var(--dc-success);
}

.dc-page .woocommerce-info {
    border-color: #bfdbfe;
    background: var(--dc-info-soft);
    color: var(--dc-info);
}

.dc-page .woocommerce-error::before,
.dc-page .woocommerce-message::before,
.dc-page .woocommerce-info::before {
    content: "!";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font: 700 11px/15px var(--dc-font);
    text-align: center;
}

.dc-page .woocommerce-message::before {
    content: "\2713";
}

.dc-page .woocommerce-error li {
    margin: 0;
}

.dc-page .woocommerce-error li + li {
    margin-top: 4px;
}

.dc-error-summary {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: var(--dc-radius);
    border: 2px solid var(--dc-error);
    background: var(--dc-surface);
}

.dc-error-summary:focus {
    outline: none;
    box-shadow: var(--dc-focus);
}

.dc-error-summary__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 600 17px/1.3 var(--dc-font);
    color: var(--dc-error);
    margin-bottom: 8px;
}

.dc-error-summary ul {
    display: grid;
    gap: 4px;
    padding-left: 28px;
    list-style: disc;
}

.dc-error-summary a {
    color: var(--dc-error);
    font-weight: 500;
}

/* ---------- Cart items ---------- */

.dc-items {
    display: grid;
}

.dc-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dc-line);
}

.dc-items > .dc-item:first-child {
    padding-top: 0;
}

.dc-cart-form .dc-items {
    background: var(--dc-surface);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    padding: 20px;
    box-shadow: var(--dc-shadow);
}

.dc-cart-form .dc-items > .dc-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .dc-item {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 20px;
    }

    .dc-cart-form .dc-items {
        padding: 24px 28px;
    }
}

.dc-item.has-problem .dc-item__media img {
    opacity: .6;
}

.dc-item__media {
    position: relative;
}

.dc-item__media img,
.dc-thumb-img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--dc-radius-sm);
    border: 1px solid var(--dc-line);
    background: var(--dc-bg);
}

.dc-item__qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 12px;
    background: var(--dc-ink);
    color: #fff;
    font: 600 12px/24px var(--dc-font);
    text-align: center;
}

.dc-item__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dc-item__titles {
    min-width: 0;
}

.dc-item__eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dc-gold-ink);
    margin-bottom: 2px;
}

.dc-item__name {
    font: 600 16px/1.35 var(--dc-font);
    overflow-wrap: anywhere;
}

.dc-item__name a {
    text-decoration: none;
}

.dc-item__name a:hover {
    text-decoration: underline;
}

.dc-item__price {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.dc-item__price s {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: var(--dc-muted);
}

.dc-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 6px;
    font-size: 14px;
    color: var(--dc-ink-2);
}

.dc-item__meta span {
    color: var(--dc-muted);
}

.dc-item__set,
.dc-item__pers {
    margin-top: 10px;
    font-size: 14px;
}

.dc-item__set summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--dc-ink-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    list-style: none;
}

.dc-item__set summary::-webkit-details-marker {
    display: none;
}

.dc-item__set[open] summary .dc-icon {
    transform: rotate(180deg);
}

.dc-item__set ul {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--dc-bg);
    border-radius: var(--dc-radius-sm);
    display: grid;
    gap: 4px;
}

.dc-item__set li span {
    color: var(--dc-muted);
}

.dc-item__pers {
    padding: 10px 12px;
    border-left: 3px solid var(--dc-gold);
    background: var(--dc-gold-soft);
    border-radius: 0 var(--dc-radius-sm) var(--dc-radius-sm) 0;
}

.dc-item__pers-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.dc-item__problem {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dc-error);
}

.dc-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.dc-item__remove {
    min-height: 44px;
    font-size: 14px;
}

.dc-item__set-note {
    font-size: 14px;
    color: var(--dc-muted);
}

.dc-item.is-updating {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

/* Compact list in the checkout summary and receipt */
.dc-items--compact .dc-item,
.dc-items--receipt .dc-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
}

.dc-items--compact .dc-item__name,
.dc-items--receipt .dc-item__name {
    font-size: 15px;
}

.dc-items--compact .dc-item__meta {
    font-size: 13px;
}

.dc-items--compact .dc-item__price {
    font-size: 15px;
}

.dc-items--compact {
    max-height: 420px;
    overflow-y: auto;
    padding-top: 8px;
    padding-right: 4px;
}

.dc-items--receipt > .dc-item:last-child {
    border-bottom: 0;
}

@media (min-width: 768px) {
    .dc-items--receipt .dc-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }
}

/* ---------- Quantity stepper ---------- */

.dc-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--dc-line-strong);
    border-radius: var(--dc-radius-sm);
    overflow: hidden;
    background: var(--dc-surface);
}

.dc-qty__btn {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--dc-ink);
    cursor: pointer;
}

.dc-qty__btn:hover:not([disabled]) {
    background: var(--dc-bg);
}

.dc-qty__btn[disabled] {
    color: #b3b3b3;
    cursor: not-allowed;
}

.dc-qty__input {
    width: 48px;
    border: 0;
    border-left: 1px solid var(--dc-line);
    border-right: 1px solid var(--dc-line);
    text-align: center;
    font: 600 16px var(--dc-font);
    color: var(--dc-ink);
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.dc-qty__input::-webkit-outer-spin-button,
.dc-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dc-qty__input:focus-visible {
    outline: 2px solid var(--dc-gold-ink);
    outline-offset: -2px;
}

/* Shown only when the script did not load */
.dc-cart-form__nojs {
    margin-top: 12px;
}

.dc-js .dc-cart-form__nojs {
    display: none;
}

.dc-cart-coupon-slot {
    margin-top: 16px;
}

/* ---------- Summary & totals ---------- */

.dc-summary {
    display: grid;
    gap: 16px;
}

.dc-summary .dc-card__title {
    margin-bottom: 0;
}

.dc-summary__edit {
    justify-self: start;
}

.dc-totals {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--dc-line);
    font-variant-numeric: tabular-nums;
}

.dc-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 15px;
}

.dc-totals__row dt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--dc-ink-2);
}

.dc-totals__row dd {
    white-space: nowrap;
}

.dc-totals__row dd.is-saving {
    color: var(--dc-success);
    font-weight: 600;
}

.dc-totals__row--total {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--dc-line);
    align-items: center;
}

.dc-totals__row--total dt {
    font-size: 17px;
    font-weight: 600;
    color: var(--dc-ink);
}

.dc-totals__row--total dd {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* "Includes GST" under the total: part of the price, not an extra charge */
.dc-totals__row--gst-included {
    margin-top: -6px;
    font-size: 13px;
    color: var(--dc-muted);
}

.dc-totals__note {
    margin-top: -6px;
    font-size: 13px;
    color: var(--dc-muted);
    text-align: right;
}

.dc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--dc-gold-soft);
    color: var(--dc-gold-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.dc-summary__fine,
.dc-hint {
    font-size: 13px;
    color: var(--dc-muted);
}

.dc-summary__blocked {
    display: flex;
    gap: 6px;
    font-size: 14px;
    color: var(--dc-error);
    font-weight: 500;
}

.dc-trust {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--dc-line);
    font-size: 14px;
    color: var(--dc-ink-2);
}

.dc-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-trust .dc-icon {
    color: var(--dc-gold-ink);
}

/* ---------- Coupon ---------- */

.dc-coupon {
    border: 1px dashed var(--dc-line-strong);
    border-radius: var(--dc-radius-sm);
    background: var(--dc-surface);
}

.dc-coupon__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}

.dc-coupon__toggle::-webkit-details-marker {
    display: none;
}

.dc-coupon__toggle > span {
    flex: 1;
}

.dc-coupon__toggle .dc-icon--tag {
    color: var(--dc-gold-ink);
}

.dc-coupon[open] .dc-coupon__toggle .dc-icon--chevron {
    transform: rotate(180deg);
}

.dc-coupon__body {
    padding: 0 14px 14px;
}

.dc-coupon__row {
    display: flex;
    gap: 8px;
}

.dc-coupon__row .dc-input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

/* ---------- Form fields ---------- */

.dc-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .dc-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 16px;
    }

    .dc-fields > .dc-field--full,
    .dc-fields > .form-row-wide {
        grid-column: 1 / -1;
    }
}

.dc-page .dc-field,
.dc-page .form-row {
    margin: 0;
    padding: 0;
    width: auto;
    float: none;
}

.dc-page .dc-field > label,
.dc-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dc-ink);
    line-height: 1.3;
}

.dc-page .dc-field > label .required {
    color: var(--dc-error);
    text-decoration: none;
    border: 0;
}

.dc-page .dc-field > label .optional {
    font-weight: 400;
    color: var(--dc-muted);
}

.dc-page .woocommerce-input-wrapper {
    display: block;
}

.dc-input,
.dc-page .dc-field input.input-text,
.dc-page .dc-field select,
.dc-page .dc-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--dc-line-strong);
    border-radius: var(--dc-radius-sm);
    background: var(--dc-surface);
    color: var(--dc-ink);
    font: 400 16px/1.4 var(--dc-font);
    transition: border-color .15s ease, box-shadow .15s ease;
    box-shadow: none;
}

.dc-page .dc-field textarea {
    min-height: 96px;
    resize: vertical;
}

.dc-input:hover,
.dc-page .dc-field input.input-text:hover,
.dc-page .dc-field select:hover {
    border-color: #a8a29a;
}

.dc-input:focus,
.dc-page .dc-field input.input-text:focus,
.dc-page .dc-field select:focus,
.dc-page .dc-field textarea:focus {
    outline: none;
    border-color: var(--dc-gold-ink);
    box-shadow: var(--dc-focus);
}

.dc-page .dc-field.is-invalid input.input-text,
.dc-page .dc-field.is-invalid select,
.dc-page .dc-field.is-invalid .select2-selection,
.dc-page .dc-field.is-invalid .iti input {
    border-color: var(--dc-error) !important;
    background: #fffbfa;
}

.dc-page .dc-field.is-valid input.input-text {
    border-color: #7fbf9a;
}

.dc-page .dc-field .description,
.dc-field-hint {
    display: block !important;
    position: static !important;
    margin-top: 6px;
    padding: 0 !important;
    background: none !important;
    color: var(--dc-muted) !important;
    font-size: 13px;
    line-height: 1.4;
}

.dc-page .dc-field .description::before {
    display: none !important;
}

.dc-field-msg {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.dc-field-msg:empty {
    display: none;
}

.dc-field-msg.is-error,
.dc-page .dc-field .dc-field-msg {
    display: flex;
    gap: 6px;
    color: var(--dc-error);
}

.dc-field-msg.is-error::before,
.dc-page .dc-field .dc-field-msg::before {
    content: "!";
    flex: 0 0 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--dc-error);
    color: #fff;
    font: 700 11px/16px var(--dc-font);
    text-align: center;
}

.dc-field-msg.is-success {
    color: var(--dc-success);
}

/* Select2 / selectWoo (country and state) */
.dc-page .select2-container {
    width: 100% !important;
}

.dc-page .select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid var(--dc-line-strong);
    border-radius: var(--dc-radius-sm);
}

.dc-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 14px;
    color: var(--dc-ink);
    font-size: 16px;
}

.dc-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.dc-page .select2-container--focus .select2-selection--single,
.dc-page .select2-container--open .select2-selection--single {
    border-color: var(--dc-gold-ink);
    box-shadow: var(--dc-focus);
}

/* intl-tel-input */
.dc-page .iti {
    display: block;
    width: 100%;
}

.dc-page .iti input.input-text {
    padding-left: 52px;
}

/* Checkboxes */
.dc-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.dc-check input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--dc-ink);
    cursor: pointer;
}

.dc-check label {
    font-size: 15px;
    cursor: pointer;
    line-height: 1.45;
}

/* Honeypot */
.dc-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Checkout specifics ---------- */

.dc-account-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--dc-radius-sm);
    background: var(--dc-gold-soft);
}

.dc-account-choice__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.dc-account-choice__text {
    font-size: 14px;
    color: var(--dc-ink-2);
    margin-top: 2px;
}

.dc-signed-in {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--dc-ink-2);
}

.dc-otp {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius-sm);
    background: var(--dc-bg);
}

.dc-otp__start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.dc-otp__row {
    display: flex;
    gap: 8px;
    max-width: 360px;
}

.dc-otp__input {
    flex: 1;
    min-width: 0;
    font-size: 20px !important;
    letter-spacing: .4em;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.dc-otp__done {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dc-success);
    font-weight: 600;
}

.dc-otp.is-verified {
    background: var(--dc-success-soft);
    border-color: #abefc6;
}

.dc-gst {
    margin-top: 18px;
}

.dc-gst__toggle {
    font-weight: 500;
}

.dc-gst.is-collapsed .dc-fields {
    display: none;
}

.dc-ship {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--dc-line);
}

.dc-ship__fields {
    margin-top: 18px;
}

.dc-notes {
    margin-top: 18px;
}

.dc-notes summary {
    list-style: none;
    font-weight: 500;
}

.dc-notes summary::-webkit-details-marker {
    display: none;
}

.dc-notes[open] summary {
    margin-bottom: 12px;
}

.dc-notes .dc-fields {
    grid-template-columns: minmax(0, 1fr);
}

.dc-shipping-methods:empty {
    display: none;
}

.dc-shipping-methods {
    margin-top: 20px;
}

.dc-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.dc-fieldset legend {
    padding: 0;
}

.dc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--dc-line-strong);
    border-radius: var(--dc-radius-sm);
    cursor: pointer;
}

.dc-option + .dc-option {
    margin-top: 8px;
}

.dc-option__label {
    flex: 1;
}

.dc-option__price {
    font-weight: 600;
}

.dc-create-account {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: var(--dc-radius-sm);
    background: var(--dc-bg);
}

/* Payment methods (WooCommerce markup, restyled) */
.dc-page #payment {
    background: none;
    border-radius: 0;
}

.dc-methods {
    display: grid;
    gap: 10px;
    margin-bottom: 20px !important;
}

.dc-method {
    position: relative;
    border: 1px solid var(--dc-line-strong);
    border-radius: var(--dc-radius-sm);
    background: var(--dc-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dc-method:has(.dc-method__radio:checked) {
    border-color: var(--dc-ink);
    box-shadow: 0 0 0 1px var(--dc-ink);
}

.dc-method__radio {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    transform: translateY(-50%);
    accent-color: var(--dc-ink);
}

.dc-method:has(.dc-method__box:not([style*="none"])) .dc-method__radio {
    top: 28px;
}

.dc-method.is-single .dc-method__radio {
    opacity: 0;
    pointer-events: none;
}

.dc-method__label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px 12px 48px;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 600;
}

.dc-method.is-single .dc-method__label {
    padding-left: 16px;
    cursor: default;
}

.dc-method__icon img {
    max-height: 26px;
    width: auto;
    float: none !important;
    margin: 0 !important;
}

.dc-method__box {
    margin: 0 !important;
    padding: 0 16px 14px 48px !important;
    background: none !important;
    color: var(--dc-ink-2) !important;
    font-size: 14px;
}

.dc-method.is-single .dc-method__box {
    padding-left: 16px !important;
}

.dc-method__box::before {
    display: none !important;
}

.dc-place-order {
    display: grid;
    gap: 12px;
}

.dc-policy,
.dc-pay-note {
    font-size: 13px;
    color: var(--dc-muted);
}

.dc-policy a,
.dc-summary__fine a,
.dc-trust a,
.dc-next a,
.dc-status__help a {
    color: var(--dc-ink-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dc-pay-note {
    text-align: center;
}

.dc-page .woocommerce-terms-and-conditions-wrapper:empty {
    display: none;
}

/* WooCommerce blocks the form while it submits; keep it calm */
.dc-page .blockUI.blockOverlay {
    background: rgba(250, 249, 246, .6) !important;
}

/* ---------- Mobile summary + sticky action bar ---------- */

.dc-mobile-summary {
    margin-bottom: 16px;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    background: var(--dc-surface);
}

.dc-mobile-summary > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
}

.dc-mobile-summary > summary::-webkit-details-marker {
    display: none;
}

.dc-mobile-summary > summary > span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-weight: 500;
    color: var(--dc-gold-ink);
}

.dc-mobile-summary[open] > summary .dc-icon--chevron {
    transform: rotate(180deg);
}

.dc-mobile-summary__body {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.dc-mobile-summary .dc-items--compact {
    max-height: none;
}

@media (min-width: 992px) {
    .dc-mobile-summary {
        display: none;
    }
}

.dc-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--dc-line);
    box-shadow: 0 -4px 20px rgba(23, 23, 23, .08);
    font-family: var(--dc-font);
    transform: translateY(0);
    transition: transform .2s ease;
}

.dc-sticky-bar.is-hidden {
    transform: translateY(110%);
}

.dc-sticky-bar__total {
    display: grid;
    line-height: 1.2;
}

.dc-sticky-bar__total span {
    font-size: 12px;
    color: var(--dc-muted);
}

.dc-sticky-bar__total strong {
    font-size: 19px;
    font-variant-numeric: tabular-nums;
}

.dc-sticky-bar .dc-btn {
    flex: 0 1 220px;
}

@media (min-width: 992px) {
    .dc-sticky-bar {
        display: none;
    }
}

/* ---------- Empty state ---------- */

.dc-empty {
    max-width: 640px;
    margin: 24px auto;
    padding: 40px 20px;
    text-align: center;
}

.dc-empty__icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--dc-gold-soft);
    color: var(--dc-gold-ink);
    margin-bottom: 20px;
}

.dc-empty__icon .dc-icon {
    width: 32px;
    height: 32px;
}

.dc-empty__title {
    font-family: var(--dc-font-display);
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 500;
    margin-bottom: 10px;
}

.dc-empty__text {
    color: var(--dc-ink-2);
    margin-bottom: 24px;
}

.dc-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.dc-empty__cats {
    margin-top: 40px;
}

.dc-empty__cats-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.dc-empty__cats ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.dc-empty__cats a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--dc-line-strong);
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
}

.dc-empty__cats a:hover {
    border-color: var(--dc-ink);
}

/* ---------- Order confirmation ---------- */

.dc-status {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 24px;
    border-radius: var(--dc-radius);
    background: var(--dc-surface);
    border: 1px solid var(--dc-line);
    box-shadow: var(--dc-shadow);
}

.dc-status__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.dc-status__icon .dc-icon {
    width: 30px;
    height: 30px;
    stroke-width: 2.25;
}

.dc-status--success .dc-status__icon {
    background: var(--dc-success-soft);
    color: var(--dc-success);
}

.dc-status--info .dc-status__icon {
    background: var(--dc-info-soft);
    color: var(--dc-info);
}

.dc-status--error .dc-status__icon {
    background: var(--dc-error-soft);
    color: var(--dc-error);
}

.dc-status__title {
    font-family: var(--dc-font-display);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 10px;
}

.dc-status__title:focus {
    outline: none;
}

.dc-status__text {
    max-width: 560px;
    margin: 0 auto;
    color: var(--dc-ink-2);
}

.dc-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 760px;
    margin: 24px auto;
    background: var(--dc-line);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius-sm);
    overflow: hidden;
    text-align: left;
}

.dc-facts > div {
    padding: 12px 14px;
    background: var(--dc-surface);
}

.dc-facts dt {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dc-muted);
}

.dc-facts dd {
    font-weight: 600;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .dc-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.dc-badge--success {
    background: var(--dc-success-soft);
    color: var(--dc-success);
}

.dc-badge--info {
    background: var(--dc-info-soft);
    color: var(--dc-info);
}

.dc-badge--error {
    background: var(--dc-error-soft);
    color: var(--dc-error);
}

.dc-status__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.dc-status__help {
    margin-top: 18px;
    font-size: 14px;
    color: var(--dc-ink-2);
}

.dc-addresses {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .dc-addresses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dc-addresses__title {
    font: 600 13px/1.3 var(--dc-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dc-muted);
    margin-bottom: 6px;
}

.dc-addresses address,
.dc-addresses p {
    font-style: normal;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.dc-addresses__extra {
    margin-top: 4px;
    font-size: 14px !important;
    color: var(--dc-ink-2);
}

.dc-addresses__note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--dc-line);
}

.dc-next {
    padding-top: 16px;
    border-top: 1px solid var(--dc-line);
}

.dc-next__list {
    display: grid;
    gap: 10px;
    margin: 10px 0 12px !important;
    counter-reset: dcnext;
}

.dc-next__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    counter-increment: dcnext;
}

.dc-next__list li::before {
    content: counter(dcnext);
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--dc-line-strong);
    font-size: 12px;
    font-weight: 600;
    flex: 0 0 auto;
}

.dc-next__list li.is-done::before {
    content: "\2713";
    background: var(--dc-success);
    border-color: var(--dc-success);
    color: #fff;
}

.dc-receipt .dc-layout__main {
    gap: 20px;
}

/* ---------- Offline banner ---------- */

.dc-offline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--dc-ink);
    color: #fff;
    text-align: center;
    font: 500 14px/1.4 var(--dc-font);
}

/* ---------- Checkout header: logo and "Secure checkout" only ---------- */

body:has(.dc-page--checkout) .topbar-v2,
body:has(.dc-page--checkout) #headerPanelRight,
body:has(.dc-page--checkout) #mobileMenuTrigger,
body:has(.dc-page--checkout) .header-panel-logo-wrapper-v2 > .topbar-menu-right-v2 {
    display: none !important;
}

body:has(.dc-page--checkout) .header-panel-logo-wrapper-v2 {
    justify-content: space-between !important;
}

.dc-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font: 500 13px/1 "Figtree", sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dc-secure-badge svg {
    width: 15px;
    height: 15px;
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
    .dc-page *,
    .dc-sticky-bar {
        transition: none !important;
        animation-duration: .01ms !important;
    }
}

@media print {
    header,
    footer,
    .dc-steps,
    .dc-status__actions,
    .dc-sticky-bar,
    .dc-next .dc-hint,
    #chat-widget-container,
    .side-cart,
    .xoo-wsc-modal {
        display: none !important;
    }

    .dc-page {
        padding: 0;
        max-width: none;
    }

    .dc-card,
    .dc-status {
        box-shadow: none;
        border-color: #999;
        break-inside: avoid;
    }

    .dc-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Overrides for WooCommerce's default checkout styles ---------- */

.dc-page #payment.dc-payment,
.woocommerce-checkout .dc-page #payment.dc-payment {
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.dc-page #payment.dc-payment .place-order {
    padding: 0 !important;
    margin: 0 !important;
}

.dc-page #payment.dc-payment ul.payment_methods {
    padding: 0 !important;
    border: 0 !important;
}

.dc-page #payment.dc-payment ul.payment_methods li {
    line-height: 1.4;
}

.dc-page .woocommerce-privacy-policy-text:empty,
.dc-page .woocommerce-terms-and-conditions-wrapper:has(> .woocommerce-privacy-policy-text:empty:only-child) {
    display: none;
}

/* Keep scrolled-to fields and the error summary clear of the fixed site header */
.dc-page .dc-field,
.dc-error-summary,
.dc-section {
    scroll-margin-top: 120px;
}

/* ---------- Small phones ---------- */

@media (max-width: 559px) {
    /* Price under the name so long product names get the full width */
    .dc-item__head {
        flex-direction: column;
        gap: 4px;
    }

    .dc-item__price {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .dc-item__price s {
        display: inline;
        order: 2;
    }

    .dc-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .dc-cart-form .dc-items {
        padding: 16px;
    }

    .dc-item__meta {
        font-size: 13px;
    }

    /* Progress: numbers for every step, the label only for the current one */
    .dc-steps__item:not(.is-current) > a,
    .dc-steps__item:not(.is-current) > span:not(.dc-steps__dot) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .dc-steps__item + .dc-steps__item::before {
        width: 16px;
    }

    .dc-page-head {
        margin-bottom: 16px;
    }
}

/* Broken / missing product images (see footer/js/global/image-fallback.js) */
.dc-page img.is-placeholder {
    object-fit: cover;
    background: #f6f1e7;
}

/* ---------- Delivery estimate ---------- */

.dc-delivery {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--dc-radius-sm);
    background: var(--dc-gold-soft);
    font-size: 14px;
}

.dc-delivery > .dc-icon {
    color: var(--dc-gold-ink);
    margin-top: 2px;
}

.dc-delivery__title {
    color: var(--dc-ink);
}

.dc-delivery__note {
    margin-top: 2px !important;
    font-size: 13px;
    color: var(--dc-ink-2);
}

.dc-item__delivery {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--dc-gold-ink);
}

/* ==========================================================================
   Compact checkout - tighter rhythm so "Place order" is reachable quickly.
   Touch targets stay at least 44px.
   ========================================================================== */

.dc-page--checkout {
    padding-top: 16px;
}

.dc-page--checkout .dc-steps ol {
    margin-bottom: 12px;
}

.dc-page--checkout .dc-page-head {
    margin-bottom: 12px;
}

.dc-page--checkout .dc-title {
    font-size: clamp(24px, 3vw, 28px);
}

.dc-page--checkout .dc-layout__main {
    gap: 14px;
}

.dc-page--checkout .dc-card {
    padding: 18px 16px;
}

@media (min-width: 768px) {
    .dc-page--checkout .dc-card {
        padding: 22px 24px;
    }
}

.dc-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 14px;
}

.dc-section__head .dc-section__title {
    margin-bottom: 0;
}

.dc-page--checkout .dc-section__title {
    font-size: 19px;
    gap: 10px;
}

.dc-page--checkout .dc-section__num {
    width: 24px;
    height: 24px;
    font-size: 13px;
}

.dc-section__aside {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--dc-ink-2);
}

.dc-section__aside a {
    font-weight: 600;
    color: var(--dc-ink);
}

.dc-subhead {
    margin: 18px 0 10px !important;
    font: 600 13px/1.3 var(--dc-font);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dc-muted);
}

/* Fields */
.dc-page--checkout .dc-fields {
    gap: 12px;
}

@media (min-width: 640px) {
    .dc-page--checkout .dc-fields {
        gap: 12px 14px;
    }
}

.dc-page--checkout .dc-field > label,
.dc-page--checkout .dc-label {
    margin-bottom: 4px;
    font-size: 13px;
}

.dc-page--checkout .dc-input,
.dc-page--checkout .dc-field input.input-text,
.dc-page--checkout .dc-field select {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 15.5px;
}

.dc-page--checkout .select2-container .select2-selection--single {
    height: 44px;
}

.dc-page--checkout .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    font-size: 15.5px;
}

.dc-page--checkout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.dc-page--checkout .dc-field .description {
    margin-top: 4px;
    font-size: 12.5px;
}

.dc-page--checkout .dc-field-msg {
    margin-top: 4px;
    font-size: 13px;
}

/* Collapsed optional fields and their "+ Add ..." links */
.dc-page--checkout .is-collapsed {
    display: none !important;
}

.dc-reveal {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: -4px;
}

.dc-extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin-top: 12px;
}

.dc-extras .dc-link,
.dc-check--small label {
    min-height: 36px;
    font-size: 13.5px;
}

.dc-check--small {
    align-items: center !important;
}

.dc-check--small input[type="checkbox"] {
    margin-top: 0;
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.dc-page--checkout .dc-notes {
    margin-top: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.dc-page--checkout .dc-notes textarea {
    min-height: 64px !important;
}

.dc-page--checkout #dc-gst-fields:not(.is-collapsed) {
    margin-top: 12px;
}

.dc-page--checkout .dc-ship {
    margin: 0;
    padding: 0;
    border: 0;
}

.dc-page--checkout .dc-ship__fields {
    margin-top: 4px;
}

/* OTP: one compact row */
.dc-page--checkout .dc-otp {
    margin-top: 10px;
    padding: 10px 12px;
}

.dc-page--checkout .dc-otp__entry:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.dc-page--checkout .dc-otp__input {
    flex: 0 1 170px;
    min-height: 40px;
    font-size: 18px !important;
    letter-spacing: .3em;
}

.dc-page--checkout .dc-otp__input::placeholder {
    letter-spacing: normal;
    font-size: 14px;
}

.dc-page--checkout .dc-otp .dc-field-msg {
    margin-top: 6px;
}

.dc-page--checkout .dc-otp__done {
    font-size: 14px;
}

/* Payment */
.dc-page--checkout .dc-methods {
    margin-bottom: 12px !important;
}

.dc-page--checkout .dc-method__label {
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.dc-page--checkout .dc-method.is-single {
    border-color: var(--dc-line);
    background: var(--dc-bg);
}

.dc-page--checkout .dc-method.is-single .dc-method__label {
    display: flex !important;
}

.dc-page--checkout .dc-method__box {
    padding-bottom: 10px !important;
    font-size: 13px;
}

.dc-page--checkout .dc-place-order {
    gap: 8px;
}

.dc-page--checkout .dc-pay-note {
    font-size: 12.5px;
    line-height: 1.5;
}

.dc-page--checkout .dc-pay-note a {
    color: var(--dc-ink-2);
    text-decoration: underline;
}

.dc-page--checkout .dc-create-account {
    margin: 12px 0 0;
    padding: 0;
    background: none;
}

/* Summary: tighter, and only once on phones (in the collapsible block at the top) */
.dc-page--checkout .dc-summary {
    gap: 12px;
}

.dc-page--checkout .dc-items--compact .dc-item {
    padding: 10px 0;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
}

.dc-page--checkout .dc-items--compact {
    max-height: 300px;
}

.dc-page--checkout .dc-totals {
    gap: 8px;
    padding-top: 12px;
}

.dc-page--checkout .dc-totals__row--total dd {
    font-size: 21px;
}

.dc-page--checkout .dc-delivery {
    padding: 10px 12px;
}

.dc-page--checkout .dc-trust {
    gap: 6px;
    padding-top: 12px;
    font-size: 13px;
}

.dc-page--checkout .dc-mobile-summary {
    margin-bottom: 12px;
}

.dc-page--checkout .dc-mobile-summary > summary {
    min-height: 50px;
    padding: 10px 14px;
}

@media (max-width: 991px) {
    .dc-page--checkout .dc-layout__side {
        display: none;
    }

    .dc-page--checkout .dc-mobile-summary .dc-items--compact {
        max-height: 260px;
        overflow-y: auto;
    }
}

@media (min-width: 992px) {
    .dc-page--checkout {
        padding-bottom: 40px;
    }
}

.dc-page--checkout .dc-reveal-row {
    margin-top: -4px !important;
}

.dc-page--checkout .dc-reveal-row:has(.dc-reveal[hidden]) {
    display: none !important;
}

.dc-page--checkout .dc-create-account {
    margin: 0 0 12px;
}

/* Single payment method: one slim row */
.dc-page--checkout .dc-method.is-single .dc-method__label {
    min-height: 40px;
    padding: 8px 14px;
}

.dc-page--checkout .dc-method.is-single .dc-method__box {
    padding: 0 14px 8px !important;
    margin-top: -4px !important;
    font-size: 12.5px;
    color: var(--dc-muted) !important;
}

.dc-page--checkout .dc-method__icon img {
    max-height: 22px;
}

/* WooCommerce's ".woocommerce form .form-row" margin/padding outranks ours */
.dc-page--checkout .dc-fields > .form-row,
.dc-page--checkout .dc-fields > .dc-field {
    margin: 0 !important;
    padding: 0 !important;
}

.dc-page--checkout .dc-check label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
}

.dc-page--checkout .dc-check input[type="checkbox"] {
    margin: 0 !important;
    align-self: center;
}

.dc-page--checkout .dc-check {
    align-items: center !important;
}

.dc-page--checkout .dc-shipping-methods:empty,
.dc-page--checkout .dc-shipping-methods-slot:has(.dc-shipping-methods:empty) {
    display: none;
}

.dc-page--checkout .dc-extras {
    margin-top: 10px;
}

.dc-page--checkout .dc-ship .shipping_address[style*="display: none"],
.dc-page--checkout .dc-ship:not(:has(.shipping_address:not([style*="display: none"]))) {
    margin: 0;
}

/* Phones: keep short fields in pairs (name, city/PIN, state/country) */
@media (max-width: 639px) {
    .dc-page--checkout .dc-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dc-page--checkout .dc-fields > .dc-field--full,
    .dc-page--checkout .dc-fields > .form-row-wide,
    .dc-page--checkout #billing_email_field,
    .dc-page--checkout #billing_phone_field,
    .dc-page--checkout .dc-notes > .dc-field {
        grid-column: 1 / -1;
    }

    .dc-page--checkout .dc-otp__start .dc-hint {
        display: none;
    }

    .dc-page--checkout .dc-extras {
        gap: 0 16px;
    }
}

@media (max-width: 639px) {
    .dc-page--checkout #billing_company_field,
    .dc-page--checkout #billing_gstin_field {
        grid-column: 1 / -1;
    }
}

/* ---------- Pay for order (woocommerce/checkout/form-pay.php) ---------- */

.dc-page--pay .dc-page-head {
    align-items: flex-end;
}

.dc-pay-head__meta {
    margin-top: 4px;
    font-size: 14px;
    color: var(--dc-muted);
}

.dc-page--pay .dc-section__title .dc-icon {
    width: 20px;
    height: 20px;
    color: var(--dc-gold-ink);
}

.dc-page--pay .dc-notices:empty {
    display: none;
}

.dc-page--pay > .dc-notice,
.dc-page--pay .dc-notices {
    margin-bottom: 16px;
}

.dc-pay-form .dc-layout__main {
    display: grid;
    gap: 20px;
    align-content: start;
}

.dc-pay-address address {
    font-style: normal;
    line-height: 1.6;
    color: var(--dc-ink-2);
}

.dc-pay-address .dc-hint {
    margin-top: 8px;
}

/* WooCommerce's own message when an order can't be paid */
.dc-pay-message {
    max-width: 560px;
    margin: 4px auto 20px;
    text-align: left;
}

.dc-pay-message .woocommerce-error,
.dc-pay-message .woocommerce-info,
.dc-pay-message .woocommerce-message {
    list-style: none;
    margin: 0 0 12px;
    padding: 14px 16px;
    border-radius: var(--dc-radius-sm);
    border: 1px solid var(--dc-line);
    background: var(--dc-surface);
    color: var(--dc-ink);
    font-size: 15px;
}

.dc-pay-message .woocommerce-error {
    border-color: #f4c7c3;
    background: var(--dc-error-soft);
    color: var(--dc-error);
}

.dc-pay-message .woocommerce-error::before,
.dc-pay-message .woocommerce-info::before,
.dc-pay-message .woocommerce-message::before {
    display: none;
}

.dc-pay-message .button {
    display: none;
}
