/*
Theme Name: Hello Elementor Child
Description: Child theme for Hello Elementor
Template: hello-elementor
Version: 1.0.0
*/

/* Parent theme styles are loaded via functions.php */

/* Cart step 1 totals card */
body.woocommerce-cart .ecofood-cart-totals-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
    border: 1px solid #d7e4d7;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(24, 57, 28, 0.09);
    padding: 18px;
}

body.woocommerce-cart .ecofood-cart-totals-card > h2 {
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e2ede2;
    font-size: 22px;
    line-height: 1.2;
    color: #1f3f26;
    font-weight: 700;
}

body.woocommerce-cart .ecofood-cart-totals-card .shop_table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr th,
body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr td {
    border: none;
    padding: 12px 0;
    vertical-align: middle;
    background: transparent !important;
}

body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr.cart-subtotal th {
    color: #4b5d4f;
    font-weight: 600;
    background: transparent !important;
}

body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr.cart-subtotal td {
    background: transparent !important;
}

body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr.order-total th {
    color: #133b1e;
    font-weight: 700;
    font-size: 18px;
}

body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr.order-total td {
    font-size: 19px;
    color: #0d3c19;
    font-weight: 700;
}

body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr + tr th,
body.woocommerce-cart .ecofood-cart-totals-card .shop_table tr + tr td {
    border-top: 1px dashed #d8e4d8;
}

body.woocommerce-cart .ecofood-cart-totals-card small.price-excl-tax,
body.woocommerce-cart .ecofood-cart-totals-card small.price-incl-tax {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.woocommerce-cart .ecofood-cart-totals-card small.price-excl-tax {
    background: #eef3ef;
    color: #36503b;
    border: 1px solid #d5e0d6;
}

body.woocommerce-cart .ecofood-cart-totals-card small.price-incl-tax {
    background: #e8f6eb;
    color: #0f5d24;
    border: 1px solid #b8dfc2;
}

body.woocommerce-cart .ecofood-cart-totals-card .wc-proceed-to-checkout {
    margin-top: 16px;
}

body.woocommerce-cart .ecofood-cart-totals-card .wc-proceed-to-checkout .button.checkout-button {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #048827 0%, #0b6d24 100%);
    border: 1px solid #0a6a23;
    box-shadow: 0 8px 16px rgba(4, 136, 39, 0.25);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
}

body.woocommerce-cart .ecofood-cart-totals-card .wc-proceed-to-checkout .button.checkout-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(4, 136, 39, 0.3);
}

@media (max-width: 768px) {
    body.woocommerce-cart .ecofood-cart-totals-card {
        padding: 14px;
        border-radius: 12px;
    }

    body.woocommerce-cart .ecofood-cart-totals-card > h2 {
        font-size: 19px;
    }
}

/* Checkout review table */
body.woocommerce-checkout #order_review {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    border: 1px solid #d8e6d9;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(17, 55, 25, 0.08);
    padding: 16px;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: transparent;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th {
    background: #eff6f0;
    color: #204429;
    border: 0;
    border-bottom: 1px solid #d7e6d8;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    padding: 12px 14px;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th:first-child {
    border-top-left-radius: 10px;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th:last-child {
    border-top-right-radius: 10px;
    text-align: right;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody td,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
    border: 0;
    border-bottom: 1px solid #e3ece4;
    padding: 14px;
    background: transparent;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody tr:last-child td {
    border-bottom: 1px solid #dbe8dc;
}

body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: #173d20;
}

body.woocommerce-checkout #order_review .checkout-product-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body.woocommerce-checkout #order_review .checkout-product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid #d5e2d6;
    background: #fff;
}

body.woocommerce-checkout #order_review .checkout-product-details {
    color: #1f2f23;
    line-height: 1.35;
    font-weight: 500;
}

body.woocommerce-checkout #order_review .checkout-product-details .product-quantity {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eaf5ed;
    color: #0d6124;
    font-size: 12px;
    font-weight: 700;
}

body.woocommerce-checkout #order_review .checkout-product-details small {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #cfe0d2;
    background: #f2f7f3 !important;
    color: #35523b !important;
    font-size: 11px;
    line-height: 1.5;
}

body.woocommerce-checkout #order_review #shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

body.woocommerce-checkout #order_review #shipping_method li {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d6e4d7;
    border-radius: 8px;
    background: #f7faf7;
}

body.woocommerce-checkout #order_review #shipping_method li label {
    margin: 0 0 0 8px;
    color: #23412a;
    font-weight: 500;
}

body.woocommerce-checkout #order_review #shipping_method li input[type="radio"] {
    accent-color: #048827;
}

body.woocommerce-checkout #order_review .cart-subtotal th,
body.woocommerce-checkout #order_review .shipping th,
body.woocommerce-checkout #order_review .tax-rate th {
    color: #45614a;
    font-weight: 600;
}

body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td {
    background: #ecf8ef;
    border-top: 2px solid #b6dbbf;
    border-bottom: 0;
}

body.woocommerce-checkout #order_review .order-total th {
    color: #114020;
    font-size: 17px;
    font-weight: 700;
}

body.woocommerce-checkout #order_review .order-total td {
    text-align: right;
    color: #0a4d1e;
    font-size: 20px;
    font-weight: 800;
}

body.woocommerce-checkout #order_review .price-excl-tax,
body.woocommerce-checkout #order_review .price-incl-tax {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.45;
    vertical-align: middle;
}

body.woocommerce-checkout #order_review .price-excl-tax {
    background: #eef3ef;
    border: 1px solid #d4e0d5;
    color: #38543e;
}

body.woocommerce-checkout #order_review .price-incl-tax {
    background: #e7f6ea;
    border: 1px solid #b7dfc1;
    color: #0e5c23;
}

@media (max-width: 767px) {
    body.woocommerce-checkout #order_review {
        padding: 12px;
        border-radius: 12px;
    }

    body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th {
        font-size: 13px;
        padding: 10px 10px;
    }

    body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tbody td,
    body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th,
    body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td {
        padding: 10px;
    }

    body.woocommerce-checkout #order_review .checkout-product-thumbnail img {
        width: 54px;
        height: 54px;
    }

    body.woocommerce-checkout #order_review .order-total td {
        font-size: 18px;
    }
}

/* Checkout billing + shipping forms */
body.woocommerce-checkout .elementor-jet-checkout-billing,
body.woocommerce-checkout .elementor-jet-checkout-shipping-form {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    border: 1px solid #d8e6d9;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 55, 25, 0.07);
    padding: 16px;
}

body.woocommerce-checkout .elementor-jet-checkout-billing + .elementor-jet-checkout-shipping-form {
    margin-top: 14px;
}

body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout .mca-new-address-form > h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.2;
    color: #1a4023;
    font-weight: 700;
}

body.woocommerce-checkout .mca-new-address-form > p {
    margin: 0 0 14px;
    color: #4d6152;
    font-size: 14px;
}

body.woocommerce-checkout .woocommerce form .form-row {
    margin: 0 0 12px;
}

body.woocommerce-checkout .woocommerce form .form-row label {
    display: inline-block;
    margin-bottom: 6px;
    color: #28462f;
    font-weight: 600;
    font-size: 14px;
}

body.woocommerce-checkout .woocommerce form .form-row .required {
    color: #1f7a35;
}

body.woocommerce-checkout .woocommerce form .form-row .optional {
    color: #738578;
    font-weight: 500;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select {
    width: 100%;
    border: 1px solid #cdddcf;
    background: #fff;
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 12px;
    color: #1f2f23;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-checkout .woocommerce form .form-row textarea {
    min-height: 88px;
    resize: vertical;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus {
    border-color: #61a871;
    box-shadow: 0 0 0 3px rgba(97, 168, 113, 0.18);
    outline: none;
}

body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid textarea,
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid select {
    border-color: #d97373;
    box-shadow: 0 0 0 3px rgba(217, 115, 115, 0.14);
}

body.woocommerce-checkout .woocommerce form .form-row.woocommerce-validated input.input-text,
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-validated textarea,
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-validated select {
    border-color: #86bf92;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #cdddcf;
    background: #fff;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 12px;
    color: #1f2f23;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

body.woocommerce-checkout .mca-address-select,
body.woocommerce-checkout .mca-new-address-form {
    background: #f3f8f4;
    border: 1px solid #dbe7dd;
    border-radius: 10px;
    padding: 12px;
}

body.woocommerce-checkout .mca-new-address-form {
    margin-top: 12px;
}

body.woocommerce-checkout #ship-to-different-address {
    margin: 0;
}

body.woocommerce-checkout #ship-to-different-address .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef6ef;
    border: 1px solid #d4e3d6;
    border-radius: 10px;
    padding: 10px 12px;
}

body.woocommerce-checkout #ship-to-different-address-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #048827;
}

body.woocommerce-checkout #ship-to-different-address .checkbox span {
    font-weight: 600;
    color: #1f4728;
}

body.woocommerce-checkout .shipping_address {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d6e4d8;
}

body.woocommerce-checkout .woocommerce-input-wrapper .description {
    margin-top: 6px;
    color: #6c7d70;
    font-size: 12px;
}

@media (max-width: 767px) {
    body.woocommerce-checkout .elementor-jet-checkout-billing,
    body.woocommerce-checkout .elementor-jet-checkout-shipping-form {
        padding: 12px;
        border-radius: 12px;
    }

    body.woocommerce-checkout .woocommerce-billing-fields > h3,
    body.woocommerce-checkout .woocommerce-shipping-fields > h3,
    body.woocommerce-checkout .mca-new-address-form > h3 {
        font-size: 18px;
    }
}

/* Checkout payment section */
body.woocommerce-checkout .elementor-jet-checkout-payment {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    border: 1px solid #d8e6d9;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 55, 25, 0.07);
    padding: 16px;
}

body.woocommerce-checkout #payment {
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.woocommerce-checkout #payment .payment_methods {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    list-style: none;
}

body.woocommerce-checkout #payment .payment_methods > li {
    margin: 0;
    padding: 12px;
    border: 1px solid #d6e4d7;
    border-radius: 10px;
    background: #f5faf6;
}

body.woocommerce-checkout #payment .payment_methods > li > label {
    display: block;
    margin: 0;
    color: #1f4728;
    font-size: 15px;
    font-weight: 700;
}

body.woocommerce-checkout #payment div.payment_box {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #dbe7dd;
    border-radius: 8px;
    padding: 10px 12px;
    color: #3f5444;
    font-size: 14px;
    line-height: 1.5;
}

body.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #d5e3d7;
}

body.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
    color: #5b6d60;
    font-size: 13px;
    line-height: 1.55;
}

body.woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
    margin: 0 0 10px;
}

body.woocommerce-checkout #payment .woocommerce-terms-and-conditions {
    background: #ffffff;
    border: 1px solid #dbe7dd;
    border-radius: 8px;
    padding: 12px;
}

body.woocommerce-checkout #payment .form-row.validate-required {
    margin-top: 10px;
    margin-bottom: 0;
}

body.woocommerce-checkout #payment .form-row.validate-required .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eef6ef;
    border: 1px solid #d4e3d6;
    border-radius: 10px;
    padding: 10px 12px;
}

body.woocommerce-checkout #payment .form-row.validate-required .checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #048827;
}

body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-checkbox-text {
    color: #214429;
    font-weight: 500;
}

body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-link {
    color: #0f6b2a;
    font-weight: 700;
    text-decoration: underline;
}

body.woocommerce-checkout #payment #place_order {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid #0a6a23;
    background: linear-gradient(135deg, #048827 0%, #0b6d24 100%);
    box-shadow: 0 10px 20px rgba(4, 136, 39, 0.25);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

body.woocommerce-checkout #payment #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(4, 136, 39, 0.3);
}

@media (max-width: 767px) {
    body.woocommerce-checkout .elementor-jet-checkout-payment {
        padding: 12px;
        border-radius: 12px;
    }

    body.woocommerce-checkout #payment .payment_methods > li {
        padding: 10px;
    }

    body.woocommerce-checkout #payment #place_order {
        min-height: 48px;
        font-size: 16px;
    }
}

/* Header account dropdown for guests */
.ecofood-account-menu .elementor-icon-box-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ecofood-account-menu {
    position: relative;
}

.ecofood-account-menu .ecofood-account-menu-trigger {
    font-weight: 500;
}

.ecofood-account-menu .ecofood-account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 320px;
    background: #fff;
    border: 1px solid #d7e4d7;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(16, 49, 24, 0.16);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.18s ease;
    z-index: 9999;
}

.ecofood-account-menu:hover .ecofood-account-dropdown,
.ecofood-account-menu:focus-within .ecofood-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ecofood-account-menu .ecofood-account-dropdown-title {
    margin: 0 0 4px;
    color: #183f23;
    font-size: 16px;
    font-weight: 700;
}

.ecofood-account-menu .ecofood-account-dropdown-subtitle {
    margin: 0 0 12px;
    color: #5a6f60;
    font-size: 13px;
}

.ecofood-account-menu .ecofood-account-dropdown-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.ecofood-account-menu .ecofood-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ecofood-account-menu .ecofood-account-btn-primary {
    background: linear-gradient(135deg, #048827 0%, #0b6d24 100%);
    border: 1px solid #0a6a23;
    color: #fff;
}

.ecofood-account-menu .ecofood-account-btn-primary:link,
.ecofood-account-menu .ecofood-account-btn-primary:visited,
.ecofood-account-menu .ecofood-account-btn-primary:hover,
.ecofood-account-menu .ecofood-account-btn-primary:focus {
    color: #fff !important;
}

.ecofood-account-menu .ecofood-account-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.ecofood-account-menu .ecofood-account-btn-secondary {
    background: #f3f8f4;
    border: 1px solid #d3e2d4;
    color: #1f4728;
}

.ecofood-account-menu .ecofood-account-benefits {
    background: #f5faf6;
    border: 1px solid #dbe8dd;
    border-radius: 10px;
    padding: 10px 12px;
}

.ecofood-account-menu .ecofood-account-benefits p {
    margin: 0;
    color: #2e4b35;
    font-size: 12px;
    line-height: 1.45;
}

.ecofood-account-menu .ecofood-account-benefits p + p {
    margin-top: 6px;
}
