/* ── Checkout Page Styles ── */

.woocommerce-checkout .woocommerce,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info {
    margin: 0;
}

.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.woocommerce-checkout .woocommerce-message {
    background: rgba(90, 138, 106, 0.08);
    border: 1px solid rgba(90, 138, 106, 0.2);
    color: var(--success);
}

.woocommerce-checkout .woocommerce-info {
    background: rgba(184, 151, 126, 0.08);
    border: 1px solid rgba(184, 151, 126, 0.2);
    color: var(--accent);
}

.woocommerce-checkout .woocommerce-error {
    background: rgba(196, 77, 77, 0.08);
    border: 1px solid rgba(196, 77, 77, 0.2);
    color: var(--error);
}

.woocommerce-checkout .woocommerce-error a {
    text-decoration: none;
}

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

.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: none;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-coupon {
    display: none !important;
}

.woocommerce-checkout .page-title {
    display: none;
}

/* Show custom checkout page title */
.checkout-page-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* Checkout page entry-content reset */
.woocommerce-checkout .entry-content {
    margin: 0;
    overflow-x: hidden;
}

.woocommerce-checkout form.checkout,
.woocommerce-checkout .woocommerce-checkout {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Checkout Page Container ── */
.woocommerce-checkout {
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.woocommerce-page .woocommerce {
    margin: 0;
    overflow-x: hidden;
}

/* ── Checkout Steps Indicator ── */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-muted);
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.step-dot.completed {
    background: var(--text-primary);
    color: #fff;
}

.step-dot.active-step {
    background: var(--text-primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(28, 28, 28, 0.06);
}

.step-line {
    width: 60px;
    height: 1.5px;
    background: var(--border);
    transition: background var(--transition-smooth);
}

.step-line.completed {
    background: var(--text-primary);
}

.step-label-group {
    display: flex;
    justify-content: center;
    gap: 96px;
    margin-top: -4px;
    margin-bottom: 32px;
}

.step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    width: 36px;
    transition: color var(--transition-smooth);
}

.step-label.active-label {
    color: var(--text-primary);
    font-weight: 600;
}


/* ── Checkout Layout ── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 56px;
    align-items: flex-start;
    margin-bottom: 60px;
    min-width: 0;
}

.checkout-layout > * {
    min-width: 0;
    overflow-wrap: break-word;
}


.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
    overflow: hidden;
}

.checkout-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.4s ease-out;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.checkout-section:nth-child(1) {
    animation-delay: 0.1s;
}

.checkout-section:nth-child(2) {
    animation-delay: 0.2s;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--text-primary);
}

/* Login Prompt */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(184, 151, 126, 0.06);
    border: 1px solid rgba(184, 151, 126, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.login-prompt span {
    color: var(--text-secondary);
}

.login-prompt a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-weight: 500;
    transition: gap var(--transition-fast);
    text-decoration: none;
}

.login-prompt a:hover {
    gap: 8px;
    color: var(--accent-hover);
}

.login-prompt a svg {
    width: 16px;
    height: 16px;
}

/* ── Checkout Login Form ── */
.woocommerce-checkout .woocommerce-form-login {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.woocommerce-checkout .woocommerce-form-login > * {
    flex-basis: 100%;
    margin: 0;
}

.woocommerce-checkout .woocommerce-form-login .clear {
    display: none;
}

/* Intro text */
.woocommerce-checkout .woocommerce-form-login > p:first-child {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Username / Password — two columns */
.woocommerce-checkout .woocommerce-form-login .form-row-first,
.woocommerce-checkout .woocommerce-form-login .form-row-last {
    flex: 1 1 0;
    min-width: 200px;
    float: none !important;
    clear: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 16px !important;
}

/* Labels */
.woocommerce-checkout .woocommerce-form-login label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    font-family: var(--font-sans);
}

.woocommerce-checkout .woocommerce-form-login .required {
    color: var(--error);
    margin-left: 2px;
}

.woocommerce-checkout .woocommerce-form-login .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* Inputs */
.woocommerce-checkout .woocommerce-form-login input[type="text"],
.woocommerce-checkout .woocommerce-form-login input[type="email"],
.woocommerce-checkout .woocommerce-form-login input[type="password"],
.woocommerce-checkout .woocommerce-form-login input.input-text {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 46px;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    box-sizing: border-box;
    margin: 0;
    outline: none;
    letter-spacing: 0.01em;
}

.woocommerce-checkout .woocommerce-form-login input[type="text"]:hover,
.woocommerce-checkout .woocommerce-form-login input[type="email"]:hover,
.woocommerce-checkout .woocommerce-form-login input[type="password"]:hover,
.woocommerce-checkout .woocommerce-form-login input.input-text:hover {
    border-color: var(--text-muted);
}

.woocommerce-checkout .woocommerce-form-login input[type="text"]:focus,
.woocommerce-checkout .woocommerce-form-login input[type="email"]:focus,
.woocommerce-checkout .woocommerce-form-login input[type="password"]:focus,
.woocommerce-checkout .woocommerce-form-login input.input-text:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.03);
    background: var(--bg-white);
}

.woocommerce-checkout .woocommerce-form-login input::placeholder {
    color: var(--text-muted);
}

/* Password input wrapper */
.woocommerce-checkout .woocommerce-form-login .password-input {
    display: block;
    position: relative;
    width: 100%;
}

.woocommerce-checkout .woocommerce-form-login .password-input input {
    padding-right: 44px;
}

.woocommerce-checkout .woocommerce-form-login .password-input .show-password-input {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    opacity: 0.55;
    transition: opacity var(--transition-fast), background var(--transition-fast);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
    font-size: 0;
}

.woocommerce-checkout .woocommerce-form-login .password-input .show-password-input::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    color: var(--text-secondary);
}

.woocommerce-checkout .woocommerce-form-login .password-input .show-password-input:hover {
    opacity: 1;
}

.woocommerce-checkout .woocommerce-form-login .password-input .show-password-input.display-password::before {
    color: var(--text-primary);
    opacity: 1;
}

/* Action row: remember me + login button */
.woocommerce-checkout .woocommerce-form-login > .form-row:not(.form-row-first):not(.form-row-last) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 !important;
}

.woocommerce-checkout .woocommerce-form-login input[type="hidden"] {
    display: none;
}

/* Remember me checkbox */
.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    flex-shrink: 0;
    margin: 0;
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"]:hover {
    border-color: var(--text-muted);
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"]:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.06);
}

/* Login button */
.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__submit {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: var(--text-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 34px;
    border-radius: 50px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    box-shadow: 0 6px 16px -6px rgba(28, 28, 28, 0.45);
    text-decoration: none;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__submit:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px -6px rgba(28, 28, 28, 0.5);
    color: #fff;
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -4px rgba(28, 28, 28, 0.4);
}

.woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.15), 0 6px 16px -6px rgba(28, 28, 28, 0.45);
}

/* Lost password */
.woocommerce-checkout .woocommerce-form-login .lost_password {
    margin: 14px 0 0;
    text-align: right;
    font-size: 13px;
}

.woocommerce-checkout .woocommerce-form-login .lost_password a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.woocommerce-checkout .woocommerce-form-login .lost_password a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .woocommerce-checkout .woocommerce-form-login .form-row-first,
    .woocommerce-checkout .woocommerce-form-login .form-row-last {
        flex-basis: 100%;
        min-width: 0;
    }

    .woocommerce-checkout .woocommerce-form-login > .form-row:not(.form-row-first):not(.form-row-last) {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .woocommerce-checkout .woocommerce-form-login .woocommerce-form-login__submit {
        width: 100%;
        padding: 14px 24px;
    }

    .woocommerce-checkout .woocommerce-form-login .lost_password {
        text-align: center;
    }
}

/* ── Form Fields Grid ── */
.billing-fields-grid,
.shipping-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
}

.billing-fields-grid > *,
.shipping-fields-grid > * {
    min-width: 0;
    overflow: hidden;
}


/* Full width fields */
.form-field-custom.full-width {
    grid-column: 1 / -1;
}

/* Half width fields */
.form-field-custom.half-width {
    grid-column: span 1;
}

.woocommerce-checkout .billing-fields-grid .form-row,
.woocommerce-checkout .shipping-fields-grid .form-row {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row,
.woocommerce-checkout .form-row-wide,
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    box-sizing: border-box;
    max-width: 100%;
}

.woocommerce-checkout .form-field-custom {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.woocommerce-checkout .woocommerce-input-wrapper {
    max-width: 100%;
    box-sizing: border-box;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout input[type="url"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.triple-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    grid-column: 1 / -1;
    min-width: 0;
}

.triple-wrapper > * {
    min-width: 0;
    overflow: hidden;
}


.form-field-custom.third-width {
    grid-column: span 1;
}

.form-field-custom {
    position: relative;
}

.form-field-custom label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    font-family: var(--font-sans);
    transition: color var(--transition-fast);
}

.form-field-custom .required {
    color: var(--error);
    margin-left: 2px;
}

/* Reset WooCommerce wrapper */
.form-field-custom .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.form-field-custom .f-input,
.form-field-custom .woocommerce-input-wrapper input.input-text,
.form-field-custom .woocommerce-input-wrapper textarea,
.form-field-custom textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 48px;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    box-sizing: border-box;
    margin: 0;
    outline: none;
    letter-spacing: 0.01em;
}

.form-field-custom .woocommerce-input-wrapper select,
.form-field-custom select {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: normal;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    box-sizing: border-box;
    margin: 0;
    outline: none;
    letter-spacing: 0.01em;
}

/* Textarea overrides */
.form-field-custom textarea,
.form-field-custom .woocommerce-input-wrapper textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
    line-height: 1.5;
    resize: vertical;
}

/* Focus state */
.form-field-custom .f-input:focus,
.form-field-custom .woocommerce-input-wrapper input.input-text:focus,
.form-field-custom .woocommerce-input-wrapper select:focus,
.form-field-custom .woocommerce-input-wrapper textarea:focus,
.form-field-custom select:focus,
.form-field-custom textarea:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.03);
    background: var(--bg-white);
}

/* Placeholder */
.form-field-custom .f-input::placeholder,
.form-field-custom .woocommerce-input-wrapper input.input-text::placeholder,
.form-field-custom .woocommerce-input-wrapper textarea::placeholder,
.form-field-custom textarea::placeholder {
    color: var(--text-muted);
}

/* Select dropdown styling */
.form-field-custom select,
.form-field-custom .woocommerce-input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Select focus arrow */
.form-field-custom select:focus,
.form-field-custom .woocommerce-input-wrapper select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231C1C1C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-field-custom .select2-container .select2-selection--single,
.form-field-custom .woocommerce-input-wrapper .select2-container .select2-selection--single {
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.form-field-custom .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
    padding-left: 16px;
    padding-right: 40px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.form-field-custom .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
}

.form-field-custom .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-muted) transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

.form-field-custom .select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-primary) transparent;
    border-width: 0 4px 5px 4px;
}

.form-field-custom .select2-container:hover .select2-selection--single {
    border-color: var(--text-muted);
}

.form-field-custom .select2-container.select2-container--open .select2-selection--single {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.03);
    background: var(--bg-white);
}

.select2-dropdown {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--text-primary);
    color: #fff;
}

.select2-container--default .select2-results__option {
    font-size: 14px;
    padding: 10px 16px;
    font-family: var(--font-sans);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(184, 151, 126, 0.08);
    color: var(--text-primary);
}

.select2-container--default .select2-results__option[aria-selected="true"].select2-results__option--highlighted {
    background-color: var(--text-primary);
    color: #fff;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    margin: 8px 12px;
    width: calc(100% - 24px);
    box-sizing: border-box;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--text-primary);
    outline: none;
}

.select2-container .select2-selection--single {
    margin: 0;
}

.form-field-custom .select2-hidden-accessible {
    display: none !important;
}

.form-field-custom .select2-container,
.form-field-custom .woocommerce-input-wrapper .select2-container,
.shipping-address-fields .form-field-custom .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.select2-dropdown {
    max-width: 100vw;
    box-sizing: border-box;
}

.select2-container--open .select2-dropdown {
    max-width: calc(100vw - 32px);
}

.form-field-custom .select2-container .select2-selection--single,
.form-field-custom .woocommerce-input-wrapper .select2-container .select2-selection--single {
    width: 100% !important;
    box-sizing: border-box;
}

.shipping-address-fields .form-field-custom .select2-container .select2-selection--single,
.shipping-address-fields .form-field-custom .woocommerce-input-wrapper .select2-container .select2-selection--single {
    width: 100% !important;
    box-sizing: border-box;
}

.form-field-custom .select2-container .select2-selection__clear,
.shipping-address-fields .form-field-custom .select2-container .select2-selection__clear {
    display: none !important;
}

.shipping-address-fields .form-field-custom .select2-container .select2-selection--single,
.shipping-address-fields .form-field-custom .woocommerce-input-wrapper .select2-container .select2-selection--single {
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.shipping-address-fields .form-field-custom .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    padding-left: 16px;
    padding-right: 40px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.shipping-address-fields .form-field-custom .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 12px;
}

.shipping-address-fields .form-field-custom .select2-container:hover .select2-selection--single {
    border-color: var(--text-muted);
}

.shipping-address-fields .form-field-custom .select2-container.select2-container--open .select2-selection--single {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.03);
    background: var(--bg-white);
}

/* Checkbox styling */
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.check-row .f-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    appearance: none;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
}

.check-row .f-check:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.check-row .f-check:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.check-row .f-check:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.06);
}

.check-row .check-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.ship-to-different {
    margin-top: 16px;
}

.shipping-address-fields {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    animation: slideDown 0.3s ease-out;
}

.shipping-address-fields.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-checkout-payment {
    margin-top: 0;
    padding: 30px;
    background: none !important;
}

.woocommerce-checkout-review-order-table {
    display: none !important;
}

/* ── Section Label ── */
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 14px;
}

/* ── Payment Grid ── */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
    min-width: 0;
}

.payment-grid > * {
    min-width: 0;
    overflow: hidden;
}

.payment-grid > .woocommerce-info,
.payment-grid > .woocommerce-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 20px;
    margin: 0;
}

.payment-option {
    position: relative;
}

.payment-option .payment-radio-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.payment-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md, 16px);
    background: #fff;
    padding: 22px 16px 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 148px;
    user-select: none;
    -webkit-user-select: none;
}

.payment-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.payment-option .payment-radio-hidden:focus-visible + .payment-card {
    outline: none;
    box-shadow: 0 0 0 4px rgba(127, 84, 179, 0.35);
    border-color: var(--accent);
}

.payment-option .payment-radio-hidden:checked + .payment-card {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--text-primary);
}

/* ── Icon Circle ── */
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    color: var(--text-primary);
}

.payment-option .payment-radio-hidden:checked + .payment-card .icon-circle {
    background: var(--text-primary);
    color: #fff;
    transform: scale(1.02);
}

.icon-circle svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.75;
}

.icon-circle img {
    max-height: 24px;
    width: auto;
}

/* ── Payment Label Text ── */
.payment-label-text {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1f2937;
    transition: color var(--transition-fast);
}

.payment-option .payment-radio-hidden:checked + .payment-card .payment-label-text {
    color: var(--text-primary);
}

/* ── Description Box ── */
.description-box {
    background: #faf9fd;
    border: 1px solid #ede9f7;
    border-radius: var(--radius-sm, 12px);
    padding: 16px 18px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 6px 0 24px;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.description-box.fade {
    opacity: 0.4;
    transform: translateY(2px);
}

.payment-method-details {
    display: none;
}

.payment-method-details.active {
    display: block;
}

/* ── Place Order Button ── */
.place-order-btn-wrap {
    margin-bottom: 0;
}

.place-order-btn,
.place-order .button.alt {
    width: 100%;
    appearance: none;
    border: none;
    background: var(--text-primary);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 10px 20px -8px rgba(28, 28, 28, 0.35);
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-order-btn:hover,
.place-order .button.alt:hover {
    background: #333;
    transform: translateY(-1px);
}

.place-order-btn:active,
.place-order .button.alt:active {
    background: #1a1a1a;
    transform: translateY(0);
}

.place-order-btn:focus-visible,
.place-order .button.alt:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(28, 28, 28, 0.15), 0 10px 20px -8px rgba(28, 28, 28, 0.35);
}

.place-order-btn:disabled,
.place-order-btn.disabled,
.place-order .button.alt:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* ── Trust Row ── */
.trust-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 75px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f3;
}

.trust-item {
    font-size: 12px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.trust-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    color: #9ca3af;
    flex-shrink: 0;
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    border-radius: 45px;
    padding: 15px;
    background: #000;
}

.checkout-section:nth-child(2) {
    margin-top: 30px;
}

/* ── Privacy / Terms ── */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 12px;
    padding-top: 12px;
}

.woocommerce-terms-and-conditions-wrapper p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    text-align: center;
    margin-bottom: 20px;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: var(--accent);
    text-decoration: underline;
}

.woocommerce-terms-and-conditions-wrapper a:hover {
    color: var(--accent-hover);
}

/* ── Order Summary Sidebar ── */
.order-summary {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border-light);
    position: sticky;
    top: calc(72px + 30px);
    animation: fadeInUp 0.4s ease-out;
    animation-delay: 0.3s;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}


.summary-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 20px;
    color: var(--text-primary);
}

/* Summary Items */
.summary-items {
    max-height: 320px;
    overflow-y: auto;
}

.summary-items::-webkit-scrollbar {
    width: 4px;
}

.summary-items::-webkit-scrollbar-track {
    background: transparent;
}

.summary-items::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.summary-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-item-img {
    width: 56px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

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

.summary-item-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.summary-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.summary-item-name a {
    color: inherit;
    text-decoration: none;
}

.summary-item-name a:hover {
    color: var(--accent);
}

.summary-item-variant {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.summary-item-qty {
    font-size: 11px;
    color: var(--text-muted);
}

.summary-item-price {
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    color: var(--text-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Summary Divider */
.summary-divider {
    border-top: 1px solid var(--border-light);
    margin: 16px 0;
}

/* Summary Rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.summary-row.total {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 18px;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    margin-top: 6px;
}

.summary-row .free-shipping {
    color: var(--success);
}

.s-tax-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin: 8px 0 16px;
    font-style: italic;
}

/* ── Sidebar Place Order ── */
.sidebar-place-order {
    margin-top: 16px;
}

.sidebar-order-btn,
.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    width: 100%;
    gap: 8px;
    background: var(--text-primary);
    color: #fff;
}

.sidebar-order-btn:hover,
.btn.btn-primary:hover {
    background: #333;
    box-shadow: var(--shadow-md);
}

.secure-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 14px;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-note svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Promo Code ── */
.s-promo {
    margin: 16px 0;
}

.s-promo-form {
    display: flex;
    gap: 8px;
    transition: all var(--transition-fast);
}

.s-promo-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
    outline: none;
}

.s-promo-input:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.03);
    background: var(--bg-white);
}

.s-promo-input::placeholder {
    color: var(--text-muted);
}

.s-promo-input.error {
    border-color: var(--error);
    animation: shake 0.5s ease-in-out;
}

.s-promo-btn {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--text-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    white-space: nowrap;
}

.s-promo-btn:hover {
    background: #333;
}

.s-promo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Promo message feedback */
.s-promo-message {
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.4;
    display: none;
}

.s-promo-message.success {
    display: block;
    color: var(--success);
    background: rgba(90, 138, 106, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(90, 138, 106, 0.15);
}

.s-promo-message.error {
    display: block;
    color: var(--error);
    background: rgba(196, 77, 77, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(196, 77, 77, 0.15);
}

.s-promo-applied {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(90, 138, 106, 0.08);
    border: 1px solid rgba(90, 138, 106, 0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 8px;
    animation: fadeInUp 0.3s ease-out;
}

.s-promo-applied.show {
    display: flex;
}

.s-promo-applied span:first-child {
    color: var(--success);
    font-weight: 500;
}

.s-promo-applied span:last-child {
    color: var(--success);
    font-weight: 700;
}

/* ── Empty Cart State ── */
.cart-empty-wrapper {
    padding: 80px 24px;
    background: var(--bg-primary);
}

.empty-cart {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--text-muted);
}

.empty-icon svg {
    width: 36px;
    height: 36px;
}

.empty-cart h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.empty-cart p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 32px;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    background: var(--text-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.btn-shop:hover {
    background: #333;
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-shop svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-shop:hover svg {
    transform: translateX(4px);
}

/* ── Responsive Design ── */


/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading State */
.checkout-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error State */
.form-field-custom.error .f-input,
.form-field-custom.error select,
.form-field-custom.error textarea {
    border-color: var(--error);
    animation: shake 0.5s ease-in-out;
}

*:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

@media print {
    .checkout-layout {
        display: block;
    }

    .order-summary {
        display: none;
    }

    .checkout-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

.checkout-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-smooth);
}

.checkout-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 0;
    max-width: 400px;
    width: max-content;
    box-sizing: border-box;
}

.notification-success {
    background: rgba(90, 138, 106, 0.1);
    border: 1px solid rgba(90, 138, 106, 0.3);
    color: var(--success);
}

.notification-error {
    background: rgba(196, 77, 77, 0.1);
    border: 1px solid rgba(196, 77, 77, 0.3);
    color: var(--error);
}

.notification-info {
    background: rgba(184, 151, 126, 0.1);
    border: 1px solid rgba(184, 151, 126, 0.3);
    color: var(--accent);
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.place-order .button.alt.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-shipping-methods li {
    margin: 0;
}

.woocommerce-shipping-methods li label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.woocommerce-shipping-methods li label:hover {
    border-color: var(--text-muted);
}

.woocommerce-shipping-methods li input[type="radio"]:checked + label,
.woocommerce-shipping-methods li label:has(input:checked) {
    border-color: var(--text-primary);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.woocommerce-shipping-methods input[type="radio"] {
    display: none;
}


.wp-block-woocommerce-checkout-order-summary-block {
    border: 1px solid #ddd;
    padding: 20px;
}


/**
====================================================================
  Responsive Styles
====================================================================
*/

@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr 340px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .step-label-group {
        gap: 48px;
    }
    .step-line {
        width: 36px;
    }

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

    .billing-fields-grid,
    .shipping-fields-grid {
        grid-template-columns: 1fr;
    }

    .triple-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .order-summary {
        position: static;
        margin-top: 20px;
    }

    .checkout-section {
        padding: 20px;
    }

    .section-heading {
        font-size: 18px;
    }

    .billing-fields-grid,
    .shipping-fields-grid {
        grid-template-columns: 1fr;
    }

    .triple-wrapper {
        grid-template-columns: 1fr;
    }

    .form-field-custom.half-width,
    .form-field-custom.third-width {
        grid-column: 1 / -1;
    }

    .order-summary {
        padding: 20px;
    }

    .summary-title {
        font-size: 20px;
    }

    .summary-item-img {
        width: 48px;
        height: 60px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .s-promo-form {
        flex-direction: column;
    }

    .s-promo-btn {
        width: 100%;
    }

    .login-prompt {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-field-custom .select2-container,
    .form-field-custom .woocommerce-input-wrapper .select2-container {
        width: 100% !important;
    }

    .select2-container--open .select2-dropdown {
        max-width: calc(100vw - 56px);
        min-width: 0;
    }

    .select2-container--default .select2-search--dropdown .select2-search__field {
        width: calc(100% - 24px);
        box-sizing: border-box;
    }

    .trust-row {
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .steps-indicator {
        gap: 4px;
    }
    .step-line {
        width: 24px;
    }
    .step-label-group {
        gap: 30px;
    }
    .step-label {
        font-size: 10px;
    }

    .checkout-section {
        padding: 16px;
    }

    .order-summary {
        padding: 16px;
    }

    .summary-title {
        font-size: 18px;
    }

    .place-order-btn,
    .place-order .button.alt {
        padding: 14px 20px;
        font-size: 14px;
    }

    .checkout-notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .notification-content {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    /* Summary item responsive */
    .summary-item {
        gap: 10px;
    }

    .summary-item-img {
        width: 44px;
        height: 55px;
    }

    .summary-item-name {
        font-size: 12px;
    }

    .summary-item-price {
        font-size: 12px;
    }

    /* Section title row compact */
    .section-heading {
        font-size: 16px;
    }

    .section-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    /* Payment card compact */
    .payment-card {
        padding: 16px 12px 14px;
        min-height: auto;
    }

    .icon-circle {
        width: 44px;
        height: 44px;
    }

    .icon-circle svg {
        width: 20px;
        height: 20px;
    }

    .payment-label-text {
        font-size: 13px;
    }

    .s-promo-applied {
        flex-wrap: wrap;
        gap: 4px;
    }

    .sidebar-order-btn,
    .btn.btn-primary {
        padding: 14px 24px;
        font-size: 13px;
    }

    /* Trust items stack */
    .trust-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .woocommerce-checkout-payment {
        padding: 16px;
    }

    .description-box {
        padding: 12px 14px;
        font-size: 13px;
    }

    .secure-note {
        font-size: 10px;
    }

    .select2-container--open .select2-dropdown {
        max-width: calc(100vw - 40px);
        min-width: 0;
    }

    .summary-row {
        font-size: 12px;
    }

    .summary-row.total {
        font-size: 16px;
    }
}

