/**
 * XWB Product Size Chart
 * Frontend component styles
 */

/* =========================================================
   Component container
   ========================================================= */

.xwb-sizechart {
    clear: both;
    width: 100%;
    margin: 30px 0 20px;
    color: #484F56;
    font-family: inherit;
}

/* =========================================================
   Section title
   ========================================================= */

.xwb-sizechart .xwb-sizechart-title {
    margin: 0 0 5px;
    padding: 0;
    color: #484F56;
    font-family: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.xwb-sizechart .xwb-sizechart-subtitle strong {
    color: inherit;
    font-weight: 600;
}

/* =========================================================
   Section subtitle
   ========================================================= */

.xwb-sizechart .xwb-sizechart-subtitle {
    margin: 0 0 14px;
    padding: 0;
    color: #747A80;
    font-family: inherit;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.78;
}

/* =========================================================
   Responsive table wrapper
   ========================================================= */

.xwb-sizechart .xwb-sizechart-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #DAD5CE;
    background-color: #FFFFFF;
    -webkit-overflow-scrolling: touch;
}

/* =========================================================
   Table reset and layout
   ========================================================= */

.xwb-sizechart table.xwb-sizechart-table {
    width: 100%;
    min-width: 480px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #FFFFFF;
    color: #484F56;
    font-family: inherit;
    table-layout: auto;
}

.xwb-sizechart table.xwb-sizechart-table th,
.xwb-sizechart table.xwb-sizechart-table td {
    height: auto;
    padding: 16px 18px;
    border: 0;
    border-right: 1px solid #DAD5CE;
    border-bottom: 1px solid #DAD5CE;
    color: inherit;
    font-family: inherit;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* Elimină marginea din dreapta ultimei coloane */

.xwb-sizechart table.xwb-sizechart-table tr > *:last-child {
    border-right: 0;
}

/* Elimină marginea de jos a ultimului rând */

.xwb-sizechart table.xwb-sizechart-table tbody tr:last-child > * {
    border-bottom: 0;
}

/* =========================================================
   Table header
   ========================================================= */

.xwb-sizechart table.xwb-sizechart-table thead th {
    background-color: #F0EEEA;
    color: #484F56;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* =========================================================
   Size column
   ========================================================= */

.xwb-sizechart table.xwb-sizechart-table tbody th {
    background-color: #FBFAF9;
    color: #484F56;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* =========================================================
   Measurement values
   ========================================================= */

.xwb-sizechart table.xwb-sizechart-table tbody td {
    background-color: #FFFFFF;
    color: #484F56;
    font-size: 14px;
    font-weight: 400;
}

/* =========================================================
   Mobile
   ========================================================= */

@media screen and (max-width: 767px) {
    .xwb-sizechart {
        margin-top: 24px;
    }

    .xwb-sizechart .xwb-sizechart-title {
        font-size: 12px;
    }

    .xwb-sizechart .xwb-sizechart-subtitle {
        font-size: 13px;
    }

    .xwb-sizechart table.xwb-sizechart-table th,
    .xwb-sizechart table.xwb-sizechart-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* =========================================================
   Responsive fit: tablet + mobile
   Keep the complete chart inside the product content width.
   ========================================================= */

@media screen and (max-width: 1024px) {
    .xwb-sizechart .xwb-sizechart-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .xwb-sizechart table.xwb-sizechart-table {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        table-layout: fixed;
    }

    .xwb-sizechart table.xwb-sizechart-table th,
    .xwb-sizechart table.xwb-sizechart-table td {
        padding: 11px 8px;
        font-size: 12px;
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    .xwb-sizechart table.xwb-sizechart-table tr > *:first-child {
        width: 29%;
    }
}

@media screen and (max-width: 767px) {
    .xwb-sizechart table.xwb-sizechart-table th,
    .xwb-sizechart table.xwb-sizechart-table td {
        padding: 10px 5px;
        font-size: 11.5px;
        line-height: 1.3;
    }
}

@media screen and (max-width: 374px) {
    .xwb-sizechart table.xwb-sizechart-table th,
    .xwb-sizechart table.xwb-sizechart-table td {
        padding: 9px 4px;
        font-size: 11px;
    }
}
