/* Size Chart Modal */

#sizeChartModal .modal-dialog {
    max-width: 40rem;
}
#sizeChartModal .modal-title {
    font-size: 1rem;
    text-transform: uppercase;
}
@media screen and (min-width: 1200px) {
    #sizeChartModal .modal-title {
        font-size: 1.75rem;
    }
}
#sizeChartModal .modal-body {
    padding: 0.5rem 0 1rem;
}
@media screen and (min-width: 1200px) {
    #sizeChartModal .modal-body {
        padding: 0.75rem 0 2rem;
    }
}
@media screen and (min-width: 1200px) {
    #sizeChartModal .nav-link {
        font-size: 0.875rem;
    }
}
.size-chart-wrapper {
    margin-top: 1.5rem;
}
@media screen and (min-width: 1200px) {
    .size-chart-wrapper {
        margin-top: 2.5rem;
    }
}
.size-chart-wrapper h3 {
    font-size: 0.625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}
@media screen and (min-width: 1200px) {
    .size-chart-wrapper h3 {
        font-size: 1rem;
    }
}
.size-chart-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top left;
    border-radius: var(--cp-card-border-radius);
}

.unit-toggle-wrapper,
.size-chart-table-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media screen and (min-width: 1200px) {
    .unit-toggle-wrapper,
    .size-chart-table-wrapper {
        gap: 2rem;
    }
}

.unit-toggle-wrapper {
    margin-bottom: 0.5rem;
}
@media screen and (min-width: 1200px) {
    .unit-toggle-wrapper {
        margin-bottom: 0.75rem;
    }
}
.unit-toggle-wrapper .btn-group {
    --btn-height: 1.25rem;
    height: var(--btn-height);
    border-radius: 100vh !important;
    gap: 0.25rem;
    background-color: var(--cp-secondary-color-50);
}
@media screen and (min-width: 1200px) {
    .unit-toggle-wrapper .btn-group {
        --btn-height: 1.875rem;
    }
}
.unit-toggle-wrapper .btn-check:checked + .btn {
    background-color: var(--cp-primary-color-200);
}
.unit-toggle-wrapper label {
    height: var(--btn-height);
    width: var(--btn-height);
    border-radius: 0;
    border-radius: 50% !important;
    border: 0;
    padding: 0;
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cp-primary-color-600);
    display: grid;
    place-items: center;
}
@media screen and (min-width: 1200px) {
    .unit-toggle-wrapper label {
        font-size: 0.625rem;
    }
}
.size-chart-table {
    font-size: 0.5rem;
    color: var(--cp-primary-color-600);
    text-align: center;
}
@media screen and (min-width: 1200px) {
    .size-chart-table {
        font-size: 0.75rem;
    }
}
.size-chart-table .table {
    border: 1px solid var(--cp-primary-color-200);
    --bs-table-border-color: var(--cp-primary-color-200);
    border-radius: 8px;
    border-collapse: separate; /* Add this for border radius to work */
    border-spacing: 0; /*Remove spacing between cells */
    margin-bottom: 0;
    overflow: hidden;
}

.size-chart-table :is(th, td) {
    border: none;
    border-right: 1px solid var(--cp-primary-color-200);
}
.size-chart-table :is(th:last-child, td:last-child) {
    border-right: none;
}
.size-chart-table th {
    font-weight: 500;
    background-color: var(--cp-primary-color-100);
}
/* .measurement-guide {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.measurement-diagrams {
    gap: 2rem;
} */

/* .diagram-wrapper {
    flex: 0 0 40%;
} */

/* .diagram-wrapper img {
    width: 100%;
    height: auto;
}

.measurement-instructions {
    flex: 1;
} */

/* .measurement-instructions ul {
    list-style: none;
    padding: 0;
}

.measurement-instructions li {
    margin-bottom: 0.5rem;
} */

/* Size Chart Tabs */
/* #sizeChartTabs {
    margin-bottom: 1rem;
} */

/* .table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
} */

/* @media (max-width: 768px) {
    .measurement-diagrams {
        flex-direction: column;
    }

    .diagram-wrapper {
        flex: 0 0 100%;
    }
} */
/* END Size Chart Modal */

/* Container for the whole section */
/* .tab-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Plus Jakarta Sans", "Arial", sans-serif;
    gap: 10px;
}

.tab-content > * {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
} */

/* Toggle Switch */
/* .unit-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: hsla(0, 0%, 93%, 1);
    border-radius: 4rem; 
    width: 4.375rem;
    height: 2rem;
    left: 14%;
    overflow: hidden; 
}

.toggle-label {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsla(242, 97%, 12%, 1);
    cursor: pointer;
    position: relative;
    z-index: 2;
    
} */

/* .btn-check {
    display: none;
}

.toggle-slider {
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: hsla(259, 100%, 80%, 1);
    border-radius: 50%;
    transition: 0.1s ease;
    z-index: 1;
    left: 0;
} */

/* Move slider when 'CM' is selected */
/* #cm:checked ~ .toggle-slider {
    left: calc(100% - 2rem); 
} */

/* Highlight active label */
/* #inch:checked + .toggle-label {
    color: white;
}

#cm:checked + .toggle-label {
    color: white;
} */

/* Size Chart Content Layout */
/* .size-chart-content {
    display: flex;
    gap: 10px;
    align-items: center;
}
.size-chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsla(242, 97%, 12%, 1);
    margin-bottom: 20px;
} */
/* Size header and image */
/* .size-chart-header {
    position: relative;
    width: 50%;
}

.size-chart-header img {
    width: 100%;
} */

/* Measurement Labels */
/* .measurement-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.width-label,
.length-label {
    font-size: 12px;
    color: hsla(259, 100%, 90%, 1); 
    font-weight: bold;
} */

/* Size Table */
/* .size-table {
    width: 50%;
    height: 500px;
    border: 1px solid hsla(259, 100%, 80%, 1);
    border-radius: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    text-align: center;
}

.size-table th {
    background-color: hsla(259, 100%, 90%, 1);
    color: hsla(242, 97%, 12%, 1);
    padding: 10px;
}

.size-table td {
    
    padding: 8px;
}

.size-table tbody tr:nth-child {
    background-color: hsla(0, 0%, 100%, 1);
}

tr {
    flex: 1; 
}

th:not(:last-child),
td:not(:last-child) {
    border-right: 1px solid hsla(259, 100%, 80%, 1); 
} */
