.def-tailles-wrapper {
    margin: 1rem 0;
}

.def-tailles-trigger {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.def-tailles-trigger:hover,
.def-tailles-trigger:focus {
    text-decoration: none;
}

.def-tailles-format-control {
    position: relative;
    display: inline-flex;
    margin-left: .5rem;
    vertical-align: middle;
}

.def-tailles-format-toggle {
    position: relative;
    width: auto;
    min-width: 4.25rem;
    min-height: 2rem;
    padding: .15rem 1.75rem .15rem .65rem;
    border: 1px solid #9ca3af;
    border-radius: .25rem;
    background: #fff;
    color: #33383c;
    font-size: .8125rem;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.def-tailles-format-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: .6rem;
    width: .45rem;
    height: .45rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
}

.def-tailles-format-toggle:focus {
    outline: 2px solid #9ec5fe;
    outline-offset: 2px;
}

.def-tailles-format-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + .2rem);
    left: 0;
    min-width: 100%;
    border: 1px solid #9ca3af;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
}

.def-tailles-format-menu[hidden] {
    display: none;
}

.def-tailles-format-option {
    display: block;
    width: 100%;
    padding: .3rem .65rem;
    border: 0;
    background: #fff;
    color: #33383c;
    font-size: .8125rem;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.def-tailles-format-option:hover,
.def-tailles-format-option:focus,
.def-tailles-format-option[aria-selected="true"] {
    background: #dbeafe;
    outline: none;
}

.def-tailles-modal {
    z-index: 10050;
}

.def-tailles-modal + .modal-backdrop,
.modal-backdrop.def-tailles-backdrop {
    z-index: 1;
}

.def-tailles-modal .modal-body img {
    max-width: 100%;
    height: auto;
}

.def-tailles-modal .table-responsive {
    width: 100%;
}

.def-tailles-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.def-tailles-table th,
.def-tailles-table td {
    padding: .75rem 1rem;
    border: 1px solid #d3d3d3;
    text-align: center;
    white-space: nowrap;
}

.def-tailles-table th {
    background: #f4f3f2;
    font-weight: 600;
}

.def-tailles-table tbody tr:nth-child(even) td {
    background: #f8f8f7;
}

body.modal-open:has(#def-tailles-modal.show) {
    overflow: auto !important;
    padding-right: 0 !important;
}
