
.esim-variation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 15px;
    margin: 20px 0;
}

.variation-card {
    display: block !important;
}

.variation-card .variation-box {
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    padding: 18px !important;
    cursor: pointer !important;
    text-align: center !important;
    background: #fff !important;
    transition: 0.2s !important;
}

.variation-card input:checked + .variation-box {
    border-color: #000 !important;
    box-shadow: 0 0 6px rgba(0,0,0,0.2) !important;
}
.variations_form .variations,
.variations_form table.variations,
.wp-block-woocommerce-product-price {
    display: none !important;
}
/* Single product Add to Cart button */
.single-product .single_add_to_cart_button {
    background-color: #0073aa;   /* blue */
    color: #fff;
    padding: 14px 25px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    border: none;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #005f87;
}

/* Shop page Add to Cart buttons */
.woocommerce ul.products li.product .button {
    background-color: #0073aa;
    color: #fff;
    border-radius: 6px;
    padding: 10px 20px;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #005f87;
}
.woocommerce div.product form.cart div.quantity {
    float: none;
    vertical-align: middle;
    display: none;
}
.esim-network-list {
    width: 250px;
}
.esim-network-list h4 {
    background-color: #6c6c6c;
    color: white;
    padding: 14px;
    font-family: 'Outfit';
}
.esim-network-list ul li{
    font-family: 'outfit';
}
.woocommerce div.product form.cart div.quantity {
    display: none !important;
    float: none;
    vertical-align: middle;
}
button#device-compat-btn {
    margin-top: 10px;
    background-color: #0073aa;
    color: #fff;
    padding: 14px 25px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins';
    border: none;
    /* margin-top: 20px; */
    /* padding: 16px; */
}

/* Force vertical layout */
.woocommerce div.product .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: block !important;      /* instead of flex */
    width: 100% !important;
}

/* Make Quantity 100% width */
.woocommerce div.product .single_variation_wrap .quantity {
    width: 100% !important;
    margin-bottom: 10px;
}

/* Make Add to Cart button full width */
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart button[name="add-to-cart"] {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 10px 0 !important;
}

/* Make Device Compatibility button full width */
#device-compat-btn {
    display: block !important;
    width: 100% !important;
}
.device-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 999999;
}
.device-popup-close h2{
    font-family: 'Poppins';
    font-size: 30px;
}
div#esimPopup {
    font-family: 'Poppins';
}
.device-popup-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.device-popup-inner {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 60px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.device-popup-close {
    background: transparent;
    border: none;
    font-size: 32px;
    float: right;
    cursor: pointer;
}

.device-item {
    padding: 10px;
    font-family: poppins;
    border-bottom: 1px solid #eee;
}

    /* Overlay background */
    #esimPopupOverlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 9998;
    }

    /* Popup container */
    #esimPopup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #ffffff;
        border-radius: 10px;
        width: 90%;
        max-width: 450px;
        max-height: 80%;
        overflow-y: auto;
        padding: 25px 20px;
        box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
        z-index: 9999;
        animation: fadeIn 0.3s ease-out;
    }

    /* Smooth open animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translate(-50%, -45%); }
        to   { opacity: 1; transform: translate(-50%, -50%); }
    }

    /* Close button */
    #closeEsimPopup {
        position: absolute;
        top: 12px;
        right: 15px;
        cursor: pointer;
        font-size: 25px;
        color: #444;
        transition: 0.2s;
    }

    #closeEsimPopup:hover {
        color: #000;
    }

  /* Make each li a row with 2 columns */
#esimList li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

#esimList li strong {
    color: #333;
}

/* Trigger link styling */
#showEsimPopup {
    text-decoration: underline;
    color: #0073aa;
    cursor: pointer;
    font-weight: 600;
}

#showEsimPopup:hover {
    color: #005177;
    font-family: 'Poppins';
}

/* Left column (country) */
#esimList .country-col {
    font-weight: 600;
    color: #333;
}

/* Right column (network) */
#esimList .network-col {
    text-align: right;
    color: #555;
}

button#nuutel-show-usage {
    background-color: #004aae;
    text-align: center;
    color: white;
    padding: 11px;
    font-size: 17px;
    border-color: white;
    border-radius: 9px;
}

#nuutel-esim-result table.shop_table {
    margin-top: 15px;
    width: 100%;
    border-collapse: collapse;
}

#nuutel-esim-result table.shop_table th,
#nuutel-esim-result table.shop_table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
}

#nuutel-esim-result table.shop_table th {
    text-align: left;
    width: 35%;
    background: #fafafa;
    font-weight: 600;
}
@media (max-width: 768px) {
    .esim-variation-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .esim-variation-cards {
        grid-template-columns: 1fr;
    }
}

