/* =============================================
   WOOCOMMERCE - CHECKOUT
   ============================================= */

/* ----- Layout ----- */

.checkout__layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
}

@media (max-width: 960px) {
    .checkout__layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 10px 16px;
    }


    
}

/* ----- Section titles ----- */

.checkout__section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2F2F2F;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #EAEAEA;
}

/* ----- Customer fields (billing / shipping / additional) ----- */

.checkout__billing,
.checkout__shipping,
.checkout__additional {
    margin-bottom: 32px;
}

.checkout__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

/* Full-width fields */
.checkout__fields .form-row-wide,
.checkout__fields .woocommerce-additional-fields__field-wrapper,
.checkout__fields p.form-row-wide {
    grid-column: 1 / -1;
}

/* WooCommerce form-row resets inside our grid */
.checkout__fields .form-row {
    margin: 0;
    padding: 0;
}

.checkout__fields label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkout__fields .required {
    color: #00933e;
    font-weight: 700;
}

.checkout__fields input[type="text"],
.checkout__fields input[type="email"],
.checkout__fields input[type="tel"],
.checkout__fields input[type="number"],
.checkout__fields input[type="password"],
.checkout__fields select,
.checkout__fields textarea {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2F2F2F;
    background: #fff;
    border: 1.5px solid #EAEAEA;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.checkout__fields textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 14px; 
}

.checkout__fields input:focus,
.checkout__fields select:focus,
.checkout__fields textarea:focus {
    border-color: #00933e;
    box-shadow: 0 0 0 3px rgba(0, 147, 62, 0.12);
}

.checkout__fields input.input-text.woocommerce-invalid,
.checkout__fields select.woocommerce-invalid {
    border-color: #e74c3c;
}

/* Select arrow */
.checkout__fields .select2-container,
.checkout__fields select {
    width: 100% !important;
}

.checkout__fields .select2-container--default .select2-selection--single {
    height: 40px;
    border: 1.5px solid black;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.checkout__fields .select2-container--default .select2-selection--single:focus,
.checkout__fields .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #00933e;
    box-shadow: 0 0 0 3px rgba(0, 147, 62, 0.12);
    outline: none;
}

.checkout__fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2F2F2F;
    line-height: 1;
    padding: 0;
}

.checkout__fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
}

/* ----- Shipping toggle ----- */

.checkout__ship-different {
    margin: 8px 0 24px;
}

.shipping_address {
    display: none;
    margin-top: 8px;
}

/* ----- Account fields ----- */

.checkout__account {
    margin-top: 16px;
    padding: 16px;
    background: #F7F7F7;
    border-radius: 8px;
}

.checkout__create-account {
    margin-bottom: 12px;
}

.checkout__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2F2F2F;
    cursor: pointer;
}

.checkout__checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00933e;
    cursor: pointer;
    flex-shrink: 0;
}

/* =============================================
   SIDEBAR — ORDER SUMMARY
   ============================================= */

.checkout__sidebar {
    position: sticky;
    top: 24px;
}


@media (max-width: 960px) {
    .checkout__sidebar {
        position: static;
        top: auto;
    }
}
.checkout__order-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2F2F2F;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #EAEAEA;
}

.woocommerce-checkout-review-order {
    background: #fff;
    border: 1.5px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
}

/* ----- Review order ----- */

.order-review__header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #F7F7F7;
    border-bottom: 1px solid #EAEAEA;
}

.order-review__header .order-review__col {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9C9C9C;
}

.order-review__items {
    padding: 0 20px;
}

.order-review__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #EAEAEA;
    gap: 12px;
}

.order-review__item:last-child {
    border-bottom: none;
}

.order-review__col--name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2F2F2F;
    flex: 1;
}

.order-review__col--name .product-quantity {
    font-weight: 400;
    color: #9C9C9C;
    font-size: 13px;
}

.order-review__col--total {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2F2F2F;
    white-space: nowrap;
}

/* ----- Totals ----- */

.order-review__totals {
    padding: 0 20px;
    border-top: 2px solid #EAEAEA;
    background: #F7F7F7;
}

.order-review__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #EAEAEA;
}

.order-review__row:last-child {
    border-bottom: none;
}

.order-review__label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666666;
}

.order-review__value {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2F2F2F;
}

/* Total row */
.order-review__row--total {
    padding: 16px 0 14px;
}

.order-review__row--total .order-review__label {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2F2F2F;
}

.order-review__row--total .order-review__value {
    font-size: 18px;
    font-weight: 700;
    color: #00933e;
}

/* Coupon */
.order-review__row--coupon .order-review__value {
    color: #00933e;
}

/* Shipping row */
.order-review__row--shipping {
    align-items: flex-start;
    gap: 12px;
}

.order-review__row--shipping .shipping-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666666;
    padding-top: 4px;
    flex-shrink: 0;
}

.order-review__row--shipping .shipping-value {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2F2F2F;
    text-align: right;
}

/* Shipping methods list */
.woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-shipping-methods input[type="radio"] {
    accent-color: #00933e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.woocommerce-shipping-methods label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #2F2F2F;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.shipping-notice {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #9C9C9C;
}

/* =============================================
   PAYMENT SECTION
   ============================================= */

.checkout__payment {
    margin-top: 8px;
}

.checkout__payment-methods {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

/* WooCommerce payment list resets */
.checkout__payment .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1.5px solid #EAEAEA;
    border-radius: 8px;
    overflow: hidden;
}

.checkout__payment .wc_payment_methods li {
    padding: 14px 16px;
    border-bottom: 1px solid #EAEAEA;
    background: #fff;
}

.checkout__payment .wc_payment_methods li:last-child {
    border-bottom: none;
}

.checkout__payment .wc_payment_methods label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2F2F2F;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout__payment .wc_payment_methods input[type="radio"] {
    accent-color: #00933e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkout__payment .payment_box {
    padding: 12px 16px;
    background: #F7F7F7;
    border-top: 1px solid #EAEAEA;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666666;
}

/* Place order button */
.checkout__place-order {
    margin-top: 16px;
    box-sizing: border-box;
}

.checkout__place-order #place_order {
    width: 100%;
    display: block;
    padding: 16px 24px;
    background: #00933e;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

.checkout__place-order #place_order:hover {
    background: #00855d;
}

.checkout__place-order #place_order:active {
    transform: scale(0.99);
}

/* Terms */
.checkout__place-order .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #9C9C9C;
}
.wc_payment_method {
    padding: 10px;
}
.form-row {
    width: 100%!important;
    box-sizing: border-box;
}
/* =============================================
   THANK YOU PAGE
   ============================================= */

.thankyou {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 24px;
    font-family: 'Inter', sans-serif;
}

.thankyou .woocommerce-thankyou-order-received {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #2F2F2F;
    margin-bottom: 24px;
}

.thankyou__overview {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1.5px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 24px;
}

.thankyou__overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #EAEAEA;
    gap: 16px;
}

.thankyou__overview-item:last-child {
    border-bottom: none;
}

.thankyou__overview-label {
    font-size: 13px;
    color: #9C9C9C;
}

.thankyou__overview-item strong {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2F2F2F;
}

.thankyou__overview-item.total strong {
    color: #00933e;
    font-size: 16px;
}

.thankyou__error {
    background: #fff5f5;
    border: 1.5px solid #f5c6c6;
    border-radius: 10px;
    padding: 20px;
}

.thankyou__error-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* =============================================
   COUPON BAR
   ============================================= */

.woocommerce-form-coupon-toggle {
    margin-bottom: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 600px) {
    .checkout__fields {
        grid-template-columns: 1fr;
    }

    .checkout__fields .form-row-wide {
        grid-column: 1;
    }
}


.country_to_state {
    display: none;
}
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
    border: 1px solid #cfc8d8;
    padding: 20px;
    margin: 2em 0;
    text-align: left;
    border-radius: 5px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.oddelovac {
        border-bottom: 1px solid #E6E6E6;
}
/* Disabled country select (shipping) */
.select2-container--disabled .select2-selection--single {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #EAEAEA;
}
.select2-container--disabled .select2-selection__arrow {
    display: none;
}

/* Readonly / locked input field (billing email on checkout) */
.checkout__fields input[readonly],
.checkout__fields input[readonly]:focus {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #EAEAEA;
    box-shadow: none;
}

/* Billing address – readonly stav v My Account */
.billing-readonly input,
.billing-readonly select,
.billing-readonly textarea {
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: #EAEAEA !important;
    box-shadow: none !important;
}

.billing-readonly .select2-container .select2-selection--single {
    background: #f5f5f5 !important;
    cursor: not-allowed !important;
    border-color: #EAEAEA !important;
}

.billing-readonly .select2-container .select2-selection__rendered {
    color: #999 !important;
}

.billing-readonly .select2-container .select2-selection__arrow {
    display: none !important;
}

#shipping_country {
    max-width: 50%!important;
}