/* ============================================================
   IceStrains — Compact & Professional Checkout
   Classic WooCommerce checkout ([woocommerce_checkout])
   Applies to ALL languages: EN, RO, PL, ES, DA, HU, NL
   ============================================================ */

/* ---------- Page scaffold ---------- */
.woocommerce-checkout .entry-title,
.woocommerce-page.woocommerce-checkout .entry-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin: 10px 0 6px !important;
}

.woocommerce form.woocommerce-checkout {
    font-size: 14px;
}

/* ---------- Coupon toggle ---------- */
.woocommerce form.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f6f8f6 !important;
    border: 1px solid #e2e8e2 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    color: #3c4a3f !important;
}
.woocommerce form.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
    color: #4c8a3f !important;
    font-weight: 600;
    text-decoration: underline;
}
.woocommerce form.checkout_coupon {
    border: 1px dashed #c8d6c4 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
}
.woocommerce form.checkout_coupon .input-text {
    padding: 9px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #d5ddd5 !important;
    height: 40px;
}

/* ---------- Section headings ---------- */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #143b29 !important;
    margin: 18px 0 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e6ece6 !important;
}
#order_review_heading {
    margin-top: 0 !important;
}

/* ---------- Form fields ---------- */
.woocommerce form.woocommerce-checkout .form-row {
    margin: 0 0 11px !important;
    padding: 0 !important;
}
.woocommerce form.woocommerce-checkout label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #46544a !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.1px;
}
.woocommerce form.woocommerce-checkout .required {
    color: #d9534f !important;
    text-decoration: none !important;
}
.woocommerce form.woocommerce-checkout .input-text,
.woocommerce form.woocommerce-checkout select,
.woocommerce form.woocommerce-checkout .select2-container .select2-selection {
    padding: 9px 12px !important;
    min-height: 40px !important;
    border: 1px solid #d5ddd5 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 14px !important;
    color: #1e2b22 !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce form.woocommerce-checkout .input-text:focus,
.woocommerce form.woocommerce-checkout select:focus,
.woocommerce form.woocommerce-checkout .select2-container--focus .select2-selection,
.woocommerce form.woocommerce-checkout .select2-container--open .select2-selection {
    border-color: #79bb62 !important;
    box-shadow: 0 0 0 3px rgba(121, 187, 98, 0.18) !important;
    outline: none !important;
}
.woocommerce form.woocommerce-checkout .select2-container .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 12px !important;
}
.woocommerce form.woocommerce-checkout .select2-container .select2-selection__arrow {
    height: 38px !important;
}

/* "Ship to a different address" + notes */
.woocommerce form.woocommerce-checkout #ship-to-different-address {
    margin: 14px 0 6px !important;
}
.woocommerce form.woocommerce-checkout #ship-to-different-address label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #143b29 !important;
}
.woocommerce form.woocommerce-checkout #order_comments {
    min-height: 70px !important;
    border-radius: 8px !important;
}

/* ---------- Order review card ---------- */
.woocommerce-checkout #order_review,
.woocommerce #order_review {
    border: 1px solid #e4eae4 !important;
    border-radius: 14px !important;
    background: #fdfefd !important;
    padding: 20px 22px !important;
    box-shadow: 0 1px 3px rgba(20, 59, 41, 0.05) !important;
}
.woocommerce-checkout #order_review table.shop_table,
.woocommerce #order_review table.shop_table {
    border: none !important;
    margin: 0 !important;
}
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td,
.woocommerce #order_review table.shop_table th,
.woocommerce #order_review table.shop_table td {
    border: none !important;
    border-bottom: 1px solid #eef3ee !important;
    padding: 8px 4px !important;
    font-size: 13.5px !important;
}
.woocommerce-checkout #order_review table.shop_table tr.cart_item td,
.woocommerce #order_review table.shop_table tr.cart_item td {
    color: #3c4a3f !important;
}
.woocommerce-checkout #order_review table.shop_table tfoot th,
.woocommerce-checkout #order_review table.shop_table tfoot td,
.woocommerce #order_review table.shop_table tfoot th,
.woocommerce #order_review table.shop_table tfoot td {
    font-weight: 600 !important;
}
.woocommerce-checkout #order_review table.shop_table tfoot .order-total th,
.woocommerce-checkout #order_review table.shop_table tfoot .order-total td,
.woocommerce #order_review table.shop_table tfoot .order-total th,
.woocommerce #order_review table.shop_table tfoot .order-total td {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #143b29 !important;
    border-bottom: none !important;
    padding-top: 12px !important;
}

/* ---------- Payment ---------- */
.woocommerce-checkout #payment,
.woocommerce #payment {
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 14px !important;
}
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce #payment ul.payment_methods {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
}
.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce #payment ul.payment_methods li {
    border: 1px solid #e2e8e2 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    background: #fff !important;
    line-height: 1.4 !important;
}
.woocommerce-checkout #payment ul.payment_methods li input.input-radio {
    margin: 0 8px 0 0 !important;
    accent-color: #4c8a3f;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e2b22 !important;
    margin: 0 !important;
    display: inline !important;
}
.woocommerce-checkout #payment div.payment_box,
.woocommerce #payment div.payment_box {
    background: #f4f8f3 !important;
    border-radius: 8px !important;
    margin: 8px 0 2px !important;
    padding: 10px 12px !important;
    font-size: 12.5px !important;
    color: #5a6a5e !important;
}
.woocommerce-checkout #payment div.payment_box:before,
.woocommerce #payment div.payment_box:before {
    display: none !important;
}

/* Place order button */
.woocommerce-checkout #payment #place_order,
.woocommerce #payment #place_order,
.woocommerce-checkout .woocommerce-checkout-payment #place_order {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #69ad52 0%, #4c8a3f 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(76, 138, 63, 0.35) !important;
    transition: filter .15s ease, transform .05s ease;
    float: none !important;
    margin-top: 6px !important;
}
.woocommerce-checkout #payment #place_order:hover {
    filter: brightness(1.07) !important;
}
.woocommerce-checkout #payment #place_order:active {
    transform: translateY(1px) !important;
}

/* Privacy note under payment */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce form.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 12px !important;
    color: #6a7a6e !important;
    margin-bottom: 10px !important;
}

/* Privacy policy / terms links */
.woocommerce form.woocommerce-checkout a {
    color: #4c8a3f !important;
}

/* ---------- Empty-cart state ---------- */
.woocommerce .cart-empty.woocommerce-info,
.woocommerce-page .cart-empty {
    border-radius: 12px !important;
    padding: 40px 20px !important;
}
.woocommerce a.button.wc-backward,
.woocommerce a.button.return-to-shop {
    background: linear-gradient(180deg, #69ad52 0%, #4c8a3f 100%) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .woocommerce-checkout .entry-title {
        font-size: 22px !important;
    }
    .woocommerce form.woocommerce-checkout .form-row {
        margin-bottom: 9px !important;
    }
    .woocommerce-checkout #order_review,
    .woocommerce #order_review {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    .woocommerce-additional-fields h3,
    #order_review_heading {
        font-size: 16px !important;
    }
    .woocommerce-checkout #payment #place_order {
        min-height: 52px !important;
        font-size: 16px !important;
    }
}

/* --- iOS zoom prevention: inputs/selects need >=16px font on mobile --- */
@media (max-width: 768px) {
    .woocommerce-checkout input[type="text"],
    .woocommerce-checkout input[type="email"],
    .woocommerce-checkout input[type="tel"],
    .woocommerce-checkout input[type="password"],
    .woocommerce-checkout input[type="number"],
    .woocommerce-checkout select,
    .woocommerce-checkout textarea,
    .woocommerce-page .select2-container--default .select2-selection--single,
    .select2-container--default .select2-search--dropdown .select2-search__field,
    .woocommerce-cart input#coupon_code,
    .woocommerce-checkout input#coupon_code {
        font-size: 16px !important;
    }
}
