/* Trigger button */
.wsg-trigger{
    display:inline-flex !important;
    align-items:center !important;
    gap:14px !important;
    background:transparent !important;
    border:none !important;
    padding:10px 0 !important;
    margin-top:12px !important;
    cursor:pointer !important;
    box-shadow:none !important;
    text-align:left !important;
    width:auto !important;
    max-width:100% !important;
    line-height:1 !important;
}
.wsg-trigger:hover,
.wsg-trigger:focus{
    background:transparent !important;
    outline:none !important;
    box-shadow:none !important;
}
.wsg-trigger-icon{
    width:50px !important;
    height:50px !important;
    min-width:50px !important;
    border-radius:50% !important;
    background:#e9e9e9 !important;
    color:#4b4b4b !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 50px !important;
}
.wsg-trigger-icon svg{
    width:24px !important;
    height:24px !important;
}
.wsg-trigger-text{
    display:inline-block !important;
    font-size:18px !important;
    line-height:1.2 !important;
    font-weight:500 !important;
    color:#2b2b2b !important;
    text-decoration:underline !important;
    text-underline-offset:4px !important;
    white-space:nowrap !important;
}

/* keep inside product summary */
.single-product .wsg-trigger,
.woocommerce div.product form.cart .wsg-trigger,
.woocommerce-variation-add-to-cart .wsg-trigger{
    clear:both !important;
}

/* Popup */
.wsg-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:99999;
}
.wsg-modal.active{
    display:block;
}
.wsg-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}
.wsg-modal-box{
    position:relative;
    width:92%;
    max-width:1180px;
    max-height:90vh;
    overflow:auto;
    background:#fff;
    margin:3vh auto;
    padding:28px 32px 32px;
    z-index:2;
    box-sizing:border-box;
}
.wsg-close{
    position:absolute;
    top:12px;
    right:16px;
    border:none;
    background:none;
    font-size:34px;
    line-height:1;
    cursor:pointer;
    color:#111;
    padding:0;
}
.wsg-title{
    text-align:center;
    margin:0 0 26px;
    font-size:22px;
    font-weight:700;
    color:#2c2c2c;
    letter-spacing:0;
    text-transform:none;
}

/* Tabs */
.wsg-tabs{
    display:flex;
    gap:26px;
    flex-wrap:wrap;
    align-items:flex-end;
    border-bottom:1px solid #ddd;
    padding-bottom:14px;
    margin-bottom:24px;
}
.wsg-tab{
    border:none !important;
    background:none !important;
    padding:0 0 10px !important;
    font-size:13px !important;
    font-weight:600 !important;
    color:#9a9a9a !important;
    position:relative !important;
    cursor:pointer !important;
    line-height:1.2 !important;
    box-shadow:none !important;
    white-space:nowrap !important;
    border-radius:0 !important;
}
.wsg-tab:hover,
.wsg-tab:focus{
    background:none !important;
    color:#666 !important;
    outline:none !important;
    box-shadow:none !important;
}
.wsg-tab.active{
    color:#222 !important;
}
.wsg-tab.active:after{
    content:"";
    position:absolute;
    left:0;
    bottom:-15px;
    width:100%;
    height:3px;
    background:#111;
}

/* Unit Toggle */
.wsg-unit-toggle{
    display:flex;
    justify-content:center;
    margin-bottom:18px;
}
.wsg-unit{
    border:none !important;
    background:#e5e5e5 !important;
    color:#9a9a9a !important;
    padding:7px 18px !important;
    font-size:12px !important;
    font-weight:700 !important;
    cursor:pointer !important;
    line-height:1.2 !important;
    box-shadow:none !important;
}
.wsg-unit:hover,
.wsg-unit:focus{
    background:#d9d9d9 !important;
    outline:none !important;
}
.wsg-unit:first-child{border-radius:20px 0 0 20px !important;}
.wsg-unit:last-child{border-radius:0 20px 20px 0 !important;}
.wsg-unit.active{
    background:#cfcfcf !important;
    color:#1f1f1f !important;
}

.wsg-tab-content{
    display:none;
}
.wsg-tab-content.active{
    display:block;
}
.wsg-table-wrap{
    overflow-x:auto;
}
.wsg-table{
    width:100%;
    min-width:760px;
    border-collapse:collapse;
    display:none;
}
.wsg-table.active{
    display:table;
}
.wsg-table th{
    background:#000;
    color:#fff;
    padding:16px 12px;
    border:1px solid #d3d3d3;
    text-align:center;
    font-size:14px;
}
.wsg-table td{
    padding:16px 12px;
    border:1px solid #d3d3d3;
    text-align:center;
    font-size:14px;
    color:#333;
}
.wsg-table tbody tr:nth-child(odd){
    background:#f6f6f6;
}
.wsg-table tbody tr:nth-child(even){
    background:#ececec;
}
.wsg-table td:first-child,
.wsg-table th:first-child{
    min-width:190px;
    font-weight:600;
}

/* How to measure */
.wsg-measure{
    margin-top:34px;
    padding-top:26px;
    border-top:1px solid #ddd;
}
.wsg-measure h3{
    text-align:center;
    font-size:28px;
    margin:0 0 18px;
}
.wsg-measure-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px 22px;
}
.wsg-measure-grid > div{
    border:1px solid #e3e3e3;
    background:#fafafa;
    border-radius:6px;
    padding:16px;
}
.wsg-measure-grid strong{
    display:block;
    margin-bottom:8px;
    color:#111;
    font-size:14px;
}
.wsg-measure-grid p{
    margin:0;
    font-size:14px;
    line-height:1.7;
    color:#555;
}

@media (max-width:767px){
    .wsg-trigger{
        gap:12px !important;
        margin-top:10px !important;
    }
    .wsg-trigger-icon{
        width:46px !important;
        height:46px !important;
        min-width:46px !important;
        flex:0 0 46px !important;
    }
    .wsg-trigger-text{
        font-size:17px !important;
    }
    .wsg-modal-box{
        width:95%;
        padding:22px 14px 24px;
    }
    .wsg-title{
        font-size:20px;
    }
    .wsg-tabs{
        gap:14px;
    }
    .wsg-measure-grid{
        grid-template-columns:1fr;
    }
    .wsg-table th,
    .wsg-table td{
        font-size:13px;
        padding:12px 8px;
    }
}
