/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/
/* ==========================================================
   Vita24 Checkout
   Delivery / Pickup selector
   ========================================================== */

.vita24-fulfilment {
    margin: 0 0 28px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e3e9e4;
    border-radius: 12px;
}

.vita24-fulfilment-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.vita24-checkout-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: #edf8ed;
    color: #3fb33e;
    border-radius: 50%;
    font-weight: 700;
}

.vita24-fulfilment-heading h3 {
    margin: 0;
    color: #152419;
    font-size: 20px;
    font-weight: 700;
}

.vita24-fulfilment-heading p {
    margin: 3px 0 0;
    color: #69756d;
    font-size: 13px;
}

.vita24-fulfilment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.vita24-fulfilment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 120px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #dce5de;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vita24-fulfilment-card:hover {
    border-color: #3fb33e;
    transform: translateY(-2px);
}

.vita24-fulfilment-card.is-selected {
    background: #f1faf1;
    border-color: #3fb33e;
    box-shadow: 0 0 0 1px #3fb33e;
}

.vita24-fulfilment-card.is-selected::after {
    content: "✓";
    position: absolute;
    top: 13px;
    right: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #3fb33e;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.vita24-card-title {
    display: block;
    margin: 0 0 6px;
    color: #172219;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.vita24-card-description {
    display: block;
    max-width: 250px;
    color: #6a746d;
    font-size: 13px;
    line-height: 1.5;
}

.vita24-pickup-message {
    display: none;
    margin-top: 15px;
    padding: 14px 16px;
    background: #edf8ed;
    color: #315f37;
    border-radius: 8px;
    font-size: 13px;
}

.vita24-pickup-message.is-visible {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (max-width: 767px) {
    .vita24-fulfilment-options {
        grid-template-columns: 1fr;
    }

    .vita24-fulfilment-card {
        min-height: 100px;
    }
}

/* =========================================================
   VITA24 CHECKOUT - MODERN FORM STYLING
   ========================================================= */


/* -----------------------------------------
   Main checkout typography
----------------------------------------- */

body.woocommerce-checkout {
    color: #172219;
}

body.woocommerce-checkout .woocommerce {
    font-size: 15px;
}


/* -----------------------------------------
   Checkout section/card styling
----------------------------------------- */

body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .woocommerce-form-login,
body.woocommerce-checkout .woocommerce-form-coupon {
    background: #ffffff;
}


/* Main Elementor checkout columns/cards */
body.woocommerce-checkout .e-checkout__column-start,
body.woocommerce-checkout .e-checkout__column-end {
    gap: 20px;
}


/* -----------------------------------------
   Section headings
----------------------------------------- */

body.woocommerce-checkout h3,
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3 {
    color: #172219;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.2;

    margin-bottom: 22px;
}


/* -----------------------------------------
   Labels
----------------------------------------- */

body.woocommerce-checkout form .form-row label {
    display: block;

    margin-bottom: 7px;

    color: #29332c;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;
}


/* Required star */
body.woocommerce-checkout .required {
    color: #d94242;
}


/* -----------------------------------------
   Form rows
----------------------------------------- */

body.woocommerce-checkout form .form-row {
    margin-bottom: 17px;
}


/* -----------------------------------------
   Inputs / Select / Textarea
----------------------------------------- */

body.woocommerce-checkout form .form-row input.input-text,
body.woocommerce-checkout form .form-row textarea,
body.woocommerce-checkout form .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    background: #f5f8f5;

    border: 1px solid #dce5de;
    border-radius: 8px;

    color: #172219;

    font-family: inherit;
    font-size: 14px;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* Placeholder */
body.woocommerce-checkout input::placeholder,
body.woocommerce-checkout textarea::placeholder {
    color: #9aa49d;

    opacity: 1;
}


/* Focus */
body.woocommerce-checkout form .form-row input.input-text:focus,
body.woocommerce-checkout form .form-row textarea:focus,
body.woocommerce-checkout form .form-row select:focus,
body.woocommerce-checkout .select2-container--default.select2-container--focus
.select2-selection--single {
    outline: none;

    background: #ffffff;

    border-color: #3fb33e;

    box-shadow:
        0 0 0 3px rgba(63, 179, 62, 0.12);
}


/* Textarea */
body.woocommerce-checkout form .form-row textarea {
    min-height: 120px;

    resize: vertical;

    line-height: 1.5;
}


/* -----------------------------------------
   Select2 Province / Country fields
----------------------------------------- */

body.woocommerce-checkout
.select2-container--default
.select2-selection--single {
    display: flex;
    align-items: center;
}


body.woocommerce-checkout
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    width: 100%;

    padding-left: 0;

    color: #172219;

    line-height: normal;
}


body.woocommerce-checkout
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    top: 50%;
    right: 12px;

    transform: translateY(-50%);
}


/* Dropdown itself */
body.woocommerce-checkout .select2-dropdown {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dce5de;
    border-radius: 8px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}


/* Selected dropdown option */
body.woocommerce-checkout
.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background: #3fb33e;

    color: #ffffff;
}


/* -----------------------------------------
   Address search field
----------------------------------------- */

body.woocommerce-checkout input[type="search"] {
    border-radius: 8px;
}


/* -----------------------------------------
   Checkboxes
----------------------------------------- */

body.woocommerce-checkout input[type="checkbox"] {
    width: 17px;
    height: 17px;

    accent-color: #3fb33e;

    vertical-align: middle;
}


/* Ship to different address */
body.woocommerce-checkout #ship-to-different-address {
    margin: 20px 0;

    font-size: 14px;
    font-weight: 600;
}


/* -----------------------------------------
   Your Order
----------------------------------------- */

body.woocommerce-checkout table.shop_table {
    overflow: hidden;

    width: 100%;

    margin: 0;

    border: 0;
    border-collapse: collapse;

    background: #ffffff;
}


body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
    padding: 15px 0;

    border-bottom: 1px solid #e7ece8;

    color: #27302a;

    font-size: 14px;
}


body.woocommerce-checkout table.shop_table th {
    font-weight: 600;
}


body.woocommerce-checkout table.shop_table .order-total th,
body.woocommerce-checkout table.shop_table .order-total td {
    padding-top: 20px;

    color: #172219;

    font-size: 17px;
    font-weight: 700;
}


/* Total price */
body.woocommerce-checkout table.shop_table .order-total .amount {
    color: #3fb33e;

    font-size: 20px;
}


/* -----------------------------------------
   Coupon
----------------------------------------- */

body.woocommerce-checkout .e-coupon-box {
    border-radius: 10px;
}


body.woocommerce-checkout .woocommerce-form-coupon {
    padding: 18px;
}


/* Generic WooCommerce buttons */
body.woocommerce-checkout .woocommerce button.button,
body.woocommerce-checkout .woocommerce a.button,
body.woocommerce-checkout .woocommerce input.button {
    min-height: 46px;

    padding: 12px 20px;

    background: #ffffff;

    border: 1px solid #3fb33e;
    border-radius: 8px;

    color: #3fb33e;

    font-size: 13px;
    font-weight: 700;

    text-transform: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


body.woocommerce-checkout .woocommerce button.button:hover,
body.woocommerce-checkout .woocommerce a.button:hover,
body.woocommerce-checkout .woocommerce input.button:hover {
    background: #3fb33e;

    border-color: #3fb33e;

    color: #ffffff;

    transform: translateY(-1px);
}


/* -----------------------------------------
   Payment section
----------------------------------------- */

body.woocommerce-checkout #payment {
    padding: 0;

    background: transparent;

    border-radius: 10px;
}


body.woocommerce-checkout #payment ul.payment_methods {
    margin: 0;

    padding: 0;

    border: 0;
}


body.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 12px;
    padding: 16px;

    background: #f5f8f5;

    border: 1px solid #dce5de;
    border-radius: 8px;
}


body.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    background: #eff9ef;

    border-color: #3fb33e;
}


body.woocommerce-checkout #payment input[type="radio"] {
    accent-color: #3fb33e;
}


/* Payment description */
body.woocommerce-checkout .payment_box {
    margin-top: 12px !important;

    padding: 14px !important;

    background: #ffffff !important;

    border-radius: 6px;
}


body.woocommerce-checkout .payment_box::before {
    display: none !important;
}


/* -----------------------------------------
   Place Order
----------------------------------------- */

body.woocommerce-checkout #place_order {
    width: 100%;

    min-height: 52px;

    margin-top: 12px;

    padding: 14px 22px;

    background: #3fb33e !important;

    border: 0 !important;
    border-radius: 8px !important;

    color: #ffffff !important;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .02em;

    text-transform: none;

    box-shadow:
        0 8px 22px rgba(63, 179, 62, 0.18);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


body.woocommerce-checkout #place_order:hover {
    background: #349d34 !important;

    transform: translateY(-1px);

    box-shadow:
        0 10px 28px rgba(63, 179, 62, 0.24);
}


/* -----------------------------------------
   Privacy / small checkout copy
----------------------------------------- */

body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    color: #768078;

    font-size: 12px;
    line-height: 1.6;
}


body.woocommerce-checkout
.woocommerce-privacy-policy-text a,
body.woocommerce-checkout
.woocommerce-terms-and-conditions-wrapper a {
    color: #3fb33e;
}


/* -----------------------------------------
   Validation
----------------------------------------- */

body.woocommerce-checkout
.woocommerce-invalid
input.input-text,
body.woocommerce-checkout
.woocommerce-invalid
.select2-selection {
    border-color: #d94242 !important;

    box-shadow:
        0 0 0 3px rgba(217, 66, 66, .08);
}


body.woocommerce-checkout
.woocommerce-validated
input.input-text {
    border-color: #a6d4a6;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    body.woocommerce-checkout h3 {
        font-size: 19px;
    }


    body.woocommerce-checkout form .form-row {
        width: 100% !important;

        float: none !important;
    }


    body.woocommerce-checkout
    form .form-row-first,
    body.woocommerce-checkout
    form .form-row-last {
        width: 100% !important;
    }


    body.woocommerce-checkout
    form .form-row input.input-text,
    body.woocommerce-checkout
    form .form-row select,
    body.woocommerce-checkout
    .select2-container--default
    .select2-selection--single {
        min-height: 50px;
    }
}