/* =========================================================
   Der Hund – WooCommerce Classic Checkout
   Classic Checkout im Block-Checkout-inspirierten Layout
   ========================================================= */


/* =========================================================
   Base container
   ========================================================= */

body.woocommerce-checkout .woocommerce {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* Hide ad/banner elements on checkout */
body.woocommerce-checkout .left-banner,
body.woocommerce-checkout .right-banner,
body.woocommerce-checkout .banner-items,
body.woocommerce-checkout .catfish-sticky {
    display: none !important;
}


/* =========================================================
   Desktop Layout
   ========================================================= */

@media all and (min-width: 1025px) {

    body.woocommerce-checkout .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 420px;
        column-gap: 36px;
        row-gap: 24px;
        align-items: start;
    }

    /*
       Das eigentliche Checkout-Formular wird "transparent",
       damit seine Kinder direkt im Grid der .woocommerce liegen.
    */
    body.woocommerce-checkout .woocommerce > form.checkout {
        display: contents !important;
    }


    /* -------------------------
       Eingeloggte User
       ------------------------- */

    body.woocommerce-checkout.logged-in #customer_details {
        grid-column: 1;
        grid-row: 1 / span 50;
        width: 100%;
        margin: 0 !important;
    }

    body.woocommerce-checkout.logged-in .woocommerce > form.checkout_coupon,
    body.woocommerce-checkout.logged-in .woocommerce > form.woocommerce-form-coupon {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: 420px;
        margin: 0 !important;
        align-self: start;
    }

    body.woocommerce-checkout.logged-in #order_review {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        margin: 0 !important;
        align-self: start;
        position: sticky;
        top: 24px;
    }


    /* -------------------------
       Nicht eingeloggte User
       ------------------------- */

    body.woocommerce-checkout:not(.logged-in) .woocommerce > .woocommerce-form-login-toggle {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        margin: 0 !important;
        box-sizing: border-box;
    }

    body.woocommerce-checkout:not(.logged-in) .woocommerce > form.login,
    body.woocommerce-checkout:not(.logged-in) .woocommerce > form.woocommerce-form-login {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0 !important;
        box-sizing: border-box;
    }

    body.woocommerce-checkout:not(.logged-in) #customer_details {
        grid-column: 1;
        grid-row: 3 / span 50;
        width: 100%;
        margin: 0 !important;
    }

    body.woocommerce-checkout:not(.logged-in) .woocommerce > form.checkout_coupon,
    body.woocommerce-checkout:not(.logged-in) .woocommerce > form.woocommerce-form-coupon {
        grid-column: 2;
        grid-row: 3;
        width: 100%;
        max-width: 420px;
        margin: 0 !important;
        align-self: start;
    }

    body.woocommerce-checkout:not(.logged-in) #order_review {
        grid-column: 2;
        grid-row: 4;
        width: 100%;
        margin: 0 !important;
        align-self: start;
        position: sticky;
        top: 24px;
    }

    body.woocommerce-checkout #order_review_heading {
        display: none !important;
    }
}


/* =========================================================
   Notices
   ========================================================= */

body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error {
    border-top-color: #e30009;
    background: #f7f7f7;
    color: #111;
    border-radius: 0;
    padding: 18px 22px 18px 52px;
    margin-bottom: 26px;
}

body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-message::before {
    color: #e30009;
}

body.woocommerce-checkout .woocommerce-info a,
body.woocommerce-checkout .woocommerce-message a {
    color: #e30009;
    text-decoration: none;
}

body.woocommerce-checkout .woocommerce-info a:hover,
body.woocommerce-checkout .woocommerce-message a:hover {
    color: #000;
}


/* =========================================================
   Login-Hinweis und Login-Formular
   ========================================================= */

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    margin: 0;
    padding: 18px 22px 18px 52px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: 3px solid #e30009;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: #111;
    box-sizing: border-box;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before {
    color: #e30009;
    top: 18px;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a {
    color: #e30009;
    text-decoration: none;
}

body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a:hover {
    color: #000;
}

body.woocommerce-checkout form.login,
body.woocommerce-checkout form.woocommerce-form-login {
    padding: 24px 26px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

body.woocommerce-checkout form.login p:first-child,
body.woocommerce-checkout form.woocommerce-form-login p:first-child {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.5;
}

body.woocommerce-checkout form.login input.input-text,
body.woocommerce-checkout form.woocommerce-form-login input.input-text {
    width: 100% !important;
    min-height: 44px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 15px;
    box-sizing: border-box;
}

body.woocommerce-checkout form.login button.button,
body.woocommerce-checkout form.woocommerce-form-login button.button {
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    background: #e30009;
    color: #fff;
    border: 0;
    font-size: 15px;
    font-weight: 600;
}

body.woocommerce-checkout form.login button.button:hover,
body.woocommerce-checkout form.woocommerce-form-login button.button:hover {
    background: #000;
    color: #fff;
}

body.woocommerce-checkout form.login .lost_password a,
body.woocommerce-checkout form.woocommerce-form-login .lost_password a {
    color: #e30009;
}

body.woocommerce-checkout form.login .lost_password a:hover,
body.woocommerce-checkout form.woocommerce-form-login .lost_password a:hover {
    color: #000;
}


/* =========================================================
   Gutscheinbox
   ========================================================= */

/* Standard-WooCommerce-Gutschein-Hinweis ausblenden */
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    display: none !important;
}

/* Gutscheinformular sichtbar und als Card */
body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-checkout form.woocommerce-form-coupon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;

    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: 3px solid #e30009;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/*
   Nur Beschreibungstext ausblenden.
   Wichtig: Nicht p:first-child ausblenden, weil bei dir sonst das Eingabefeld verschwinden kann.
*/
body.woocommerce-checkout form.checkout_coupon > p:not(.form-row),
body.woocommerce-checkout form.woocommerce-form-coupon > p:not(.form-row) {
    display: none !important;
}

/* Form Rows im Gutscheinformular */
body.woocommerce-checkout form.checkout_coupon .form-row,
body.woocommerce-checkout form.woocommerce-form-coupon .form-row {
    display: block !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout form.checkout_coupon .form-row-first,
body.woocommerce-checkout form.woocommerce-form-coupon .form-row-first {
    margin-bottom: 8px !important;
}

/* Gutscheincode Input */
body.woocommerce-checkout form.checkout_coupon input.input-text,
body.woocommerce-checkout form.woocommerce-form-coupon input.input-text {
    display: block !important;
    width: 100% !important;
    height: 40px;
    min-height: 40px;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Gutschein Button */
body.woocommerce-checkout form.checkout_coupon button.button,
body.woocommerce-checkout form.woocommerce-form-coupon button.button {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #e30009;
    color: #fff;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 40px;
    transition: background 0.2s ease;
}

body.woocommerce-checkout form.checkout_coupon button.button:hover,
body.woocommerce-checkout form.woocommerce-form-coupon button.button:hover {
    background: #000;
    color: #fff;
}


/* =========================================================
   Cards für Checkout-Bereiche
   ========================================================= */

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 22px;
}


/* Headings */
body.woocommerce-checkout h3,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
    margin: 0 0 22px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    color: #111;
}

/* Eigene Überschrift in der Bestellübersicht */
body.woocommerce-checkout #order_review::before {
    content: "Deine Bestellung";
    display: block;
    margin-bottom: 22px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #111;
}


/* =========================================================
   Bootstrap-Konflikte mit WooCommerce-Spalten beheben
   ========================================================= */

body.woocommerce-checkout .woocommerce .col2-set {
    width: 100%;
    display: block !important;
    clear: both;
}

body.woocommerce-checkout .woocommerce .col2-set::before,
body.woocommerce-checkout .woocommerce .col2-set::after {
    content: "";
    display: table;
    clear: both;
}

body.woocommerce-checkout .woocommerce .col2-set .col-1,
body.woocommerce-checkout .woocommerce .col2-set .col-2,
body.woocommerce-checkout .woocommerce-page .col2-set .col-1,
body.woocommerce-checkout .woocommerce-page .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
}


/* =========================================================
   Bootstrap .form-row Konflikt beheben
   ========================================================= */

body.woocommerce-checkout .woocommerce form .form-row {
    display: block !important;
    flex-wrap: initial !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 18px !important;
    padding: 0 !important;
    clear: both !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce form .form-row label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 7px !important;
    line-height: 1.4 !important;
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

body.woocommerce-checkout .woocommerce form .required {
    color: #e30009;
}


/* Inputs, Selects, Textareas */
body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px;
    box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row textarea {
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
    color: #111;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus {
    border-color: #e30009;
    box-shadow: 0 0 0 3px rgba(227, 0, 9, 0.12);
    outline: none;
}

body.woocommerce-checkout .woocommerce form .form-row textarea {
    min-height: 120px;
    resize: vertical;
}


/* Select2 */
body.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 14px;
    color: #111;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 8px;
}


/* Field layout classes from Checkout Field Editor */
body.woocommerce-checkout .woocommerce form .form-row-first {
    float: left !important;
    width: 48% !important;
    max-width: 48% !important;
    clear: left !important;
}

body.woocommerce-checkout .woocommerce form .form-row-last {
    float: right !important;
    width: 48% !important;
    max-width: 48% !important;
    clear: right !important;
}

body.woocommerce-checkout .woocommerce form .form-row-wide {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.woocommerce-checkout .woocommerce form .clear {
    clear: both !important;
}


/* Spezifische Feldbreiten */
body.woocommerce-checkout #billing_postcode_field {
    float: left !important;
    clear: left !important;
    width: 48% !important;
    max-width: 48% !important;
}

body.woocommerce-checkout #billing_city_field {
    float: right !important;
    clear: right !important;
    width: 48% !important;
    max-width: 48% !important;
}

body.woocommerce-checkout #billing_title_field {
    float: left !important;
    clear: left !important;
    width: 48% !important;
    max-width: 48% !important;
}

body.woocommerce-checkout #billing_postcode_field input,
body.woocommerce-checkout #billing_city_field input,
body.woocommerce-checkout #billing_title_field select,
body.woocommerce-checkout #billing_title_field input {
    width: 100% !important;
    max-width: 100% !important;
}


/* Checkbox labels */
body.woocommerce-checkout .woocommerce form .form-row label.checkbox,
body.woocommerce-checkout #ship-to-different-address label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

body.woocommerce-checkout input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}


/* =========================================================
   Dropdown arrows für Branche und Anrede
   ========================================================= */

body.woocommerce-checkout #billing_branch_field select,
body.woocommerce-checkout #billing_title_field select,
body.woocommerce-checkout #shipping_title_field select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 42px !important;
    background-color: #fff !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #111 50%),
        linear-gradient(135deg, #111 50%, transparent 50%);
    background-position:
        calc(100% - 21px) 50%,
        calc(100% - 15px) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

body.woocommerce-checkout #billing_branch_field .select2-selection--single,
body.woocommerce-checkout #billing_title_field .select2-selection--single,
body.woocommerce-checkout #shipping_title_field .select2-selection--single {
    position: relative;
}

body.woocommerce-checkout #billing_branch_field .select2-selection--single::after,
body.woocommerce-checkout #billing_title_field .select2-selection--single::after,
body.woocommerce-checkout #shipping_title_field .select2-selection--single::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}


/* =========================================================
   Order table / product summary
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border: 0;
    margin: 0;
    border-collapse: collapse;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    border: 0 !important;
    padding: 14px 0 !important;
    vertical-align: top;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    font-size: 15px;
    color: #111;
    border-bottom: 1px solid #e6e6e6 !important;
    padding-bottom: 14px !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    font-weight: 400;
    color: #111;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: #111;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    font-size: 15px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td {
    border-top: 1px solid #111 !important;
    padding-top: 18px !important;
    font-size: 18px;
    font-weight: 700;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 12px;
    vertical-align: middle;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .remove {
    color: #e30009 !important;
}


/* =========================================================
   Payment area
   ========================================================= */

body.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
    margin: 22px 0;
}

body.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    border: 0;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600;
    color: #111;
}

body.woocommerce-checkout #payment div.payment_box {
    background: #fff;
    color: #333;
    border-radius: 10px;
    margin: 12px 0 0;
    padding: 14px;
    font-size: 14px;
}

body.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}


/* PayPal / Express buttons container */
body.woocommerce-checkout .paypal-buttons,
body.woocommerce-checkout .ppc-button-wrapper,
body.woocommerce-checkout .wc-ppcp-checkout-container,
body.woocommerce-checkout .wc-ppcp-cart-payments__container,
body.woocommerce-checkout .wc-stripe-payment-request-wrapper,
body.woocommerce-checkout .wc-stripe-payment-request-button {
    max-width: 100% !important;
    width: 100% !important;
}


/* Place order area */
body.woocommerce-checkout .place-order {
    padding: 0 !important;
    margin-top: 18px;
}

body.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 50px;
    background: #e30009;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.woocommerce-checkout #place_order:hover {
    background: #000;
    color: #fff;
}

body.woocommerce-checkout #place_order:active {
    transform: translateY(1px);
}


/* Legal text / terms */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .wc-gzd-checkbox-placeholder,
body.woocommerce-checkout .wc-gzd-legal-checkbox-text {
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
body.woocommerce-checkout .wc-gzd-legal-checkbox-text a {
    color: #e30009;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:hover,
body.woocommerce-checkout .wc-gzd-legal-checkbox-text a:hover {
    color: #000;
}


/* =========================================================
   Mobile / tablet
   ========================================================= */

@media all and (max-width: 1024px) {

    body.woocommerce-checkout .woocommerce {
        display: block;
    }

    body.woocommerce-checkout form.checkout {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 24px;
    }

    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        grid-column: 1;
        grid-row: auto;
    }

    body.woocommerce-checkout #order_review {
        position: static;
        margin-top: 0 !important;
    }

    body.woocommerce-checkout form.checkout_coupon,
    body.woocommerce-checkout form.woocommerce-form-coupon {
        position: static !important;
        width: 100%;
        max-width: 100%;
        margin: 0 0 22px 0 !important;
    }
}

@media all and (max-width: 767px) {

    body.woocommerce-checkout .woocommerce {
        padding-left: 15px;
        padding-right: 15px;
    }

    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields,
    body.woocommerce-checkout #order_review {
        padding: 20px;
        border-radius: 14px;
    }

    body.woocommerce-checkout .woocommerce form .form-row-first,
    body.woocommerce-checkout .woocommerce form .form-row-last,
    body.woocommerce-checkout #billing_postcode_field,
    body.woocommerce-checkout #billing_city_field,
    body.woocommerce-checkout #billing_title_field {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
    }

    body.woocommerce-checkout h3,
    body.woocommerce-checkout .woocommerce-billing-fields h3,
    body.woocommerce-checkout .woocommerce-additional-fields h3,
    body.woocommerce-checkout #order_review_heading {
        font-size: 22px;
    }
}

/* =========================================================
   Account-/Passwortfeld als eigene Card
   ========================================================= */

body.woocommerce-checkout .woocommerce-account-fields {
    margin-top: 22px;
    padding: 26px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

body.woocommerce-checkout .woocommerce-account-fields::before {
    content: "Kundenkonto";
    display: block;
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    color: #111;
}

body.woocommerce-checkout .woocommerce-account-fields .form-row {
    margin-bottom: 0 !important;
}

body.woocommerce-checkout #account_password_field,
body.woocommerce-checkout #account_username_field {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}


/* =========================================================
   Feinschliff Feldbreiten: Telefon/E-Mail, Lieferadresse PLZ/Ort
   ========================================================= */

/* Rechnungsadresse: E-Mail + Telefon nebeneinander */
body.woocommerce-checkout #billing_email_field {
    float: left !important;
    clear: left !important;
    width: 48% !important;
    max-width: 48% !important;
}

body.woocommerce-checkout #billing_phone_field {
    float: right !important;
    clear: right !important;
    width: 48% !important;
    max-width: 48% !important;
}


/* Lieferadresse: PLZ + Ort nebeneinander */
body.woocommerce-checkout #shipping_postcode_field {
    float: left !important;
    clear: left !important;
    width: 48% !important;
    max-width: 48% !important;
}

body.woocommerce-checkout #shipping_city_field {
    float: right !important;
    clear: right !important;
    width: 48% !important;
    max-width: 48% !important;
}


/* Lieferadresse: Telefon + E-Mail nebeneinander */
body.woocommerce-checkout #shipping_phone_field {
    float: left !important;
    clear: left !important;
    width: 48% !important;
    max-width: 48% !important;
}

body.woocommerce-checkout #shipping_email_field {
    float: right !important;
    clear: right !important;
    width: 48% !important;
    max-width: 48% !important;
}


/* Inputs in diesen Feldern immer volle Breite innerhalb der halben Spalte */
body.woocommerce-checkout #billing_email_field input,
body.woocommerce-checkout #billing_phone_field input,
body.woocommerce-checkout #shipping_postcode_field input,
body.woocommerce-checkout #shipping_city_field input,
body.woocommerce-checkout #shipping_phone_field input,
body.woocommerce-checkout #shipping_email_field input {
    width: 100% !important;
    max-width: 100% !important;
}


/* Mobile: alle wieder volle Breite */
@media all and (max-width: 767px) {
    body.woocommerce-checkout #billing_email_field,
    body.woocommerce-checkout #billing_phone_field,
    body.woocommerce-checkout #shipping_postcode_field,
    body.woocommerce-checkout #shipping_city_field,
    body.woocommerce-checkout #shipping_phone_field,
    body.woocommerce-checkout #shipping_email_field {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   Checkout Loading Overlay – ganze Seite + Spinner im Viewport-Zentrum
   ========================================================= */

/* Vollflächiger Schleier beim Checkout-Processing */
body.woocommerce-checkout .blockUI.blockOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;

    z-index: 999998 !important;
    cursor: wait !important;
}

/* Eigenes zentriertes Lade-Rädchen */
body.woocommerce-checkout .blockUI.blockOverlay::before {
    content: "" !important;

    position: fixed !important;
    top: 50% !important;
    left: 50% !important;

    width: 52px !important;
    height: 52px !important;
    margin-top: -26px !important;
    margin-left: -26px !important;

    border: 5px solid rgba(227, 0, 9, 0.15) !important;
    border-top-color: #e30009 !important;
    border-radius: 50% !important;

    background: none !important;

    animation: derhund-checkout-spin 0.8s linear infinite !important;

    z-index: 999999 !important;
}

/* Falls WooCommerce zusätzlich eine blockMsg erzeugt */
body.woocommerce-checkout .blockUI.blockMsg {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important;
}

/* Spinner-Animation */
@keyframes derhund-checkout-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}