/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/* Table styling */
.customtable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

.customtable th,
.customtable td {
    padding: 12px 15px;
}

.customtable thead th {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #dddddd;
}

.customtable tbody tr {
    border-bottom: 1px solid #dddddd;
}

.customtable tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.customtable tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

.customtable tbody tr:hover {
    background-color: #f1f1f1;
}

.tabs-head {
    display: flex;
    cursor: pointer;
}

.tab {
    padding: 10px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

.tab-content {
    display: none;
    border: 1px solid #ccc;
    padding: 10px;
}

.tab-content.active {
    display: block;
}

.tabs-head.esim-tab {
    justify-content: center;
    gap: 30px;
}

.tabs-head.esim-tab .tab {
    padding: 15px 35px;
    border: 1px solid #171717;
    border-radius: 10px;
    margin: 0;
    color: #ffffff;
    font-weight: bold;
}

.tabs-content.esim-tab .tab-content {
    border: 0;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.tabs-head.esim-tab .tab.active {
    background: #794cff;
    color: #fff;
}
.esim-tabs-wrapper .tabs-head.esim-tab .tab.active {
    background: #794cff;
    color: #fff;
}
.sim-wrap ul {
    margin: 40px 0 0 !important;
}
.sim-wrap {
    background: #222;
    padding: 25px;
    border-radius: 15px;
}
.sim-wrap .button.sim-button.single_add_to_cart_button.button.alt.wp-element-button {
    margin: 15px 0 0;
    background: #784bfd;
}

.sim-wrap .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sim-wrap .head img {
    flex: 0 1 0;
}
.tabs-content.esim-tab .tab-content:not(.active) {
    display: none;
}

.sim-wrap .head .flag {
    max-width: 45%;
    aspect-ratio: 3/2;
    object-fit: cover;
    background: #000;
}
.sim-wrap .head .empty-flag {
    width: 100%;
    max-width: 45%;
    height: 82px;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sim-wrap .head .qr {
    max-width: 130px;
    height: 130px;
    width: 130px;
    background: #000;
}

.sim-wrap ul {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.sim-wrap ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sim-wrap ul li span {
    font-size: 14px;
}
.sim-wrap .sim-button {
    display: block;
    margin-top: 30px;
    width: 100%;
}

.sim-usage {
    position: relative;
    height: 70px;
    width: 70px;
}

.sim-usage span {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 3px;
    left: 0;
    bottom: 0;
    right: 0;
}

.tabs-content.esim-tab {
    position: relative;
    min-height: 500px;
}

.tabs-content.esim-tab .fr-spinner::after {
    width: 70px !important;
    height: 70px !important;
    top: 140px !important;
}

.tabs-content.esim-tab .fr-spinner {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    min-height: 500px;
    height: 100% !important;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    opacity: 0.1;
} 
@media (max-width: 992px) {
    .tabs-head.esim-tab .tab {
        padding: 10px 10px;
        text-align: center;
    }
    
    .sim-wrap .head .flag {
        width: 110px;
    }
    
}


/** Top up popup **/
#topup-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

#topup-popup-content {
    background-color: #171717;
    padding: 30px;
    max-width: 800px;
    width: 95%;
    max-height: 90%;
    overflow: auto;
    border-radius: 15px;
}
#topup-popup-content h2 {
    margin-top: 0;
}
#topup-popup-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
#topup-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin: 30px 0 0;
}
.topup-option {
    padding: 15px;
    background: #000;
    border-radius: 8px;
}

.topup-option p {
    margin: 0;
}

.select-topup {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 0;
}
#topup-popup-close:hover,
#topup-popup-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#topup-popup .loading-progress {
    width: 100%;
    display: flex;
    justify-content: center;
    grid-column: 1/5;
    padding: 30px 0;
}

.topup-option button.select-topup.single_add_to_cart_button.button.alt.wp-element-button {
    margin: 10px 0 0;
    background: #784bfd;
}


.network-locations-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 300px;
    overflow: auto;
    margin: 20px 0;
}

.network-locations-wrap .location-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 190px;
}

.woocommerce div.product .woocommerce-tabs .panel .columns {
    background: #171717;
    padding: 30px 20px;
    border-radius: 8px;
}