.size-selector-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid #222;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.size-selector-trigger__label {
    flex: 1;
    text-align: center;
}

.size-selector-trigger__icon {
    margin-left: 8px;
}

.size-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    display: none;
}

.size-sheet-overlay.is-open {
    display: block;
}

.size-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 201;
    padding: 12px 16px 32px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.size-sheet.is-open {
    transform: translateY(0);
}

.size-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    /* zawsze widoczny — nie ściska się i nie przewija razem z listą */
    flex: none;
}

.size-sheet__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 22px;
    line-height: 1;
    color: #555;
}

/* [BHPPA-49] Lista rozmiarów jeden pod drugim — analogicznie jak na desktop.
   To ona się przewija (nie cały sheet), żeby nagłówek z X został na górze. */
.size-sheet__grid {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.size-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px 8px;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    font-size: 14px;
    text-align: left;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.size-tile__value {
    font-weight: 500;
}

/* niedostępny rozmiar wyszarzony (jak na desktop) */
.size-tile--unavailable .size-tile__value {
    color: #909090;
    font-weight: 400;
}

.size-tile--selected {
    border-color: #e30613;
    background: rgba(225, 9, 17, 0.08);
    color: #000;
    font-weight: 700;
}

/* "Powiadom o dostępności" po prawej — pogrubione, bez tła (jak na desktop) */
.size-tile__badge {
    flex: none;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

body.size-sheet-no-scroll {
    overflow: hidden;
}
