/* 
 * DATEI: assets/checkout-style.css - VOLLSTÄNDIGE VERSION
 * CSS-Regeln für Cannabis-Checkout mit korrigierten Farben und Payment Accordion Fix
 */

/* === GRUNDLEGENDES 2-SPALTEN LAYOUT === */
.ser-checkout-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important; /* 66% zu 33% */
    gap: 30px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    clear: both !important;
}

/* Linke Spalte: Medizinische Daten + Rechnungsdetails + Payment */
.ser-checkout-left-column {
    display: flex !important;
    flex-direction: column !important;
    grid-column: 1 !important;
}

/* Rechte Spalte: Cannabis Header + Order Review */
.ser-checkout-right-column {
    display: flex !important;
    flex-direction: column !important;
    grid-column: 2 !important;
}

/* === KONSISTENTE WRAPPER STYLES === */
.medical-fields-section,
.ser-billing-section-wrapper,
.woocommerce-additional-fields,
.ser-order-section-wrapper,
.ser-payment-section-wrapper,
.ser-pharmacy-info-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.medical-fields-section:hover,
.ser-billing-section-wrapper:hover,
.woocommerce-additional-fields:hover,
.ser-order-section-wrapper:hover,
.ser-payment-section-wrapper:hover,
.ser-pharmacy-info-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* === WRAPPER HEADERS - ANGEPASSTE FARBEN === */
.medical-fields-section h3,
.ser-billing-section-wrapper h3,
.woocommerce-additional-fields h3,
.ser-order-section-wrapper h3,
.ser-payment-section-wrapper h3,
.ser-pharmacy-info-section h3 {
    color: #4BCFAF !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    border-bottom: 2px solid #4BCFAF !important;
    padding-bottom: 8px !important;
}

/* === NESTED ELEMENTS STYLING === */
.ser-order-section-wrapper .woocommerce-checkout-review-order,
.ser-payment-section-wrapper .woocommerce-checkout-payment,
.ser-billing-section-wrapper .woocommerce-billing-fields {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Verstecke WooCommerce Standard-Überschriften */
.woocommerce-checkout-review-order h3,
#order_review_heading,
.ser-billing-section-wrapper .woocommerce-billing-fields h3 {
    display: none !important;
}

/* Styling für Payment Section Title */
.payment-section-title {
    color: #4BCFAF !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    border-bottom: 2px solid #4BCFAF !important;
    padding-bottom: 8px !important;
}

/* Payment Sektion wieder anzeigen - jetzt in linker Spalte */
.ser-payment-section-wrapper {
    display: block !important; /* Wieder anzeigen */
}

/* WooCommerce Override */
.woocommerce-checkout #customer_details {
    width: 100% !important;
    float: none !important;
    display: block !important;
}

.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-top: 0 !important;
}

/* Col2-set Override */
.ser-checkout-layout .col2-set,
.ser-checkout-layout .col2-set .col-1,
.ser-checkout-layout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
}

/* === CANNABIS HEADER STYLING - ANGEPASSTE FARBEN === */
.ser-checkout-header {
    background: linear-gradient(135deg, #f8fffc 0%, #f1fef8 100%) !important;
    color: #333 !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e0e0e0 !important;
}

.ser-checkout-header h3 {
    color: #4BCFAF !important;
    border-bottom: 2px solid #4BCFAF !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ser-checkout-header .header-icon {
    font-size: 20px;
    margin-right: 8px;
}

/* Cannabis Customer Info */
.ser-customer-info {
    background: rgba(75, 207, 175, 0.08);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #4BCFAF;
}

.ser-customer-info p {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Cannabis Summary */
.cannabis-summary h4 {
    color: #4BCFAF;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.cannabis-item {
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.cannabis-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.cannabis-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cannabis-item .item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cannabis-item .item-id {
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

.cannabis-item .item-quantity {
    background: #4BCFAF;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cannabis-item .cannabinoids {
    margin: 8px 0;
}

.cannabis-item .thc-badge {
    background: #ffeb3b;
    color: #f57f17;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 5px;
}

.cannabis-item .cbd-badge {
    background: #2196f3;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.cannabis-item .item-price {
    text-align: right;
    color: #333;
}

.cannabis-item .price-calculation {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

.cannabis-item .pharmacy-total {
    font-weight: 600;
    font-size: 13px;
    color: #4BCFAF;
}

/* Pharmacy Total Summary */
.pharmacy-total-summary {
    background: rgba(75, 207, 175, 0.1) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    text-align: center !important;
    border: 1px solid #4BCFAF;
}

.pharmacy-total-summary .total-label {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.pharmacy-total-summary .total-amount {
    color: #4BCFAF;
    font-size: 18px;
    font-weight: 700;
}

/* Important Notice */
.important-notice {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #f57c00 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-top: 20px !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.important-notice h4 {
    margin: 0 0 8px 0;
    color: #f57c00;
    font-size: 14px;
    font-weight: 600;
}

.important-notice .notice-icon {
    margin-right: 8px;
}

.important-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #f57c00;
}

/* === PHARMACY INFO SECTION === */
.ser-pharmacy-info-section .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ser-pharmacy-info-section .step {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ser-pharmacy-info-section .step:hover {
    background: #f1f8f1;
    transform: translateY(-2px);
}

.ser-pharmacy-info-section .step-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.ser-pharmacy-info-section .step h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.ser-pharmacy-info-section .step p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* === MEDICAL FIELDS STYLING - KORRIGIERT FÜR NEBENEINANDER === */
.medical-fields-section .medical-fields-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

/* Flexbox Layout für Medical Fields - KORRIGIERT */
.medical-fields-section .form-row {
    margin: 0 0 12px 0 !important;
    box-sizing: border-box !important;
}

.medical-fields-section .form-row-first {
    width: 47% !important;
    margin-right: 6% !important; /* 8% Gap zwischen den Spalten */
    float: none !important;
}

.medical-fields-section .form-row-last {
    width: 47% !important;
    margin-right: 0 !important;
    float: none !important;
}

.medical-fields-section .form-row-wide {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Kompaktere Zeilen */
.medical-fields-section .form-row {
    margin-bottom: 12px !important;
}

.medical-fields-section .age-display-container {
    margin-top: 5px;
}

.medical-fields-section .insurance-note {
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.medical-fields-section input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
    font-weight: bold;
}

/* Styling wie WooCommerce */
.medical-fields-section label {
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
}

.medical-fields-section input,
.medical-fields-section select {
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
}

/* Override für bessere Kompatibilität */
.medical-fields-section .woocommerce-input-wrapper {
    width: 100% !important;
}

/* === PAYMENT STYLING - KORRIGIERT MIT ACCORDION FIX === */
.woocommerce-checkout-payment {
    background: white !important;
}

.woocommerce-checkout-payment ul.wc_payment_methods {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    overflow: hidden;
}

.woocommerce-checkout-payment .wc_payment_method {
    background: white !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.woocommerce-checkout-payment .wc_payment_method:last-child {
    border-bottom: none !important;
}

/* RADIO BUTTON VOR TEXT - KORREKTE AUSRICHTUNG */
.woocommerce-checkout-payment .wc_payment_method > input,
.woocommerce-checkout-payment .wc_payment_method > label {
    display: inline-flex !important;
    vertical-align: top !important;
}

.woocommerce-checkout-payment .wc_payment_method > div {
    display: block !important;
    width: 100% !important;
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"] {
    margin: 15px !important;
    margin-right: 12px !important;
    transform: scale(1.2) !important;
    accent-color: #4BCFAF !important;
    flex-shrink: 0 !important;
}

.woocommerce-checkout-payment .wc_payment_method label {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 15px !important;
    padding-left: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: #333 !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.3s ease !important;
    gap: 8px !important;
    width: calc(100% - 54px) !important;
}

.woocommerce-checkout-payment .wc_payment_method:hover {
    background: #f8f8f8 !important;
}

.woocommerce-checkout-payment .wc_payment_method:has(input:checked) {
    background: #f1f8f1 !important;
    border-left: 3px solid #4BCFAF !important;
}

/* Fallback für Browser ohne :has() Support */
.woocommerce-checkout-payment .wc_payment_method.payment-selected {
    background: #f1f8f1 !important;
    border-left: 3px solid #4BCFAF !important;
}

/* Icon-Styling innerhalb des Labels */
.woocommerce-checkout-payment .wc_payment_method label .payment-icon {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 0 !important;
}

.woocommerce-checkout-payment .wc_payment_method label .payment-icon img {
    width: 20px !important;
    height: 20px !important;
}

/* Spezielle Behandlung für Revolut Icons */
.woocommerce-checkout-payment .wc_payment_method label .revolut-scheme-icons-wrapper,
.woocommerce-checkout-payment .wc_payment_method label div {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 8px !important;
}

.woocommerce-checkout-payment .wc_payment_method label .revolut-scheme-icons-wrapper img {
    width: 20px !important;
    height: 16px !important;
    margin-left: 2px !important;
}

/* === PAYMENT BOX ACCORDION - VOLLSTÄNDIG KORRIGIERT === */
.woocommerce-checkout-payment .payment_box {
    background: #f8f8f8 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 15px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: none !important; /* Standardmäßig versteckt */
    visibility: hidden !important;
    opacity: 0 !important;
    transition: none !important; /* Keine Animationen um Loops zu verhindern */
    max-height: 0 !important;
    overflow: hidden !important;
}

/* Nur bei ausgewählter Zahlungsmethode anzeigen - STABILE VERSION */
.woocommerce-checkout-payment .wc_payment_method.payment-selected .payment_box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* EXPLIZITE VERSTECKUNG für alle nicht-ausgewählten Methoden */
.woocommerce-checkout-payment .wc_payment_method:not(.payment-selected) .payment_box {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

/* Spezifische Payment Gateway Overrides - VEREINFACHT */
.payment_method_bacs .payment_box,
.payment_method_revolut_cc .payment_box,
.payment_method_revolut_pay .payment_box {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
}

.payment_method_bacs.payment-selected .payment_box,
.payment_method_revolut_cc.payment-selected .payment_box,
.payment_method_revolut_pay.payment-selected .payment_box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* DIREKTE BANKÜBERWEISUNG ALS STANDARD */
.payment_method_bacs {
    order: -1 !important; /* Erste Position */
}

/* VERHINDERUNG VON ACCORDION-ANIMATIONEN */
.woocommerce-checkout-payment .wc_payment_method.payment-selected {
    background: #f1f8f1 !important;
    border-left: 3px solid #4BCFAF !important;
}

.woocommerce-checkout-payment .wc_payment_method:not(.payment-selected) {
    background: white !important;
    border-left: 3px solid transparent !important;
}

.woocommerce-checkout-payment .payment_box p {
    margin: 0 0 10px 0 !important;
}

.woocommerce-checkout-payment .payment_box p:last-child {
    margin-bottom: 0 !important;
}

/* === REVOLUT SPECIFIC STYLING === */
.payment_method_revolut_pay {
    border-left: 3px solid transparent !important;
}

.payment_method_revolut_pay:hover {
    border-left-color: #6772e5 !important;
}

.payment_method_revolut_pay:has(input:checked) {
    border-left-color: #6772e5 !important;
    background: #f7f8ff !important;
}

.payment_method_revolut_pay.payment-selected {
    border-left-color: #6772e5 !important;
    background: #f7f8ff !important;
}

.payment_method_revolut_cc {
    border-left: 3px solid transparent !important;
}

.payment_method_revolut_cc:hover {
    border-left-color: #6772e5 !important;
}

.payment_method_revolut_cc:has(input:checked) {
    border-left-color: #6772e5 !important;
    background: #f7f8ff !important;
}

.payment_method_revolut_cc.payment-selected {
    border-left-color: #6772e5 !important;
    background: #f7f8ff !important;
}

.payment_method_revolut_pay .payment_box {
    background: rgba(103, 114, 229, 0.05) !important;
    border: 1px solid rgba(103, 114, 229, 0.2) !important;
}

.payment_method_revolut_cc .payment_box {
    background: rgba(103, 114, 229, 0.05) !important;
    border: 1px solid rgba(103, 114, 229, 0.2) !important;
}

/* === BESTELLBUTTON STYLING - EINFARBIG GRÜN === */
#place_order {
    background: #4BCFAF !important;
    color: white !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    margin-top: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 6px rgba(75, 207, 175, 0.2);
}

#place_order:hover {
    background: #3ba896 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(75, 207, 175, 0.3) !important;
}

#place_order:active {
    transform: translateY(0) !important;
}

#place_order.processing {
    background: #9e9e9e !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#place_order .button-icon {
    margin-right: 8px;
}

#place_order .processing-icon {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === TERMS & CONDITIONS STYLING === */
.woocommerce-terms-and-conditions-wrapper {
    display: none !important; /* Standardmäßig ausgeblendet */
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
}

.woocommerce-terms-and-conditions-wrapper.show-terms {
    display: block !important;
}

.woocommerce-terms-and-conditions-wrapper label {
    display: flex !important;
    align-items: flex-start !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #f57c00 !important;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    margin-right: 10px !important;
    margin-top: 3px !important;
    transform: scale(1.1) !important;
    accent-color: #ffc107 !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: #4BCFAF !important;
    text-decoration: underline !important;
}

.woocommerce-terms-and-conditions-wrapper a:hover {
    color: #333 !important;
}

/* === ORDER REVIEW TABLE STYLING === */
.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e0e0e0 !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-align: left !important;
    vertical-align: top !important;
}

/* TABELLEN HEADER IN GRAU */
.woocommerce-checkout-review-order-table th {
    background: #f5f5f5 !important;
    font-weight: 600 !important;
    color: #666 !important;
    border-top: none !important;
    border-bottom: 2px solid #ddd !important;
    font-size: 14px !important;
    padding: 15px 12px !important;
}

.woocommerce-checkout-review-order-table .cart_item {
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
}

.woocommerce-checkout-review-order-table .cart_item:hover {
    background: #fafafa !important;
}

.woocommerce-checkout-review-order-table .cart_item:last-of-type {
    border-bottom: 2px solid #e0e0e0 !important;
}

/* Cannabis-Produktpreise verstecken */
.woocommerce-checkout-review-order-table .cart_item .product-total {
    color: #999 !important;
    font-style: italic !important;
}

/* ZWISCHENSUMME UND GESAMTSUMME IN SCHWARZ */
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .shipping,
.woocommerce-checkout-review-order-table .fee {
    color: #333 !important;
    font-weight: normal !important;
}

.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .shipping th,
.woocommerce-checkout-review-order-table .shipping td,
.woocommerce-checkout-review-order-table .fee th,
.woocommerce-checkout-review-order-table .fee td {
    color: #333 !important;
    font-weight: 500 !important;
}

/* GESAMTSUMME IN SCHWARZ UND FETT */
.woocommerce-checkout-review-order-table .order-total {
    background: #f8f8f8 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-bottom: none !important;
    color: #333 !important;
    padding: 15px 12px !important;
    font-weight: bold !important;
}

/* APOTHEKENPREIS IN GRÜN HALTEN */
.woocommerce-checkout-review-order-table .ser-pharmacy-total-row {
    border-top: 2px solid #4BCFAF !important;
    border-bottom: none !important;
}

.woocommerce-checkout-review-order-table .ser-pharmacy-total-row th,
.woocommerce-checkout-review-order-table .ser-pharmacy-total-row td {
    color: #4BCFAF !important;
    font-weight: bold !important;
    font-size: 16px !important;
    border-top: 2px solid #4BCFAF !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 15px 12px !important;
    background: transparent !important;
}

.woocommerce-checkout-review-order-table .ser-pharmacy-total-row .pharmacy-total-amount {
    text-align: right !important;
}

/* Überschreibe Standard WooCommerce Tabellen-Borders */
.woocommerce-checkout-review-order-table tfoot .ser-pharmacy-total-row,
.woocommerce-checkout-review-order-table tbody .ser-pharmacy-total-row,
table.woocommerce-checkout-review-order-table .ser-pharmacy-total-row {
    border-top: 2px solid #4BCFAF !important;
    border-bottom: none !important;
}

.woocommerce-checkout-review-order-table tfoot .ser-pharmacy-total-row th,
.woocommerce-checkout-review-order-table tfoot .ser-pharmacy-total-row td,
.woocommerce-checkout-review-order-table tbody .ser-pharmacy-total-row th,
.woocommerce-checkout-review-order-table tbody .ser-pharmacy-total-row td,
table.woocommerce-checkout-review-order-table .ser-pharmacy-total-row th,
table.woocommerce-checkout-review-order-table .ser-pharmacy-total-row td {
    border-top: 2px solid #4BCFAF !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    color: #4BCFAF !important;
}

.woocommerce-checkout-review-order-table .ser-pharmacy-note-row .pharmacy-note {
    padding: 10px 12px !important;
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    text-align: center !important;
    background: #fafafa !important;
}

/* === SHIPPING FEE TOGGLE STYLING === */
.ser-shipping-fee-toggle .shipping-toggle-cell {
    padding: 15px 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.ser-shipping-fee-toggle .shipping-fee-option {
    background: rgba(255, 193, 7, 0.08) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    transition: all 0.3s ease !important;
}

.ser-shipping-fee-toggle .shipping-fee-option:hover {
    background: rgba(255, 193, 7, 0.12) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
}

.ser-shipping-fee-toggle .shipping-fee-label {
    cursor: pointer !important;
    margin: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
}

.ser-shipping-fee-toggle .shipping-fee-checkbox {
    margin-right: 12px !important;
    margin-top: 2px !important;
    transform: scale(1.2) !important;
    accent-color: #ffc107 !important;
}

.ser-shipping-fee-toggle .shipping-fee-content {
    flex: 1 !important;
}

.ser-shipping-fee-toggle .shipping-fee-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.ser-shipping-fee-toggle .shipping-fee-icon {
    font-size: 18px !important;
    margin-right: 8px !important;
}

.ser-shipping-fee-toggle .shipping-fee-title {
    font-weight: 600 !important;
    color: #f57c00 !important;
    flex: 1 !important;
}

.ser-shipping-fee-toggle .shipping-fee-price {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #f57c00 !important;
}

.ser-shipping-fee-toggle .shipping-fee-description {
    font-size: 12px !important;
    color: #f57c00 !important;
    line-height: 1.4 !important;
}

/* === CANNABIS ITEM INFO STYLING === */
.ser-checkout-cannabis-info {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: #666 !important;
    padding: 8px !important;
    background: #f8f8f8 !important;
    border-radius: 6px !important;
    border-left: 3px solid #4BCFAF !important;
}

.ser-checkout-cannabis-info .product-id {
    margin-bottom: 5px !important;
    color: #666 !important;
}

.ser-checkout-cannabis-info .cannabinoids {
    margin: 5px 0 !important;
}

.ser-checkout-cannabis-info .cannabinoids .thc-badge {
    background: #ffeb3b !important;
    color: #f57f17 !important;
    padding: 2px 6px !important;
    border-radius: 12px !important;
    margin-right: 5px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.ser-checkout-cannabis-info .cannabinoids .cbd-badge {
    background: #2196f3 !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.ser-checkout-cannabis-info .apotheken-preis {
    color: #4BCFAF !important;
    font-weight: bold !important;
    font-size: 11px !important;
    margin-top: 5px !important;
    padding: 4px 0 !important;
    border-top: 1px solid #e0e0e0 !important;
}

/* Processing Fee Info */
.ser-checkout-fee-info {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: #666 !important;
    padding: 8px !important;
    background: #f0f4ff !important;
    border-radius: 6px !important;
    border-left: 3px solid #2196f3 !important;
}

.ser-checkout-fee-info .product-id {
    margin-bottom: 5px !important;
    color: #666 !important;
}

.ser-checkout-fee-info .service-type {
    color: #2196f3 !important;
    font-weight: bold !important;
    font-size: 11px !important;
}

/* Shipping Fee Info */
.ser-checkout-shipping-info {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: #666 !important;
    padding: 8px !important;
    background: #fff8e1 !important;
    border-radius: 6px !important;
    border-left: 3px solid #ffc107 !important;
}

.ser-checkout-shipping-info .product-id {
    margin-bottom: 5px !important;
    color: #666 !important;
}

.ser-checkout-shipping-info .service-type {
    color: #f57c00 !important;
    font-weight: bold !important;
    font-size: 11px !important;
    margin-bottom: 3px !important;
}

.ser-checkout-shipping-info .service-description {
    font-size: 10px !important;
    color: #f57c00 !important;
    line-height: 1.3 !important;
}

/* === VALIDIERUNGSFEHLER STYLING - VERBESSERTE SCHRIFT === */
.woocommerce-NoticeGroup-checkout,
.woocommerce-error,
.woocommerce-message {
    background: white !important;
    border-left: 4px solid #f44336 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 15px 20px !important;
    margin: 0 0 20px 0 !important;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.woocommerce-message {
    border-left-color: #4BCFAF !important;
    color: #333 !important;
}

.woocommerce-error {
    border-left-color: #f44336 !important;
    color: #333 !important; /* Dunkler Text für bessere Lesbarkeit */
    font-weight: 500 !important;
}

.woocommerce-error ul,
.woocommerce-message ul {
    margin: 0 !important;
    padding-left: 0 !important; /* Entferne Einrückung */
    list-style: none !important; /* Entferne Standard-Aufzählungszeichen */
}

.woocommerce-error li,
.woocommerce-message li {
    list-style-type: none !important;
    margin-bottom: 8px !important;
    padding-left: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

/* Rotes Info-Icon vor jeder Fehlermeldung */
.woocommerce-error li:before {
    content: "ℹ️" !important;
    color: #f44336 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

/* Bessere Schrift für den Text nach dem Icon */
.woocommerce-error li {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}

/* Letzte Fehlermeldung ohne Margin unten */
.woocommerce-error li:last-child,
.woocommerce-message li:last-child {
    margin-bottom: 0 !important;
}

/* === LOADING STATES === */
.woocommerce-checkout-payment.processing {
    opacity: 0.7;
    pointer-events: none;
}

.woocommerce-checkout-payment .wc_payment_method.loading {
    opacity: 0.6;
}

.woocommerce-checkout-payment .wc_payment_method.loading::after {
    content: "⏳";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Form Processing State */
.checkout.processing {
    position: relative;
}

.checkout.processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout.processing::after {
    content: '⏳ Verarbeite...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    font-weight: 600;
    color: #4BCFAF;
}

/* === FOCUS STATES === */
.woocommerce-checkout-payment .wc_payment_method input:focus + label {
    outline: 2px solid #4BCFAF !important;
    outline-offset: 2px !important;
}

#place_order:focus {
    outline: 2px solid #4BCFAF !important;
    outline-offset: 2px !important;
}

.medical-fields-section input:focus,
.medical-fields-section select:focus {
    border-color: #4BCFAF !important;
    box-shadow: 0 0 0 2px rgba(75, 207, 175, 0.2) !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .ser-checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .ser-checkout-left-column,
    .ser-checkout-right-column {
        grid-column: 1 !important;
    }
    
    /* Mobile Reihenfolge */
    .medical-fields-section { order: 1; }
    .woocommerce-billing-fields { order: 2; }
    .woocommerce-additional-fields { order: 3; }
    .ser-checkout-header { order: 4; }
    .ser-order-section-wrapper { order: 5; }
    .ser-payment-section-wrapper { order: 6; }
    
    .medical-fields-section,
    .woocommerce-billing-fields,
    .woocommerce-additional-fields,
    .ser-order-section-wrapper,
    .ser-payment-section-wrapper,
    .ser-pharmacy-info-section {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .woocommerce-checkout-payment .wc_payment_method label {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    #place_order {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }
    
    .cannabis-item .item-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .cannabis-item .item-quantity {
        margin-top: 8px !important;
        align-self: flex-end !important;
    }
    
    .ser-pharmacy-info-section .process-steps {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    
    .medical-fields-section .medical-fields-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ser-shipping-fee-toggle .shipping-fee-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .ser-shipping-fee-toggle .shipping-fee-price {
        margin-top: 5px !important;
    }
}

@media (max-width: 480px) {
    .ser-pharmacy-info-section .process-steps {
        grid-template-columns: 1fr !important;
    }
    
    .ser-checkout-header {
        padding: 15px !important;
    }
    
    .cannabis-item {
        padding: 12px !important;
    }
    
    .ser-pharmacy-info-section .step {
        padding: 12px !important;
    }
}

/* === HOVER EFFECTS === */
.medical-fields-section .form-row:hover,
.woocommerce-billing-fields .form-row:hover {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.ser-checkout-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ser-checkout-header {
        border: 2px solid #4BCFAF !important;
    }
    
    .cannabis-item {
        border: 2px solid #e0e0e0 !important;
    }
    
    .ser-checkout-cannabis-info,
    .ser-checkout-fee-info,
    .ser-checkout-shipping-info {
        border-left-width: 4px !important;
    }
}

/* === FIELD ERROR STYLING === */
.ser-field-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

input.error,
select.error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.2) !important;
}

/* === AGE VALIDATION DISPLAY === */
.age-display-container small {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* === PROGRESS INDICATOR === */
.ser-progress-indicator {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ser-progress-indicator .step {
    color: #666;
    font-size: 14px;
}

.ser-progress-indicator .step.completed {
    color: #4BCFAF;
    font-weight: 600;
}

.ser-progress-indicator .step.active {
    color: #ffc107;
    font-weight: 600;
}

/* === CUSTOM PROCESSING OVERLAY === */
.ser-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ser-processing-overlay > div {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* === CHECKOUT NOTICE STYLING === */
.ser-checkout-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999999;
    max-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}