/* =============================================
   CHECKOUT REDESIGN - 3-Step Flow
   ============================================= */

/* UK Number Plate fonts — declared here so they resolve from this CSS file's location */
@font-face {
    font-family: 'UKNumberPlate';
    src: url('../../UKNumberPlate.ttf') format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'UKNumberPlateHiLine';
    src: url('../../UKNumberPlateHiLine.ttf') format('truetype');
}
@font-face {
    font-family: 'UKNumberPlateBase';
    src: url('../../UKNumberPlateBase.ttf') format('truetype');
}
@font-face {
    font-family: 'UKNumberPlateCarbon';
    src: url('../../UKNumberPlateCarbon.ttf') format('truetype');
}
@font-face {
    font-family: 'UKNumberPlate3D';
    src: url('../../UKNumberPlate3D.ttf') format('truetype');
    font-weight: bold;
}
/* Progress Bar */
.checkout-progress {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
    background: #fff;
}
.checkout-progress-step {
    flex: 1;
    text-align: center;
    padding: 18px 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #aaa;
    position: relative;
    cursor: default;
}
.checkout-progress-step .step-underline {
    display: block;
    height: 3px;
    background: transparent;
    margin-top: 10px;
    border-radius: 2px;
}
.checkout-progress-step.active {
    color: #1a1a1a;
    font-weight: 700;
}
.checkout-progress-step.active .step-underline {
    background: #FFD100;
}
.checkout-progress-step.completed {
    color: #555;
}

/* Page Header */
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 6px;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 8px;
}
.checkout-header h1 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}
.checkout-reviews {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}
.checkout-reviews strong {
    color: #1a1a1a;
}
.checkout-reviews .stars {
    color: #FFD100;
    font-size: 15px;
    letter-spacing: 1px;
}
@media (max-width: 600px) {
    .checkout-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0 6px;
    }
    .checkout-header h1 {
        font-size: 20px;
    }
    .checkout-reviews {
        font-size: 12px;
    }
}
.checkout-divider {
    border: none;
    border-top: 2px solid #FFD100;
    margin: 10px 0 24px;
}

/* Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* Container width — matches all other redesign pages (1425px) */
.checkout-page-wrap .container {
    max-width: 1425px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .checkout-sidebar {
        order: -1;
    }
}

/* Cards */
.checkout-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 22px 24px;
    margin-bottom: 16px;
}
.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.checkout-card-header.completed-header {
    margin-bottom: 0;
}
.checkout-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #FFD100;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}
.checkout-step-badge.completed-badge {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
}
.checkout-card-header h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    flex: 1;
}
.checkout-step-check {
    color: #4CAF50;
    font-size: 18px;
    margin-left: auto;
}

/* Form Fields */
.checkout-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.checkout-form-grid-2-3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .checkout-form-grid-2,
    .checkout-form-grid-2-3 {
        grid-template-columns: 1fr;
    }
}
.checkout-form-field {
    margin-bottom: 12px;
}
.checkout-form-field input[type="text"],
.checkout-form-field input[type="email"],
.checkout-form-field input[type="tel"],
.checkout-form-field select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 11px 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s;
}
.checkout-form-field input:focus,
.checkout-form-field select:focus {
    border-color: #FFD100;
}
.checkout-form-field input.error {
    border-color: #e53935;
}
.checkout-form-field .field-error {
    color: #e53935;
    font-size: 12px;
    margin-top: 3px;
    display: block;
}
.checkout-form-full {
    margin-bottom: 12px;
}
.checkout-form-full input[type="text"],
.checkout-form-full input[type="email"] {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 11px 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
}
.checkout-form-full input:focus {
    border-color: #FFD100;
}

/* Checkbox rows */
.checkout-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.checkout-checkbox-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #FFD100;
    flex-shrink: 0;
}
.checkout-checkbox-row a {
    color: #82B92E;
    text-decoration: underline;
}

/* Nominee helper text */
.nominee-helper {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* Delivery section */
.checkout-delivery-section {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.checkout-delivery-section.visible {
    display: block;
}

/* Buttons */
.checkout-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.btn-checkout-next {
    background: #82B92E;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-checkout-next:hover {
    background: #6fa024;
    color: #fff;
    text-decoration: none;
}
.btn-checkout-prev {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-checkout-prev:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    text-decoration: none;
}

/* Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 10%;
}
.checkout-sidebar-inner {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

/* Sidebar plate preview */
.checkout-plate-preview {
    background: #FFD100;
    margin: 8px auto 12px auto;
    width: 100%;
    aspect-ratio: 520 / 110;
    border-radius: 4px;
    font-family: 'UKNumberPlate', 'Charles Wright', Arial, sans-serif;
    font-size: clamp(18px, 3.8vw, 42px);
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}
.checkout-plate-reg {
    font-family: 'UKNumberPlate', 'Charles Wright', Arial, sans-serif;
    font-size: clamp(24px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 5px;
    color: #000;
    line-height: 1;
}
.checkout-plate-legal {
    font-size: 8px;
    font-weight: 600;
    color: #000;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    white-space: nowrap;
    line-height: 1;
}
.checkout-plate-bsau {
    font-size: 8px;
    font-weight: 600;
    color: #000;
    position: absolute;
    bottom: 2px;
    right: 8px;
    opacity: 0.7;
    line-height: 1;
}

/* Sidebar price breakdown */
.checkout-sidebar-body {
    padding: 16px 20px 20px;
}
.sidebar-validity {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin: 10px 0 14px;
    line-height: 1.4;
}
.sidebar-price-rows {
    border-top: 1px solid #e5e5e5;
    padding-top: 12px;
}
.sidebar-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #333;
    padding: 5px 0;
}
.sidebar-price-row .label {
    color: #555;
}
.sidebar-divider {
    border: none;
    border-top: 1px solid #FFD100;
    margin: 10px 0;
}
.sidebar-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 4px 0;
}
.sidebar-payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.sidebar-payment-icon {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sidebar-safe-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #82B92E;
    font-weight: 600;
}

/* =============================================
   OPTIONAL EXTRAS (Step 2)
   ============================================= */
.extras-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
}
.extras-radio-option {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.extras-radio-option:has(input:checked) {
    border-color: #FFD100;
    background: #fffef0;
}
.extras-radio-option label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}
@media (max-width: 600px) {
    .extras-radio-option label {
        font-size: 13px;
    }
    .extras-bestseller-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}
.extras-radio-option label .option-price {
    color: #555;
    font-weight: 500;
    margin-left: 4px;
}
.extras-option-desc {
    font-size: 13px;
    color: #666;
    margin: 8px 0 0 26px;
    line-height: 1.5;
}
.extras-option-desc ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}
.extras-option-desc ul li {
    margin-bottom: 4px;
}
.extras-bestseller-badge {
    background: #FFD100;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}
.extras-plates-section {
    margin-top: 6px;
}
.plates-preview-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin: 16px 0 12px;
    max-width: 700px;
}
.plates-preview-col {
    flex: 1;
    min-width: 0;
}
.plates-preview-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}
/* White rear plate */
.plate-preview-sm.plate-preview-rear {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12), inset 0 0 12px rgba(0,0,0,0.08), inset 0 0 0 4px #ffffff, inset 0 0 0 6px #000;
}
/* Override PRIMO/BSAU background to white on rear plate */
.plate-preview-sm.plate-preview-rear::after,
.plate-preview-sm.plate-preview-rear::before {
    background: #ffffff;
}
/* Override inset border gap to white on rear plate — keep outer + inner shadow */
.plate-preview-sm.plate-preview-rear.plate-border-black  { box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12), inset 0 0 12px rgba(0,0,0,0.08), inset 0 0 0 4px #ffffff, inset 0 0 0 6px #000; }
.plate-preview-sm.plate-preview-rear.plate-border-blue   { box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12), inset 0 0 12px rgba(0,0,0,0.08), inset 0 0 0 4px #ffffff, inset 0 0 0 6px #003399; }
.plate-preview-sm.plate-preview-rear.plate-border-red    { box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12), inset 0 0 12px rgba(0,0,0,0.08), inset 0 0 0 4px #ffffff, inset 0 0 0 6px #cc0000; }
.plate-preview-sm.plate-preview-rear.plate-border-none   { box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12), inset 0 0 12px rgba(0,0,0,0.08); }
/* Plate preview — matches .plate-univ from variables.css exactly */
.plate-preview-sm {
    background: #FFD100;
    border-radius: 6px;
    width: 100%;
    aspect-ratio: 520 / 110;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'UKNumberPlate', 'Charles Wright', Arial, sans-serif;
    font-size: clamp(24px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1;
    text-align: center;
    box-shadow: inset 0 0 0 4px #FFD100, inset 0 0 0 6px #000;
}
/* Border variants — inset with yellow gap */
.plate-preview-sm.plate-border-none   { box-shadow: none; }
.plate-preview-sm.plate-border-black  { box-shadow: inset 0 0 0 4px #FFD100, inset 0 0 0 6px #000; }
.plate-preview-sm.plate-border-blue   { box-shadow: inset 0 0 0 4px #FFD100, inset 0 0 0 6px #003399; }
.plate-preview-sm.plate-border-red    { box-shadow: inset 0 0 0 4px #FFD100, inset 0 0 0 6px #cc0000; }
/* PRIMO + BSAU labels — sit on border line, border cut behind text */
.plate-preview-sm::after {
    content: 'PRIMO';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0;
    color: rgba(0,0,0,0.7);
    white-space: nowrap;
    line-height: 1;
    z-index: 200;
    background: #FFD100;
    padding: 1px 4px;
}
.plate-preview-sm::before {
    content: 'BSAU 145e';
    position: absolute;
    bottom: 2px;
    right: 6px;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0;
    color: rgba(0,0,0,0.7);
    white-space: nowrap;
    line-height: 1;
    z-index: 200;
    background: #FFD100;
    padding: 1px 4px;
}
/* Plate text — inherits font from .plate-preview-sm */
.plate-preview-sm .plate-text-sm {
    position: relative;
    z-index: 100;
    font-family: 'UKNumberPlate', 'Charles Wright', Arial, sans-serif;
    font-size: clamp(24px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 0px;
    color: #000;
    line-height: 1;
    white-space: nowrap;
}
/* When 3D/4D font active — depth via text-shadow on top layer only */
/* Font variants — mapped by style ID */
.plate-preview-sm .plate-text-sm.plate-font-id-1  { font-family: 'UKNumberPlate', Arial, sans-serif; text-shadow: none; }
/* 3D Gel — UKNumberPlate font, glossy depth via text-shadow layers */
.plate-preview-sm .plate-text-sm.plate-font-id-3  {
    font-family: 'UKNumberPlate', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #1a1a1a;
    letter-spacing: 0;
    line-height: 1;
    text-shadow:
        0 1px 0 #555,
        0 2px 0 #444,
        0 3px 0 #333,
        0 4px 6px rgba(0,0,0,0.6),
        0 0 8px rgba(0,0,0,0.3);
}
/* 4D Laser Cut — black top layer + grey shadow underneath offset bottom-right */
.plate-preview-sm .plate-text-sm.plate-font-id-4  {
    font-family: 'UKNumberPlate', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #000;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: 2px 2px 0 #888, 2.5px 2.5px 0 #777;
}
/* Under-layer (shadow/base) for 3D Gel and 4D Letters */
.plate-preview-sm .plate-text-sm-under { display: none; font-family: 'UKNumberPlateBase', Arial, sans-serif; color: #000; position: absolute; width: 100%; text-align: center; top: calc(50% + 3px); transform: translateY(-50%); left: 2px; font-size: clamp(24px, 5vw, 56px); font-weight: 700; letter-spacing: 5px; line-height: 1; padding: 0 10px; z-index: 1; }
/* Flag image inside plate preview */
.plate-preview-flag-img {
    display: none;
}
/* Blue vertical flag strip on plate — inside the inset border */
.plate-flag-strip {
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 24px;
    background: #003399;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    z-index: 10;
}
.plate-flag-strip-icon {
    font-size: 14px;
    line-height: 1;
    display: block;
}
.plate-flag-strip-abbr {
    font-family: Arial, sans-serif;
    font-size: 6px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
    display: block;
}
/* UK Union — no blue strip, just the flag icon */
.plate-flag-strip.flag-strip-gb {
    background: transparent;
    width: 28px;
}
.plate-flag-strip.flag-strip-gb .plate-flag-strip-icon {
    font-size: 18px;
}
/* Electric — green strip, no icon */
.plate-flag-strip.flag-strip-electric {
    background: #00b33c;
}
.plate-flag-strip.flag-strip-electric .plate-flag-strip-icon {
    display: none;
}
/* Shift text right when flag is present */
.plate-preview-sm.has-flag .plate-text-sm {
    padding-left: 28px;
}
.plates-style-grid {
    margin-top: 14px;
}
.style-section {
    margin-bottom: 18px;
}
.style-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}
/* Style dropdowns */
.style-dropdown {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    appearance: auto;
    margin-bottom: 4px;
}
.style-dropdown:focus {
    border-color: #FFD100;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,209,0,0.3);
}
.style-section-sublabel {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 6px;
}
.style-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.style-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px 6px;
    cursor: pointer;
    min-width: 70px;
    max-width: 110px;
    background: #fafafa;
    position: relative;
    transition: border-color 0.15s;
    text-align: center;
    font-size: 12px;
}
.style-option-card:hover {
    border-color: #aaa;
}
.style-option-card.selected {
    border-color: #82B92E;
    background: #f5faea;
}
.style-option-card input.style-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: auto;
}
.style-option-img {
    width: auto;
    max-width: 80px;
    max-height: 48px;
    object-fit: contain;
    margin-bottom: 5px;
    display: block;
}
.style-flag-img {
    max-height: 36px;
    max-width: 60px;
}
.style-option-label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: block;
}
.style-option-price {
    font-size: 11px;
    color: #82B92E;
    font-weight: 700;
    display: block;
    margin-top: 2px;
}
.style-bestseller-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 36px;
    height: auto;
}
.style-border-colour {
    margin-top: 10px;
}

/* =============================================
   PAYMENT & SUMMARY (Step 3)
   ============================================= */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}
.summary-table tr td {
    padding: 9px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.summary-table tr td:last-child {
    text-align: right;
    font-weight: 500;
}
.summary-table tr.total-row td {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: none;
    padding-top: 12px;
}
.promo-code-row {
    margin: 14px 0 20px;
    font-size: 13px;
    color: #555;
}
.promo-code-row a {
    color: #82B92E;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.promo-code-row a:hover {
    text-decoration: underline;
}
.promo-code-input-row {
    display: none;
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.promo-code-input-row input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 13px;
}
.promo-code-input-row button {
    background: #FFD100;
    border: none;
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.payment-method-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1a1a1a;
}
/* Payment option cards */
.payment-option-card {
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fafafa;
}
.payment-option-card:hover {
    border-color: #82B92E;
    background: #f5faea;
}
.payment-option-card.selected {
    border-color: #82B92E;
    background: #f5faea;
}
.payment-option-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.payment-option-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}
.payment-option-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.payment-option-details strong {
    font-size: 14px;
    color: #1a1a1a;
}
.payment-option-sub {
    font-size: 12px;
    color: #888;
}
.payment-option-check {
    color: #82B92E;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.15s;
}
.payment-option-card.selected .payment-option-check {
    opacity: 1;
}
.payment-card-fields {
    margin-bottom: 16px;
}
.payment-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.payment-card-input-wrap {
    position: relative;
    margin-bottom: 10px;
}
.payment-card-input-wrap input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 11px 44px 11px 14px;
    font-size: 14px;
    box-sizing: border-box;
}
.payment-card-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 3px;
}
.card-icon {
    width: 26px;
    height: 17px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 7px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.card-icon.mc { color: #eb001b; }
.card-icon.visa { color: #1a1f71; }
.card-icon.amex { color: #007bc1; }
.card-icon.union { color: #e21837; }

.btn-pay-now {
    display: block;
    width: 100%;
    background: #82B92E;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    text-decoration: none;
    margin-top: 6px;
    text-transform: uppercase;
}
.btn-pay-now:hover {
    background: #6fa024;
    color: #fff;
    text-decoration: none;
}
.terms-agree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    font-size: 13px;
    color: #555;
}
.terms-agree-row a {
    color: #82B92E;
}

/* Completed step cards */
.checkout-card.step-completed {
    background: #fafafa;
}
.checkout-card.step-completed .checkout-card-header {
    margin-bottom: 0;
}

/* Error messages */

/* =============================================
   CRAFTYCLICKS POSTCODE DROPDOWN
   ============================================= */
#crafty_postcode_result_display_billing {
    display: block;
    margin-top: 8px;
    width: 100%;
}

/* The injected <select> dropdown */
#crafty_postcode_lookup_result_option1,
#crafty_postcode_lookup_result_option2 {
    width: 100% !important;
    max-width: 100% !important;
    border: 2px solid #FFD100 !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #1a1a1a !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    background-size: 10px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
    line-height: 1.4 !important;
}

#crafty_postcode_lookup_result_option1:focus,
#crafty_postcode_lookup_result_option2:focus {
    border-color: #82B92E !important;
    box-shadow: 0 0 0 3px rgba(130,185,46,0.15) !important;
}

/* Force height on the CraftyClicks select */
select#crafty_postcode_lookup_result_option1,
select#crafty_postcode_lookup_result_option2,
select#crafty_postcode_lookup_result_option3,
#crafty_postcode_result_display_billing select {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

#crafty_postcode_lookup_result_option1 option,
#crafty_postcode_lookup_result_option2 option {
    padding: 8px 12px;
    font-size: 14px;
}

/* Status/error messages CraftyClicks injects */
#crafty_postcode_result_display_billing p,
#crafty_postcode_result_display_billing span {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
    display: block;
}

/* Spinner shown while CraftyClicks is looking up */
@keyframes cp-spin {
    to { transform: rotate(360deg); }
}
#crafty_postcode_result_display_billing img {
    display: none !important;
}
#crafty_postcode_result_display_billing:has(img) {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
}
#crafty_postcode_result_display_billing:has(img)::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #82B92E;
    border-radius: 50%;
    animation: cp-spin 0.7s linear infinite;
    flex-shrink: 0;
}
#crafty_postcode_result_display_billing:has(img)::after {
    content: 'Finding address…';
    font-size: 13px;
    color: #555;
}
.checkout-error-msg {
    background: #fff3f3;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ── Mobile fixes for extras plate preview ───────────────────── */
@media (max-width: 900px) {
    /* Plates preview: scale down, prevent overflow */
    .plates-preview-row {
        max-width: 100%;
        gap: 10px;
    }
    .plate-preview-sm {
        font-size: clamp(14px, 4vw, 28px);
    }
    .plate-preview-sm .plate-text-sm {
        font-size: clamp(14px, 4vw, 28px);
    }
    /* Scale PRIMO/BSAU labels down on mobile */
    .plate-preview-sm::after,
    .plate-preview-sm::before {
        font-size: 5px;
        padding: 1px 2px;
    }
    /* Ensure plate container clips pseudo-elements — no bleed into sidebar */
    .plate-preview-sm {
        overflow: hidden;
        isolation: isolate;
    }
    /* Sidebar plate — hide on mobile (already handled but reinforce) */
    #sidebar-plate-preview {
        display: none !important;
    }
    .sidebar-payment-icons,
    .sidebar-safe-checkout {
        display: none !important;
    }
}
