/**
 * Checkout Wizard Styles
 * Multi-Step Checkout with Progress Stepper and Floating Labels
 *
 * Architecture: ~/.claude/session-memory/jkr-shop/checkout-dynamic-config-architecture.md
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* JKR Brand Colors - Black theme matching website */
    --checkout-primary: #000000;
    --checkout-primary-hover: #333333;
    --checkout-success: #198754;
    --checkout-success-light: #d1e7dd;
    --checkout-gray-100: #f8f9fa;
    --checkout-gray-200: #e9ecef;
    --checkout-gray-300: #dee2e6;
    --checkout-gray-500: #adb5bd;
    --checkout-gray-600: #6c757d;
    --checkout-gray-800: #343a40;
    --checkout-border-radius: 0.5rem;
    --checkout-transition: 0.2s ease-in-out;
    /* JKR Font */
    --checkout-font-family: 'elza', sans-serif;
}

/* Apply JKR font to all checkout elements */
.checkout-wizard,
.checkout-wizard * {
    font-family: var(--checkout-font-family);
}

/* ==========================================================================
   Progress Stepper
   ========================================================================== */
.checkout-stepper {
    margin-bottom: 2rem;
    padding: 1rem 0;
    background: white;
    z-index: 100;
}

/* Sticky stepper on mobile */
@media (max-width: 768px) {
    .checkout-stepper {
        position: sticky;
        top: 0;
        margin: 0 -1rem 1.5rem -1rem;
        padding: 0.75rem 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

.stepper-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.stepper-item {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.stepper-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: default;
    width: 100%;
}

.stepper-button--clickable {
    cursor: pointer;
}

.stepper-button--clickable:hover .stepper-number {
    transform: scale(1.1);
}

.stepper-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--checkout-transition);
    background: var(--checkout-gray-200);
    color: var(--checkout-gray-600);
    border: 2px solid var(--checkout-gray-300);
}

.stepper-check {
    width: 1.25rem;
    height: 1.25rem;
}

.stepper-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--checkout-gray-600);
    text-align: center;
    white-space: nowrap;
}

/* Stepper States */
.stepper-item--current .stepper-number {
    background: var(--checkout-primary);
    color: white;
    border-color: var(--checkout-primary);
}

.stepper-item--current .stepper-label {
    color: var(--checkout-primary);
    font-weight: 600;
}

.stepper-item--completed .stepper-number {
    background: var(--checkout-success);
    color: white;
    border-color: var(--checkout-success);
}

.stepper-item--completed .stepper-label {
    color: var(--checkout-success);
}

/* Connector Line */
.stepper-connector {
    flex: 1;
    height: 2px;
    background: var(--checkout-gray-300);
    margin: 0 0.5rem;
    position: relative;
    top: -0.75rem;
}

.stepper-item--completed + .stepper-item .stepper-connector,
.stepper-item--completed .stepper-connector {
    background: var(--checkout-success);
}

/* Mobile Stepper */
@media (max-width: 576px) {
    .stepper-label {
        display: none;
    }

    .stepper-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Checkout Steps
   ========================================================================== */
.checkout-step {
    background: white;
    border-radius: var(--checkout-border-radius);
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.checkout-step__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--checkout-gray-200);
}

.checkout-step__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--checkout-primary);
    margin: 2.5rem 0 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--checkout-gray-200);
}

/* First subtitle doesn't need top border */
.checkout-step__subtitle:first-of-type,
.customer-type-selection + .selfemployed-business-section .checkout-step__subtitle,
.customer-type-selection + .company-fields-section .checkout-step__subtitle {
    border-top: none;
    padding-top: 0;
    margin-top: 1.5rem;
}

.checkout-step__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--checkout-gray-200);
}

/* Back link as text */
.checkout-back-link {
    color: var(--checkout-gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--checkout-transition);
}

.checkout-back-link:hover {
    color: var(--checkout-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Floating Labels Enhancement
   ========================================================================== */
.form-floating-wrapper {
    position: relative;
}

.form-floating-wrapper.is-required .form-control:not(:focus):invalid {
    border-color: var(--checkout-gray-300);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--checkout-primary);
}

.form-floating > .form-control:focus {
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.required-indicator {
    color: #dc3545;
    margin-left: 0.25rem;
}

/* ==========================================================================
   Customer Type Selection
   ========================================================================== */
.customer-type-selection .btn-group {
    display: flex;
    gap: 0;
}

.customer-type-selection .btn-check:checked + .btn-outline-primary {
    background-color: var(--checkout-primary);
    border-color: var(--checkout-primary);
    color: white;
}

.customer-type-selection .btn-outline-primary {
    flex: 1;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: var(--checkout-primary);
    color: var(--checkout-primary);
}

.customer-type-selection .btn-outline-primary:hover {
    background-color: var(--checkout-gray-100);
}

/* ==========================================================================
   Info Text Styles
   ========================================================================== */
.info-text-trigger {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--checkout-gray-500);
    transition: color var(--checkout-transition);
}

.info-text-trigger:hover {
    color: var(--checkout-primary);
}

.info-text-trigger--afterLabel {
    position: absolute;
    right: 2.5rem;
    top: 2.5rem;
    transform: none;
}

/* Hide info triggers on select fields to avoid double icon */
.checkout-wizard .form-floating-wrapper:has(.form-select) .info-text-trigger {
    display: none;
}

.info-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.info-text-inline {
    font-size: 0.875rem;
    color: var(--checkout-gray-600);
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--checkout-gray-100);
    border-radius: 0.25rem;
}

/* ==========================================================================
   IBAN Field with Lookup Status
   ========================================================================== */
.iban-field-wrapper {
    position: relative;
}

.iban-lookup-status {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--checkout-gray-600);
}

/* ==========================================================================
   Readonly Fields (BIC, Bankname) - Dezenter Style
   ========================================================================== */
.form-control[readonly],
.form-control.readonly-field {
    background-color: var(--checkout-gray-100);
    border-color: var(--checkout-gray-200);
    color: var(--checkout-gray-600);
    cursor: default;
}

.form-control[readonly]:focus,
.form-control.readonly-field:focus {
    border-color: var(--checkout-gray-200);
    box-shadow: none;
}

/* Floating label adjustment for readonly fields */
.form-floating > .form-control[readonly] ~ label,
.form-floating > .form-control.readonly-field ~ label {
    color: var(--checkout-gray-500);
}

/* Auto-filled indicator icon */
.readonly-field-wrapper {
    position: relative;
}

.readonly-field-wrapper::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ==========================================================================
   MNP Selection Styles - Simple Radio Buttons
   ========================================================================== */
.mnp-selection-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6 !important;
    border-top-color: #dee2e6 !important;
}

.mnp-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.mnp-options .form-check {
    margin-bottom: 0;
    padding-left: 1.75rem;
}

.mnp-options .form-check-input:checked ~ .form-check-label {
    font-weight: 500;
}

/* Label colors - black for all */
.mnp-options .form-check-label,
.checkout-wizard .mnp-options .form-check-label {
    color: var(--checkout-gray-800) !important;
    font-size: 1rem;
}

/* Custom radio button - Black instead of green/blue */
.mnp-options .form-check-input {
    border-color: var(--checkout-gray-300) !important;
}

.mnp-options .form-check-input:checked {
    background-color: var(--checkout-primary) !important;
    border-color: var(--checkout-primary) !important;
}

.mnp-options .form-check-input:focus {
    border-color: var(--checkout-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15) !important;
}

/* Override global form-check styles for MNP section */
.checkout-wizard .mnp-options .form-check-input[type="radio"]:checked {
    background-color: #000000 !important;
    border-color: #000000 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* Mobile: Stack vertically */
@media (max-width: 576px) {
    .mnp-options {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   MNP Step Styles
   ========================================================================== */
.checkout-step--mnp .mnp-info-box .alert {
    border-left: 4px solid #0dcaf0;
}

/* Simple radio layout - no boxes */
.mnp-timing-options .form-check {
    padding-left: 1.75rem;
    margin-bottom: 0;
}

/* Radio buttons - black instead of blue/green */
.mnp-timing-options .form-check-input {
    border-color: var(--checkout-gray-400) !important;
}

.mnp-timing-options .form-check-input:checked {
    background-color: var(--checkout-primary) !important;
    border-color: var(--checkout-primary) !important;
}

.mnp-timing-options .form-check-input:focus {
    border-color: var(--checkout-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15) !important;
}

/* Labels - black instead of green */
.mnp-timing-options .form-check-label,
.mnp-timing-options .form-check-label strong {
    color: var(--checkout-gray-800) !important;
}

/* MNP consent checkbox - black instead of blue */
.mnp-consent .form-check-input {
    border-color: var(--checkout-gray-400) !important;
}

.mnp-consent .form-check-input:checked {
    background-color: var(--checkout-primary) !important;
    border-color: var(--checkout-primary) !important;
}

.mnp-consent .form-check-input:focus {
    border-color: var(--checkout-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   Review Section
   ========================================================================== */
.review-section {
    background: var(--checkout-gray-100);
    border-radius: var(--checkout-border-radius);
    padding: 1.5rem;
}

.review-section__header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--checkout-gray-200);
}

.review-section__title {
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.review-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--checkout-gray-200);
}

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

.review-label {
    flex: 0 0 140px;
    font-weight: 500;
    color: var(--checkout-gray-600);
}

.review-value {
    flex: 1;
}

/* ==========================================================================
   SEPA Info Box - Minimal Black/White Design
   ========================================================================== */
.checkout-wizard .alert-info,
.checkout-wizard .sepa-info-box .alert {
    background-color: #ffffff;
    border: 1px solid var(--checkout-gray-300);
    border-left: 3px solid var(--checkout-primary);
    color: var(--checkout-gray-800);
}

.checkout-wizard .alert-info svg,
.checkout-wizard .sepa-info-box svg {
    stroke: var(--checkout-primary);
}

/* ==========================================================================
   Edit Links in Review Section
   ========================================================================== */
.checkout-edit-link {
    color: var(--checkout-gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: color var(--checkout-transition);
}

.checkout-edit-link:hover {
    color: var(--checkout-primary);
    text-decoration: underline;
}

.checkout-edit-link svg {
    stroke: currentColor;
}

/* ==========================================================================
   Global Checkbox Styling - Black instead of Blue/Green
   ========================================================================== */
.checkout-wizard .form-check-input {
    border-color: var(--checkout-gray-400);
}

.checkout-wizard .form-check-input:checked {
    background-color: var(--checkout-primary);
    border-color: var(--checkout-primary);
}

.checkout-wizard .form-check-input:focus {
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}

/* Checkbox checked state - ensure black background with white checkmark */
.checkout-wizard .form-check-input[type="checkbox"]:checked {
    background-color: #000000;
    border-color: #000000;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/* Radio checked state - ensure black background */
.checkout-wizard .form-check-input[type="radio"]:checked {
    background-color: #000000;
    border-color: #000000;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

/* Override Bootstrap's :valid and :invalid states that add green/red */
.checkout-wizard .form-check-input:valid,
.checkout-wizard .form-check-input.is-valid {
    border-color: var(--checkout-gray-400);
}

.checkout-wizard .form-check-input:valid:checked,
.checkout-wizard .form-check-input.is-valid:checked {
    background-color: #000000;
    border-color: #000000;
}

/* Invalid state should be red for error indication */
.checkout-wizard .form-check-input:invalid,
.checkout-wizard .form-check-input.is-invalid {
    border-color: #dc3545;
}

/* Labels should always be black/dark gray */
.checkout-wizard .form-check-label {
    color: var(--checkout-gray-800);
}

/* ==========================================================================
   Consent Section (Datenschutz / AGB / Widerruf)
   Links inside checked labels inherited a low-contrast yellow from the
   site-wide link color. Force a readable, underlined dark link with a
   distinct hover state regardless of checkbox state.
   ========================================================================== */
.consent-section .form-check-label {
    color: var(--checkout-gray-800);
}

.consent-section .form-check-label a {
    color: var(--checkout-primary, #000);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.consent-section .form-check-label a:hover,
.consent-section .form-check-label a:focus {
    color: var(--checkout-primary-hover, #333);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.consent-section .form-check-input:checked ~ .form-check-label a {
    color: var(--checkout-primary, #000);
}

.consent-section .required-indicator {
    color: #dc3545;
    margin-left: 0.15rem;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.checkout-submit {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Validation Styles
   ========================================================================== */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--checkout-success);
}

.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ==========================================================================
   Step Animation
   ========================================================================== */
.checkout-step {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.checkout-step--hidden {
    display: none;
}

.checkout-step--animating {
    opacity: 0;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .checkout-step {
        padding: 1rem;
    }

    .checkout-step__navigation {
        flex-direction: column-reverse;
    }

    .checkout-step__navigation .btn {
        width: 100%;
    }

    .review-row {
        flex-direction: column;
    }

    .review-label {
        flex: none;
        margin-bottom: 0.25rem;
    }
}

/* ==========================================================================
   JKR Form Field Styling - Top-Aligned Labels (B2B Best Practice)
   ========================================================================== */

/* Labels above fields */
.checkout-wizard .form-floating {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

/* Label styling - above field */
.checkout-wizard .form-floating > label {
    position: relative !important;
    transform: none !important;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--checkout-gray-600);
    margin-top: 0;
    margin-bottom: 0.25rem;
    display: block;
    opacity: 1 !important;
    padding: 0;
    height: auto !important;
    width: auto;
    border: none;
    background: transparent;
    white-space: normal;
    overflow: visible;
    order: -1;
}

/* Add spacing between form groups */
.checkout-wizard .form-floating-wrapper {
    margin-bottom: 1.25rem;
}

/* Remove floating behavior */
.checkout-wizard .form-floating > .form-control,
.checkout-wizard .form-floating > .form-select {
    height: auto;
    padding: 0.75rem 1rem;
    min-height: 0;
}

.checkout-wizard .form-floating > .form-control::placeholder {
    color: var(--checkout-gray-500);
    opacity: 1;
}

/* Input field styling */
.checkout-wizard .form-control,
.checkout-wizard .form-select {
    border-color: var(--checkout-gray-300);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color var(--checkout-transition), box-shadow var(--checkout-transition);
}

.checkout-wizard .form-control:focus,
.checkout-wizard .form-select:focus {
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* Label color on focus */
.checkout-wizard .form-floating:focus-within > label {
    color: var(--checkout-primary);
}

/* Date input label - same styling as other labels */
.checkout-wizard .form-floating > input[type="date"] ~ label,
.checkout-wizard input[type="date"] + label {
    font-size: 0.875rem;
}

/* Required indicator styling */
.checkout-wizard .required-indicator {
    color: #dc3545;
    margin-left: 0.25rem;
}

/* JKR Button Styling */
.checkout-wizard .btn-primary {
    background-color: var(--checkout-primary);
    border-color: var(--checkout-primary);
    color: white;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

.checkout-wizard .btn-primary:hover,
.checkout-wizard .btn-primary:focus {
    background-color: var(--checkout-primary-hover);
    border-color: var(--checkout-primary-hover);
    color: #ffffff !important;
}

.checkout-wizard .btn-outline-secondary {
    border-color: var(--checkout-gray-300);
    color: var(--checkout-gray-800);
}

.checkout-wizard .btn-outline-secondary:hover {
    background-color: var(--checkout-gray-100);
    border-color: var(--checkout-gray-300);
    color: var(--checkout-gray-800);
}

.checkout-wizard .btn-success {
    background-color: var(--checkout-primary);
    border-color: var(--checkout-primary);
    color: #ffffff !important;
}

.checkout-wizard .btn-success:hover {
    background-color: var(--checkout-primary-hover);
    border-color: var(--checkout-primary-hover);
    color: #ffffff !important;
}

/* Country Field Disabled Style */
.checkout-wizard .form-select:disabled,
.checkout-wizard .form-control:disabled {
    background-color: var(--checkout-gray-100);
    opacity: 1;
    cursor: not-allowed;
}

/* ==========================================================================
   Review Step - Product Cards (Warenkorb Style)
   ========================================================================== */

/* Product Card Container */
.checkout-wizard .review-product-card {
    background: #ffffff;
    border: 1px solid var(--checkout-gray-200);
    border-radius: 8px;
    overflow: hidden;
}

/* Product Image */
.checkout-wizard .review-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--checkout-gray-100);
    /* Removed max-width to let Bootstrap col-3 handle width */
}

.checkout-wizard .review-product-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.checkout-wizard .review-product-image .img-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--checkout-gray-200);
    border-radius: 4px;
    color: var(--checkout-gray-400);
}

/* Product Details */
.checkout-wizard .review-product-details {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Product Header */
.checkout-wizard .review-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.checkout-wizard .review-product-title {
    flex: 1;
    min-width: 0;
}

.checkout-wizard .review-product-qty {
    font-weight: 400;
    color: var(--checkout-gray-600);
    margin-right: 0.25rem;
}

.checkout-wizard .review-product-name {
    font-weight: 400;
    color: var(--checkout-gray-900);
    font-size: 1rem;
    line-height: 1.4;
}

/* Product Prices */
.checkout-wizard .review-product-prices {
    text-align: right;
    flex-shrink: 0;
    margin-left: 1rem;
}

.checkout-wizard .review-product-price-onetime {
    font-weight: 400;
    color: var(--checkout-gray-900);
    font-size: 1rem;
}

.checkout-wizard .review-product-price-monthly {
    font-weight: 400;
    color: var(--checkout-gray-600);
    font-size: 1rem;
}

/* Detail Rows */
.checkout-wizard .review-product-detail-rows {
    border-top: 1px solid var(--checkout-gray-200);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.checkout-wizard .review-product-detail-row {
    display: flex;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.checkout-wizard .review-product-detail-row:last-child {
    margin-bottom: 0;
}

.checkout-wizard .review-product-detail-label {
    color: var(--checkout-gray-500);
    min-width: 50px;
    margin-right: 0.5rem;
}

.checkout-wizard .review-product-detail-value {
    color: var(--checkout-gray-700);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Provider Logo - Uses same CSS as Warenkorb bundle-card-provider-logo */
.checkout-wizard .review-product-provider-logo {
    display: inline-block;
    width: 20px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Vodafone Logo - Correct SVG from shop-warenkorb.scss */
.checkout-wizard .review-product-provider-logo[data-provider="VODAFONE"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43' height='40'%3E%3Cdefs%3E%3CclipPath id='vf'%3E%3Cpath fill='none' d='M0 0h27.585v27.666H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg%3E%3Cg%3E%3Cg fill='%23fff' stroke='%23E70001' stroke-width='3'%3E%3Cpath stroke='none' d='M0 0h33a10 10 0 0 1 10 10v30H10A10 10 0 0 1 0 30V0Z'/%3E%3Cpath fill='none' d='M1.5 1.5H33a8.5 8.5 0 0 1 8.5 8.5v28.5H10A8.5 8.5 0 0 1 1.5 30V1.5Z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg clip-path='url(%23vf)' transform='translate(7.708 6.167)'%3E%3Cpath fill='%23E70001' d='M8.708.967a13.783 13.783 0 0 1 10.886.319 9.152 9.152 0 0 0-2.893.125 14.007 14.007 0 0 0-6.966 3.513 12 12 0 0 0-3.5 6.784 9.44 9.44 0 0 0 .8 5.389A8.031 8.031 0 0 0 11.149 21a7.376 7.376 0 0 0 10.174-6.253A7.016 7.016 0 0 0 19.8 9.606a8.645 8.645 0 0 0-4.572-2.541 5.6 5.6 0 0 1 1.956-4.435 6.164 6.164 0 0 1 2.458-1.286l.068-.023a13.971 13.971 0 0 1 6.126 5.743 13.67 13.67 0 0 1 1.747 6.989A13.79 13.79 0 0 1 8.139 26.459a13.858 13.858 0 0 1-6.361-5.807A13.7 13.7 0 0 1 0 13.663a13.715 13.715 0 0 1 2.965-8.414A13.854 13.854 0 0 1 8.708.967Z'/%3E%3Cpath fill='%23fff' d='M16.701 1.411a9.152 9.152 0 0 1 2.893-.125l.138.023-.092.035a6.166 6.166 0 0 0-2.458 1.288 5.6 5.6 0 0 0-1.956 4.435 8.645 8.645 0 0 1 4.572 2.541 7.016 7.016 0 0 1 1.526 5.14 7.377 7.377 0 0 1-10.174 6.253 8.031 8.031 0 0 1-4.111-3.9 9.44 9.44 0 0 1-.8-5.389 12 12 0 0 1 3.5-6.784 14.006 14.006 0 0 1 6.962-3.517Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* O2 Logo - Correct SVG from shop-warenkorb.scss */
.checkout-wizard .review-product-provider-logo[data-provider="O2"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43' height='40'%3E%3Cdefs%3E%3CclipPath id='o2'%3E%3Cpath fill='none' d='M0 0h26.844v27.684H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg%3E%3Cg%3E%3Cg fill='%23fff' stroke='%230050FF' stroke-width='3'%3E%3Cpath stroke='none' d='M0 0h33a10 10 0 0 1 10 10v30H10A10 10 0 0 1 0 30V0Z'/%3E%3Cpath fill='none' d='M1.5 1.5H33a8.5 8.5 0 0 1 8.5 8.5v28.5H10A8.5 8.5 0 0 1 1.5 30V1.5Z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg clip-path='url(%23o2)' transform='translate(8.078 6.158)'%3E%3Cpath fill='%230050FF' d='M13.422 27.684a13.422 13.422 0 1 1 13.422-13.422 13.437 13.437 0 0 1-13.422 13.422m0-20.607a7.185 7.185 0 1 0 7.185 7.185 7.193 7.193 0 0 0-7.185-7.185'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Freenet Logo - Correct SVG from shop-warenkorb.scss */
.checkout-wizard .review-product-provider-logo[data-provider="FREENET"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43' height='40'%3E%3Cg%3E%3Cg fill='%23fff' stroke='%2321314D' stroke-width='3'%3E%3Cpath stroke='none' d='M0 0h33a10 10 0 0 1 10 10v30H10A10 10 0 0 1 0 30V0Z'/%3E%3Cpath fill='none' d='M1.5 1.5H33a8.5 8.5 0 0 1 8.5 8.5v28.5H10A8.5 8.5 0 0 1 1.5 30V1.5Z'/%3E%3C/g%3E%3Ctext fill='%2321314D' font-family='Arial-BoldMT, Arial' font-size='11' font-weight='700' transform='translate(9 25)'%3E%3Ctspan x='0' y='0'%3EFN%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E");
}

/* Provider Badge (larger version for standalone tariffs) */
.checkout-wizard .review-product-provider-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 10px auto;
}

.checkout-wizard .review-product-provider-badge[data-provider="VODAFONE"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43' height='40'%3E%3Cdefs%3E%3CclipPath id='vf'%3E%3Cpath fill='none' d='M0 0h27.585v27.666H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg%3E%3Cg%3E%3Cg fill='%23fff' stroke='%23E70001' stroke-width='3'%3E%3Cpath stroke='none' d='M0 0h33a10 10 0 0 1 10 10v30H10A10 10 0 0 1 0 30V0Z'/%3E%3Cpath fill='none' d='M1.5 1.5H33a8.5 8.5 0 0 1 8.5 8.5v28.5H10A8.5 8.5 0 0 1 1.5 30V1.5Z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg clip-path='url(%23vf)' transform='translate(7.708 6.167)'%3E%3Cpath fill='%23E70001' d='M8.708.967a13.783 13.783 0 0 1 10.886.319 9.152 9.152 0 0 0-2.893.125 14.007 14.007 0 0 0-6.966 3.513 12 12 0 0 0-3.5 6.784 9.44 9.44 0 0 0 .8 5.389A8.031 8.031 0 0 0 11.149 21a7.376 7.376 0 0 0 10.174-6.253A7.016 7.016 0 0 0 19.8 9.606a8.645 8.645 0 0 0-4.572-2.541 5.6 5.6 0 0 1 1.956-4.435 6.164 6.164 0 0 1 2.458-1.286l.068-.023a13.971 13.971 0 0 1 6.126 5.743 13.67 13.67 0 0 1 1.747 6.989A13.79 13.79 0 0 1 8.139 26.459a13.858 13.858 0 0 1-6.361-5.807A13.7 13.7 0 0 1 0 13.663a13.715 13.715 0 0 1 2.965-8.414A13.854 13.854 0 0 1 8.708.967Z'/%3E%3Cpath fill='%23fff' d='M16.701 1.411a9.152 9.152 0 0 1 2.893-.125l.138.023-.092.035a6.166 6.166 0 0 0-2.458 1.288 5.6 5.6 0 0 0-1.956 4.435 8.645 8.645 0 0 1 4.572 2.541 7.016 7.016 0 0 1 1.526 5.14 7.377 7.377 0 0 1-10.174 6.253 8.031 8.031 0 0 1-4.111-3.9 9.44 9.44 0 0 1-.8-5.389 12 12 0 0 1 3.5-6.784 14.006 14.006 0 0 1 6.962-3.517Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.checkout-wizard .review-product-provider-badge[data-provider="O2"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43' height='40'%3E%3Cdefs%3E%3CclipPath id='o2'%3E%3Cpath fill='none' d='M0 0h26.844v27.684H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg%3E%3Cg%3E%3Cg fill='%23fff' stroke='%230050FF' stroke-width='3'%3E%3Cpath stroke='none' d='M0 0h33a10 10 0 0 1 10 10v30H10A10 10 0 0 1 0 30V0Z'/%3E%3Cpath fill='none' d='M1.5 1.5H33a8.5 8.5 0 0 1 8.5 8.5v28.5H10A8.5 8.5 0 0 1 1.5 30V1.5Z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg clip-path='url(%23o2)' transform='translate(8.078 6.158)'%3E%3Cpath fill='%230050FF' d='M13.422 27.684a13.422 13.422 0 1 1 13.422-13.422 13.437 13.437 0 0 1-13.422 13.422m0-20.607a7.185 7.185 0 1 0 7.185 7.185 7.193 7.193 0 0 0-7.185-7.185'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.checkout-wizard .review-product-provider-badge[data-provider="FREENET"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='43' height='40'%3E%3Cg%3E%3Cg fill='%23fff' stroke='%2321314D' stroke-width='3'%3E%3Cpath stroke='none' d='M0 0h33a10 10 0 0 1 10 10v30H10A10 10 0 0 1 0 30V0Z'/%3E%3Cpath fill='none' d='M1.5 1.5H33a8.5 8.5 0 0 1 8.5 8.5v28.5H10A8.5 8.5 0 0 1 1.5 30V1.5Z'/%3E%3C/g%3E%3Ctext fill='%2321314D' font-family='Arial-BoldMT, Arial' font-size='11' font-weight='700' transform='translate(9 25)'%3E%3Ctspan x='0' y='0'%3EFN%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E");
}

/* Section Title font-weight 400 (User Request) */
.checkout-wizard .review-section__title {
    font-weight: 400;
}

.checkout-wizard h3.review-section__title {
    font-weight: 400;
}

/* Responsive: Stack image and details on mobile */
@media (max-width: 576px) {
    .checkout-wizard .review-product-card .row {
        flex-direction: column;
    }

    .checkout-wizard .review-product-image {
        max-width: 100%;
        padding: 1rem;
    }

    .checkout-wizard .review-product-header {
        flex-direction: column;
    }

    .checkout-wizard .review-product-prices {
        text-align: left;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   Upload Step - Accordion Design
   ========================================================================== */

/* Trust Banner */
.checkout-wizard .upload-trust-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--checkout-gray-300);
    border-left: 3px solid var(--checkout-primary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.checkout-wizard .upload-trust-banner svg {
    color: var(--checkout-primary);
    flex-shrink: 0;
}

/* Upload Header */
.checkout-wizard .upload-header {
    margin-bottom: 1.5rem;
}

.checkout-wizard .upload-header-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--checkout-gray-800);
}

.checkout-wizard .upload-header-subtitle {
    color: var(--checkout-gray-600);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Progress Indicator */
.checkout-wizard .upload-progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--checkout-gray-300);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.checkout-wizard .upload-progress-text {
    font-weight: 600;
    color: var(--checkout-gray-800);
}

.checkout-wizard .upload-progress-dots {
    display: flex;
    gap: 0.5rem;
}

.checkout-wizard .upload-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--checkout-gray-300);
    transition: all 0.3s ease;
}

.checkout-wizard .upload-progress-dot.active {
    background: var(--checkout-primary);
}

.checkout-wizard .upload-progress-dot.completed {
    background: var(--checkout-success);
}

/* Accordion Card */
.checkout-wizard .upload-accordion {
    border: 1px solid var(--checkout-gray-300);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: white;
    transition: all 0.3s ease;
}

.checkout-wizard .upload-accordion.active {
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.checkout-wizard .upload-accordion.completed {
    border-color: var(--checkout-success);
}

/* Accordion Header */
.checkout-wizard .upload-accordion-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.checkout-wizard .upload-accordion-header:hover {
    background: var(--checkout-gray-100);
}

.checkout-wizard .upload-accordion.active .upload-accordion-header {
    background: var(--checkout-gray-100);
}

.checkout-wizard .upload-accordion.completed .upload-accordion-header {
    background: var(--checkout-success-light);
}

.checkout-wizard .upload-accordion-chevron {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: var(--checkout-gray-600);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.checkout-wizard .upload-accordion.active .upload-accordion-chevron {
    transform: rotate(90deg);
    color: var(--checkout-primary);
}

.checkout-wizard .upload-accordion-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: var(--checkout-gray-600);
    flex-shrink: 0;
}

.checkout-wizard .upload-accordion.completed .upload-accordion-icon {
    color: var(--checkout-success);
}

.checkout-wizard .upload-accordion-title {
    flex: 1;
    font-weight: 500;
    color: var(--checkout-gray-800);
}

.checkout-wizard .upload-accordion-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--checkout-gray-600);
}

.checkout-wizard .upload-accordion.completed .upload-accordion-status {
    color: var(--checkout-success);
}

/* Status Badge */
.checkout-wizard .upload-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.checkout-wizard .upload-status-badge.pending {
    background: var(--checkout-gray-100);
    color: var(--checkout-gray-600);
}

.checkout-wizard .upload-status-badge.completed {
    background: var(--checkout-success-light);
    color: var(--checkout-success);
}

/* Accordion Body */
.checkout-wizard .upload-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.checkout-wizard .upload-accordion.active .upload-accordion-body {
    max-height: 400px;
    padding: 0 1.25rem 1.25rem;
}

/* Upload Zone */
.checkout-wizard .upload-zone {
    border: 2px dashed var(--checkout-gray-300);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: var(--checkout-gray-100);
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkout-wizard .upload-zone:hover {
    border-color: var(--checkout-primary);
    background: #f5f5f5;
}

.checkout-wizard .upload-zone.drag-over {
    border-color: var(--checkout-primary);
    background: #e9e9e9;
    transform: scale(1.01);
}

/* ID Silhouette */
.checkout-wizard .upload-zone-silhouette {
    width: 100px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--checkout-gray-200);
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-wizard .upload-zone-silhouette--front::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 30px;
    background: var(--checkout-gray-300);
    border-radius: 3px;
}

.checkout-wizard .upload-zone-silhouette--front::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 10px;
    width: 45px;
    height: 6px;
    background: var(--checkout-gray-300);
    border-radius: 2px;
    box-shadow: 0 12px 0 var(--checkout-gray-300), 0 24px 0 var(--checkout-gray-300);
}

.checkout-wizard .upload-zone-silhouette--back::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    height: 14px;
    background: var(--checkout-gray-300);
    border-radius: 2px;
}

.checkout-wizard .upload-zone-silhouette--back::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 22px;
    background: repeating-linear-gradient(
        0deg,
        var(--checkout-gray-300),
        var(--checkout-gray-300) 3px,
        transparent 3px,
        transparent 7px
    );
}

/* Upload Buttons */
.checkout-wizard .upload-zone-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.checkout-wizard .upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.checkout-wizard .upload-btn--primary,
.checkout-wizard .upload-btn-primary {
    background: var(--checkout-primary);
    color: white;
    border: none;
}

.checkout-wizard .upload-btn--primary:hover,
.checkout-wizard .upload-btn-primary:hover {
    background: var(--checkout-primary-hover);
    color: white;
}

.checkout-wizard .upload-btn--secondary,
.checkout-wizard .upload-btn-secondary {
    background: white;
    color: var(--checkout-gray-800);
    border: 1px solid var(--checkout-gray-300);
}

.checkout-wizard .upload-btn--secondary:hover,
.checkout-wizard .upload-btn-secondary:hover {
    background: var(--checkout-gray-100);
    border-color: var(--checkout-gray-500);
}

.checkout-wizard .upload-zone-hint {
    font-size: 0.75rem;
    color: var(--checkout-gray-600);
    margin: 0;
}

/* Completed Preview (collapsed state) */
.checkout-wizard .upload-accordion-preview {
    display: none;
    padding: 0 1.25rem 1rem;
}

.checkout-wizard .upload-accordion.completed:not(.active) .upload-accordion-preview {
    display: block;
}

.checkout-wizard .upload-preview-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--checkout-success-light);
    border-radius: 6px;
    font-size: 0.85rem;
}

.checkout-wizard .upload-preview-thumb {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--checkout-gray-300);
}

.checkout-wizard .upload-preview-info {
    flex: 1;
    min-width: 0;
}

.checkout-wizard .upload-preview-name {
    font-weight: 500;
    color: var(--checkout-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-wizard .upload-preview-meta {
    font-size: 0.75rem;
    color: var(--checkout-gray-600);
}

.checkout-wizard .upload-preview-actions button {
    padding: 0.25rem 0.5rem;
}

/* Help Section */
.checkout-wizard .upload-help-section {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.8rem;
}

.checkout-wizard .upload-help-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--checkout-gray-800);
}

.checkout-wizard .upload-help-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--checkout-gray-800);
}

.checkout-wizard .upload-help-list li {
    margin-bottom: 0.15rem;
}

/* Upload Step Mobile Optimizations */
@media (max-width: 576px) {
    .checkout-wizard .upload-header-title {
        font-size: 1.25rem;
    }

    .checkout-wizard .upload-zone-buttons {
        flex-direction: column;
    }

    .checkout-wizard .upload-btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }

    .checkout-wizard .upload-zone-silhouette {
        width: 80px;
        height: 52px;
    }

    .checkout-wizard .upload-accordion-header {
        padding: 0.875rem 1rem;
    }

    .checkout-wizard .upload-accordion-title {
        font-size: 0.9rem;
    }
}

/* Accordion Animations */
@keyframes uploadPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.checkout-wizard .upload-accordion.just-completed {
    animation: uploadPulse 0.4s ease;
}
