/* =============================================================
 * WooCommerce Blocks + Classic – Snorkeling Duck Dark Theme
 * Selektoren geprüft gegen WC 10.7 packages-style.css
 * ============================================================= */


/* ----------------------------------------------------------------
 * WOOCOMMERCE BLOCKS – Checkout & Cart
 * ---------------------------------------------------------------- */

/* Input-Felder (Blöcke) – Standard hat background:#fff */
.wc-block-components-text-input input[type=email],
.wc-block-components-text-input input[type=number],
.wc-block-components-text-input input[type=password],
.wc-block-components-text-input input[type=tel],
.wc-block-components-text-input input[type=text],
.wc-block-components-text-input input[type=url],
.wc-block-components-form .wc-block-components-text-input input[type=email],
.wc-block-components-form .wc-block-components-text-input input[type=number],
.wc-block-components-form .wc-block-components-text-input input[type=password],
.wc-block-components-form .wc-block-components-text-input input[type=tel],
.wc-block-components-form .wc-block-components-text-input input[type=text],
.wc-block-components-form .wc-block-components-text-input input[type=url] {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #e8eaf0 !important;
    border-radius: 8px !important;
    caret-color: #F5C518;
}

/* Input Focus */
.wc-block-components-text-input input[type=email]:focus,
.wc-block-components-text-input input[type=number]:focus,
.wc-block-components-text-input input[type=password]:focus,
.wc-block-components-text-input input[type=tel]:focus,
.wc-block-components-text-input input[type=text]:focus,
.wc-block-components-text-input input[type=url]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=email]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=number]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=password]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=tel]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=text]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=url]:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #F5C518 !important;
    border-width: 1.5px !important;
    color: #e8eaf0 !important;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15) !important;
}

/* Autofill-Hintergrund anpassen (Chrome) */
.wc-block-components-text-input input:-webkit-autofill,
.wc-block-components-text-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px rgba(10, 36, 68, 0.95) inset !important;
    -webkit-text-fill-color: #e8eaf0 !important;
}

/* Floating Label */
.wc-block-components-text-input label,
.wc-block-components-form .wc-block-components-text-input label {
    color: rgba(255, 255, 255, 0.45) !important;
}

.wc-block-components-text-input.is-active label,
.wc-block-components-form .wc-block-components-text-input.is-active label {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ---- Schritt-Überschriften (Kontaktinformationen, Rechnungsadresse etc.) ---- */
.wc-block-components-checkout-step__title,
.wc-block-checkout__contact-fields .wc-block-components-checkout-step__title,
.wc-block-checkout__billing-fields .wc-block-components-checkout-step__title,
.wc-block-checkout__shipping-fields .wc-block-components-checkout-step__title,
.wc-block-checkout__additional-fields .wc-block-components-checkout-step__title,
.wc-block-checkout__payment-method .wc-block-components-checkout-step__title {
    color: #ffffff !important;
    font-family: 'Fraunces', Georgia, serif !important;
    font-size: 1.15rem !important;
}

/* Step-Beschreibung ("Du bestellst gerade als Gast.") */
.wc-block-components-checkout-step__description {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.875rem !important;
}

/* "Anmelden"-Link neben dem Heading */
.wc-block-components-checkout-step__heading-content a {
    color: #F5C518 !important;
    font-weight: 600 !important;
}

/* ---- Checkbox (WC Blocks) ---- */
/* Standard: weiße Box */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    border-radius: 4px !important;
}

/* Checked: gelb */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked {
    background-color: #F5C518 !important;
    border-color: #F5C518 !important;
}

/* Checkmark-SVG auf Navy */
.wc-block-components-checkbox .wc-block-components-checkbox__mark {
    fill: #06182E !important;
}

/* Fokus-Ring */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:focus {
    outline: 2px solid #F5C518 !important;
    outline-offset: 2px !important;
}

/* Checkbox-Label */
.wc-block-components-checkbox label {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ---- Radio-Buttons (Zahlungsoptionen) ---- */
.wc-block-components-radio-control__input {
    accent-color: #F5C518 !important;
}

.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option label {
    color: #e8eaf0 !important;
}

/* ---- Order Summary (Bestellübersicht) ---- */
.wc-block-components-order-summary__button,
.wc-block-components-panel__button {
    color: #e8eaf0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.wc-block-components-panel__content {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Produktname + Menge in Summary */
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary-item__full-price {
    color: rgba(255, 255, 255, 0.7) !important;
}

.wc-block-components-order-summary-item__individual-prices .woocommerce-Price-amount {
    color: #e8eaf0 !important;
}

/* Gesamtbeträge */
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__description,
.wc-block-components-totals-item__value {
    color: #e8eaf0 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Trennlinie Totals */
.wc-block-components-totals-coupon-link {
    color: #F5C518 !important;
}

.wc-block-components-totals-coupon__button {
    color: #F5C518 !important;
    border-color: rgba(245, 197, 24, 0.4) !important;
}

/* Coupon-Input */
.wc-block-components-totals-coupon__form .wc-block-components-text-input input {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #e8eaf0 !important;
}

/* ---- Zahlungsoptionen-Block ---- */
.wc-block-components-payment-method-label__label {
    color: #e8eaf0 !important;
}

.wc-block-components-payment-method-label__secondary-label {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* BACS-Hinweistext */
.wc-block-components-payment-method-description {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem !important;
}

/* Accordion-Optionen (Zahlungsmethoden) */
.wc-block-components-radio-control-accordion-option {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.wc-block-components-radio-control-accordion-option:first-child {
    border-radius: 8px 8px 0 0 !important;
}

.wc-block-components-radio-control-accordion-option:last-child {
    border-radius: 0 0 8px 8px !important;
}

/* ---- Notice / Hinweisboxen ---- */
.wc-block-components-notice-banner,
.wc-block-components-notice-banner.is-info {
    background-color: rgba(245, 197, 24, 0.1) !important;
    border-left-color: #F5C518 !important;
    color: #e8eaf0 !important;
    border-radius: 8px !important;
}

.wc-block-components-notice-banner.is-error {
    background-color: rgba(220, 50, 50, 0.1) !important;
    border-left-color: #ff6b6b !important;
}

/* ---- Bestell-Button ---- */
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-place-order-button {
    background: #F5C518 !important;
    color: #06182E !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
    padding: 0.9rem 2rem !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: transform 0.2s, opacity 0.2s !important;
}

.wc-block-components-checkout-place-order-button:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Alle anderen Buttons (weiter, aktualisieren etc.) */
.wc-block-components-button {
    background: #F5C518 !important;
    color: #06182E !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}

/* Sekundäre/Ghost-Buttons */
.wc-block-components-button.outlined {
    background: transparent !important;
    color: #F5C518 !important;
    border: 1px solid rgba(245, 197, 24, 0.5) !important;
}

/* ---- Cart-spezifische Blöcke ---- */
.wc-block-cart-item__product-name {
    color: #e8eaf0 !important;
}

.wc-block-cart-items .wc-block-cart-item {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.wc-block-cart-item__remove-link {
    color: rgba(255, 255, 255, 0.4) !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #F5C518 !important;
}

/* Mengen-Feld */
.wc-block-components-quantity-selector input {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #e8eaf0 !important;
}

.wc-block-components-quantity-selector__button {
    color: #e8eaf0 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ---- Allgemein: Text-Styles im Blocks-Kontext ---- */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
    color: #e8eaf0 !important;
}

/* Accordion-Trennlinien */
.wc-block-components-checkout-step + .wc-block-components-checkout-step {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* ---- Country-Combobox (select-ish Input) ---- */
.wc-block-components-country-input .wc-block-components-combobox,
.wc-block-components-state-input .wc-block-components-combobox {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    color: #e8eaf0 !important;
}

/* Combobox-Dropdown */
.wc-block-components-combobox-control__suggestions-container {
    background: #0a2444 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
}

.wc-block-components-combobox-control__suggestion {
    color: #e8eaf0 !important;
}

.wc-block-components-combobox-control__suggestion:hover,
.wc-block-components-combobox-control__suggestion[aria-selected="true"] {
    background: rgba(245, 197, 24, 0.15) !important;
    color: #ffffff !important;
}


/* ----------------------------------------------------------------
 * CLASSIC WooCommerce – Fallback für nicht-Block-Seiten
 * ---------------------------------------------------------------- */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e8eaf0 !important;
    border-radius: 8px !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #F5C518 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15) !important;
}

.woocommerce form .form-row label {
    color: rgba(255, 255, 255, 0.75) !important;
}

.woocommerce h2,
.woocommerce h3,
.woocommerce-page h2,
.woocommerce-page h3 {
    color: #ffffff !important;
    font-family: 'Fraunces', Georgia, serif !important;
}

.woocommerce #payment ul.payment_methods li label {
    color: #e8eaf0 !important;
}

.woocommerce #payment {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #place_order {
    background: #F5C518 !important;
    color: #06182E !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    border: none !important;
}
