/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.woocommerce-checkout .border_html {
    /*background-color: #fff;*/
}

.checkout-two-column-layout .two-column-layout-left {
    /*width: 55%;*/
}

.checkout-two-column-layout .two-column-layout-right {
    background: #fff;
    /*width: 45%;*/
}
.wcus-checkout-fields h3 {
    font-family: "Open Sans", Sans-serif;
    color: #000;
    border-left-style: solid;
    border-width: 3px;
    border-color: #474747;
    /* border: 1px solid; */
    border-right: 0;
    border-top: 0;
    border-bottom: 0;

    width: 100%;
    height: auto;
    line-height: 21px;
    text-align: left;
    padding: 10px;
    margin-bottom: 12px !important;
    margin-top: 0px !important;
    text-transform: uppercase;
    display: inline-block;
    font-size: 18px !important;
    font-weight: 500;
    box-sizing: border-box;
}

#ship-to-different-address {
    display: none;
}

/*.iti__flag-container {*/
/*    display: none !important;*/
/*}*/

.iti--allow-dropdown input.iti__tel-input, .iti--allow-dropdown input.iti__tel-input[type=tel], .iti--allow-dropdown input.iti__tel-input[type=text], .iti--show-selected-dial-code input.iti__tel-input, .iti--show-selected-dial-code input.iti__tel-input[type=tel], .iti--show-selected-dial-code input.iti__tel-input[type=text] {
    padding: 0 !important;
}

.elementor-field-type-telephone .wpcf7-not-valid-red {
    background-size: auto 45% !important;
}

.elementor-field-type-telephone .wpcf7-not-valid-blue {
    background-size: auto 45% !important;
}

#billing_country_field,
#shipping_country_field {
    display:none;
}

/* Checkout shipping method selector */
.somio-shipping-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.somio-shipping-method {
    display: block !important;
    text-align: center !important;
    padding: 14px 18px !important;
    border: 1px solid #d0dde8 !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2 !important;
    color: #333;
    transition: border-color 0.15s, color 0.15s;
    box-sizing: border-box !important;
}

.somio-shipping-method:has(input:checked) {
    border-color: #5a9fd4;
    color: #5a9fd4;
}

.somio-shipping-method input[type="radio"] {
    display: none;
}

.somio-shipping-methods br,
.somio-shipping-method br {
    display: none;
}

.somio-shipping-cost {
    color: #999;
    font-size: 13px;
}

/* Checkout form fields */
.woocommerce-checkout .form-row label,
.woocommerce-checkout .woocommerce-form__label {
    color: #5a9fd4;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 4px;
    display: block;
}

.woocommerce-checkout .form-row .required {
    color: #e53935;
    text-decoration: none;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    border: 1px solid #a8d4f0 !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    color: #222 !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    width: 100% !important;
}

/* Select2 custom dropdown */
.woocommerce-checkout .form-row .select2-container .select2-selection--single {
    border: 1px solid #a8d4f0 !important;
    border-radius: 4px !important;
    height: auto !important;
    padding: 12px 14px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.4 !important;
    font-size: 15px !important;
    color: #222 !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 10px !important;
}

.woocommerce-checkout .form-row .select2-container--open .select2-selection--single {
    border-color: #5a9fd4 !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #5a9fd4 !important;
}

/* Checkout cart block */
.somio-checkout-cart {
    margin-bottom: 32px;
    position: relative;
}

.somio-checkout-cart.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 10;
}

.somio-checkout-cart.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 11;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #d0dde8;
    border-top-color: #5a9fd4;
    border-radius: 50%;
    animation: somio-spin 0.6s linear infinite;
}

@keyframes somio-spin {
    to { transform: rotate(360deg); }
}

.somio-cart-item {
    display: grid;
    grid-template-columns: 40px 3fr 100px auto auto;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px dashed #d0dde8;
}

@media (max-width: 450px) {
    .somio-cart-item {
        grid-template-columns: 40px 1fr 90px auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "img name  qty    remove"
            "img name  price  .     ";
        align-items: start;
    }
    .somio-cart-item__img            { grid-area: img; }
    .somio-cart-item__name           { grid-area: name; }
    .somio-cart-item__price          { grid-area: price; text-align: right; }
    .somio-cart-item .somio-qty-wrap { grid-area: qty; width: 100%; justify-content: flex-end; }
    .somio-cart-item__remove         { display: none; }
}

@media (min-width: 768px) {
    .somio-cart-item {
        grid-template-columns: 60px 2fr 160px 1fr auto;
        gap: 16px;
    }
}


.somio-cart-item__img {
    width: 40px;
    height: 40px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .somio-cart-item__img {
        width: 60px;
        height: 60px;
    }
}

.somio-cart-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.somio-cart-item__name {
    min-width: 0;
    font-size: 15px;
    color: #333;
}

.somio-cart-item__price {
    font-size: 16px;
    color: #5a9fd4;
    white-space: nowrap;
    text-align: right;
}

.somio-cart-item__remove {
    background: none;
    border: none;
    color: #b0c4d8;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

.somio-cart-item__remove:hover {
    color: #666;
}

.somio-cart-total {
    margin-top: 16px;
    display: block;
    text-align: right;
    background: #eef6fc;
    padding: 10px 20px;
    font-size: 15px;
    color: #333;
    border-radius: 4px;
}

.somio-cart-total span {
    color: #5a9fd4;
    font-weight: 600;
}

/* Checkout qty controls */
.somio-cart-item .somio-qty-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    width: 120px;
}

@media (min-width: 768px) {
    .somio-cart-item .somio-qty-wrap {
        width: 160px;
    }
}

.somio-cart-item .somio-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a9fd4;
    transition: color 0.15s;
}

.somio-cart-item .somio-qty-btn:hover {
    color: #2a7fb0;
}

.somio-cart-item .somio-qty-input {
    width: 36px;
    height: 24px;
    text-align: center;
    border: none;
    border-bottom: 1px solid #d0dde8;
    font-size: 14px;
    padding: 0;
    -moz-appearance: textfield;
    background: transparent;
}

.somio-cart-item .somio-qty-input::-webkit-outer-spin-button,
.somio-cart-item .somio-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ProductVariations widget — hide variation price block */
.somio-variations-widget .single_variation {
    display: none !important;
}

/* ProductVariations widget — hide qty/button section, keep form in DOM for WC JS */

.somio-variations-widget .woocommerce-variation-add-to-cart,
.somio-variations-widget .woocommerce-variation-add-to-cart[style],
.somio-variations-widget .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* ProductAddToCart slot — inherits WC button styles */
.somio-atc-slot .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.somio-size-chart-link {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.somio-size-chart-link:hover {
    opacity: 1;
}


#dynamic-variation-price {
    display: none !important;
}





/* Remove blue tap highlight and focus outline globally */
*,
*:focus,
*:focus-visible,
*:focus-within,
*:-moz-focusring {
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    box-shadow: none !important;
}
