/* Equipment rental step of the booking popup -- public_html/js/react/sessions/rental.jsx.
   It replaces #who_come's .body while shown; the header and hold clock stay. */

#who_come.popup .body.srt-wrap {display: flex; flex-direction: column; padding: 0; overflow: hidden; max-height: calc(100vh - 96px); }
/* measurements follow the Figma rental panel (pop_equipment_rental.css) */
.srt-wrap .srt-scroll {flex: 1 1 auto; min-height: 0; padding: 25px 35px 30px 30px; overflow-y: auto; }
.srt-wrap .srt-scroll::-webkit-scrollbar {width: 0; }

.srt-wrap .srt-back {display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 16px; color: #243D44; cursor: pointer; }
.srt-wrap .srt-back img {width: 7px; }
.srt-wrap .srt-title {margin: 20px 0 20px; font-size: 24px; font-weight: 700; line-height: 26px; color: #243D44; }

.srt-wrap .srt-label {margin-bottom: 10px; font-size: 16px; font-weight: 700; line-height: 22px; color: #243D44; }
.srt-wrap .srt-who {margin-bottom: 18px; }
.srt-wrap .srt-who-list {display: flex; flex-wrap: wrap; gap: 8px; }
.srt-wrap .srt-who-btn {height: 34px; padding: 0 16px; border: 1px solid #243D44; border-radius: 29px; background: #fff; font-size: 14px; font-weight: 500; line-height: 18px; color: #243D44; cursor: pointer; transition: background .2s, color .2s; }
.srt-wrap .srt-who-btn:hover,
.srt-wrap .srt-who-btn.selected {border-color: #38715E; background: #38715E; color: #fff; }
.srt-wrap .srt-badge {display: inline-block; min-width: 18px; height: 18px; margin-inline-start: 4px; border-radius: 9px; background: #C2EAEA; color: #243D44; font-size: 12px; line-height: 18px; text-align: center; }

.srt-wrap .srt-msg {margin-bottom: 14px; padding: 10px 14px; border-radius: 8px; background: #FDECEC; color: #B3261E; font-size: 14px; }

.srt-wrap .srt-list {display: flex; flex-direction: column; gap: 16px; transition: opacity .2s; }
.srt-wrap .srt-list.srt-busy {opacity: .6; pointer-events: none; }
.srt-wrap .srt-card {display: flex; min-height: 180px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 14px 0 rgba(0,0,0,0.10); }
.srt-wrap .srt-img {flex: 0 0 150px; background: #EEF1F2; }
/* the picture keeps the card's closed height: when a filter list or the results open
   the card grows, and a height of 100% would scale the cropped photo up with it.
   It stays at the top (sticky while the panel scrolls); below it, the grey strip. */
.srt-wrap .srt-img img {position: sticky; top: 0; display: block; width: 100%; height: 300px; max-height: 100%; object-fit: cover; }
/* the chosen item's photo: whole and centred on white, not cropped */
.srt-wrap .srt-img.srt-img-item {display: flex; align-items: center; justify-content: center; padding: 8px; background: #fff; }
.srt-wrap .srt-img.srt-img-item {align-items: flex-start; }
.srt-wrap .srt-img.srt-img-item img {position: sticky; top: 8px; height: auto; max-height: 300px; object-fit: contain; animation: srt-img-in .25s ease; }
@keyframes srt-img-in {from {opacity: 0; } to {opacity: 1; } }
.srt-wrap .srt-body {flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 15px 15px 18px; }
.srt-wrap .srt-head {display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srt-wrap .srt-name {margin: 0; font-size: 18px; font-weight: 700; line-height: 22px; color: #243D44; }
.srt-wrap .srt-price {font-size: 14px; color: #5B6B70; text-align: left; }
.srt-wrap .srt-price b {color: #243D44; }
.srt-wrap .srt-line {height: 1px; background: #D3D8DA; }

.srt-wrap .srt-chips {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* buttons follow the Figma rental popup (pop_equipment_rental.css .option-equipment):
   white + Deep Ocean border, Going Green #38715E when hovered / selected */
.srt-wrap .srt-chip,
.srt-wrap .srt-add {height: 30px; padding: 0 12px; border: 1px solid #243D44; border-radius: 29px; background: #fff; font-size: 14px; font-weight: 500; line-height: 18px; color: #243D44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .2s, color .2s; }
.srt-wrap .srt-add {flex: 0 0 auto; min-width: 58px; border-color: #D3D8DA; }
.srt-wrap .srt-chip:not(:disabled):hover,
.srt-wrap .srt-chip.selected,
.srt-wrap .srt-add.selected {border-color: #38715E; background: #38715E; color: #fff; }
.srt-wrap .srt-chip:disabled,
.srt-wrap .srt-add:disabled {border-color: #D3D8DA; color: #A9B3B6; cursor: not-allowed; text-decoration: line-through; }
.srt-wrap .srt-invalid {font-size: 13px; color: #B3261E; }

/* boards card: "בחרו גלשן" + free-only checkbox, three filter dropdowns, results */
.srt-wrap .srt-card-boards {min-height: 0; }
.srt-wrap .srt-badge-dark {background: #243D44; color: #fff; }
.srt-wrap .srt-row {display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srt-wrap .srt-row .srt-label {margin-bottom: 0; }
.srt-wrap .srt-check {display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 400; color: #243D44; cursor: pointer; white-space: nowrap; }
.srt-wrap .srt-check input {width: 16px; height: 16px; margin: 0; accent-color: #243D44; cursor: pointer; }

/* filter dropdowns: the same trigger / checkbox look as the חוגים page
   (lessonsRegister.css .instructor-dropdown-trigger, .instructor-checkbox) */
.srt-wrap .srt-filters {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.srt-wrap .srt-dd {display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; overflow: hidden; height: 40px; padding: 0 15px; border: 1px solid #243D44; border-radius: 29px; background: #fff; font-size: 14px; font-weight: 500; line-height: 18px; color: #243D44; cursor: pointer; transition: background .2s, border-color .2s; }
.srt-wrap .srt-dd:hover,
.srt-wrap .srt-dd.active {border-color: #38715E; background: #38715E; color: #fff; }
.srt-wrap .srt-dd:hover .srt-dd-arrow,
.srt-wrap .srt-dd.active .srt-dd-arrow {filter: brightness(0) invert(1); }
.srt-wrap .srt-dd.active .srt-badge-dark {background: #fff; color: #38715E; }
.srt-wrap .srt-dd-label {flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.srt-wrap .srt-dd-label-short {display: none; }
/* same size and layout as the גברים | נשים | ילדים row: three equal columns, centred */
.srt-wrap .srt-filters {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.srt-wrap .srt-dd {width: 100%; justify-content: center; }
.srt-wrap .srt-dd .srt-badge {flex: 0 0 auto; margin: 0; }
.srt-wrap .srt-dd-arrow {flex: 0 0 auto; width: 16px; height: 16px; transition: transform .2s; }
.srt-wrap .srt-dd.open .srt-dd-arrow {transform: rotate(180deg); }

.srt-wrap .srt-dd-list {padding: 15px; border: 1px solid #ddd; border-radius: 20px; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.srt-wrap .srt-dd-rows {max-height: 220px; overflow-y: auto; }
.srt-wrap .srt-dd-row {display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 0; font-size: 16px; font-weight: 400; color: #243D44; cursor: pointer; }
.srt-wrap .srt-dd-row input {flex: 0 0 auto; position: relative; width: 18px; height: 18px; margin: 0; border: 1.5px solid #243D44; border-radius: 4px; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.srt-wrap .srt-dd-row input:checked {border-color: #38715E; background: #38715E; }
.srt-wrap .srt-dd-row input:checked::after {content: ""; position: absolute; top: 1px; left: 4.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.srt-wrap .srt-dd-row input:checked + .srt-dd-value {font-weight: 700; }
.srt-wrap .srt-dd-value {flex: 1 1 auto; }
.srt-wrap .srt-dd-count {flex: 0 0 auto; font-size: 13px; color: #5B6B70; }
.srt-wrap .srt-dd-foot {display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #D3D8DA; }
.srt-wrap .srt-dd-show {height: 30px; padding: 0 14px; border: 1px solid #38715E; border-radius: 29px; background: #38715E; font-size: 14px; font-weight: 500; line-height: 18px; color: #fff; cursor: pointer; }
.srt-wrap .srt-link {padding: 0; border: 0; background: none; font-size: 14px; color: #243D44; text-decoration: underline; cursor: pointer; }
.srt-wrap .srt-clear-all {margin-top: -4px; text-align: left; }

.srt-wrap .srt-empty {display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px; text-align: center; font-size: 14px; color: #5B6B70; }
.srt-wrap .srt-empty b {font-size: 15px; color: #243D44; }

.srt-wrap .srt-results {display: flex; flex-direction: column; gap: 8px; }
.srt-wrap .srt-count {font-size: 12px; color: #5B6B70; }
/* board buttons: one fixed size (252 x 40px), not sized by the text. The longest label
   in the fleet ("Cabianca Candy Twin 5'10" - ₪80") is 198px in Almoni Medium 14px; the
   chosen one adds "לחצו להסרה" as a small second line, so the width never grows and
   fits the 255px card row of a 375px phone. One per row */
.srt-wrap .srt-boards {display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* "הצג עוד" (site setting "תצוגת פאנל השכרות"); list_more_scroll opens the rest in a scroller */
.srt-wrap .srt-boards.srt-boards-scroll {max-height: 320px; overflow-y: auto; }
.srt-wrap .srt-more {align-self: flex-start; width: 252px; max-width: 100%; height: 30px; margin-top: 2px; padding: 0 10px; border: 1px solid #38715E; border-radius: 29px; background: #fff; font-size: 14px; font-weight: 500; line-height: 18px; color: #38715E; cursor: pointer; transition: background .2s, color .2s; }
.srt-wrap .srt-more:hover {background: #38715E; color: #fff; }
.srt-wrap .srt-chip.srt-board {flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 252px; max-width: 100%; height: 40px; padding: 0 10px; }
.srt-wrap .srt-board-line {display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; line-height: 17px; }
.srt-wrap .srt-board-line > * {flex: 0 0 auto; }
.srt-wrap .srt-board .srt-board-name {flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the chosen board has a second line ("לחצו להסרה"): a fixed 40px clipped it whenever the
   first line was long ("Catch Surf Lost Soft 5'5"") */
.srt-wrap .srt-chip.srt-board.selected {height: auto; min-height: 52px; padding: 6px 10px; }
/* "לחצו להסרה" under the chosen board / size */
.srt-wrap .srt-rm {font-size: 11px; font-weight: 500; line-height: 13px; }

/* גברים | נשים | ילדים filter of the wetsuit card -- the same buttons as the boards
   card's filter row (.srt-filters / .srt-dd), full column width */
.srt-wrap .srt-types {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.srt-wrap .srt-type {display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; height: 40px; padding: 0 15px; border: 1px solid #243D44; border-radius: 29px; background: #fff; font-size: 14px; font-weight: 500; line-height: 18px; color: #243D44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.srt-wrap .srt-type:hover,
.srt-wrap .srt-type.selected {border-color: #38715E; background: #38715E; color: #fff; }

/* several wetsuit products in one card: each product's sizes under its name */
.srt-wrap .srt-size-group + .srt-size-group {margin-top: 12px; }
.srt-wrap .srt-empty-types {padding: 12px 8px 4px; }
.srt-wrap .srt-size-group-label {margin-bottom: 6px; font-size: 14px; font-weight: 500; line-height: 18px; color: #5B6B70; }

/* wetsuit / helmet / booties sizes: four in a row, a size with nothing free greyed out */
.srt-wrap .srt-chips.srt-chips-sizes {grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
/* same proportions as the board filter dropdowns (.srt-dd) */
.srt-wrap .srt-chips-sizes .srt-chip {display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 40px; padding: 0 4px; line-height: 17px; }
.srt-wrap .srt-chips-sizes .srt-chip:disabled {border-color: #D3D8DA; background: #EEF1F2; text-decoration: none; }
.srt-wrap .srt-help {display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 0; border: 0; background: none; font-size: 14px; color: #243D44; text-align: right; text-decoration: underline; cursor: pointer; }
.srt-wrap .srt-help img {flex: 0 0 auto; width: 16px; height: 16px; }

/* size guide popup, over the rental panel */
.srt-wrap {position: relative; }
.srt-wrap .srt-guide {position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(36,61,68,0.45); }
.srt-wrap .srt-guide-box {position: relative; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; padding: 28px 24px 24px; border-radius: 10px; background: #fff; box-shadow: 0 0 14px 0 rgba(0,0,0,0.10); color: #243D44; }
.srt-wrap .srt-guide-close {position: absolute; top: 10px; left: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #EEF1F2; font-size: 32px; font-weight: 300; line-height: 44px; color: #243D44; cursor: pointer; }
.srt-wrap .srt-guide-title {margin: 0 0 14px; padding-left: 50px; min-height: 44px; display: flex; align-items: center; font-size: 20px; font-weight: 700; line-height: 24px; }
.srt-wrap .srt-guide-body {font-size: 15px; line-height: 1.5; }
.srt-wrap .srt-guide-body h4 {margin: 16px 0 6px; font-size: 16px; font-weight: 700; color: #243D44; }
.srt-wrap .srt-guide-body p {margin: 0 0 8px; }
.srt-wrap .srt-guide-body ul {margin: 0 0 8px; padding-inline-start: 18px; }
.srt-wrap .srt-guide-body li {margin-bottom: 4px; }
.srt-wrap .srt-guide-body small {font-size: 12px; color: #5B6B70; }
.srt-wrap .srt-guide-body table {width: 100%; margin: 4px 0; border-collapse: collapse; font-size: 14px; }
.srt-wrap .srt-guide-body th,
.srt-wrap .srt-guide-body td {padding: 6px 8px; border-bottom: 1px solid #D3D8DA; text-align: right; }
.srt-wrap .srt-guide-body td[dir="ltr"] {text-align: right; unicode-bidi: isolate; }
.srt-wrap .srt-guide-body th {font-weight: 700; background: #EEF1F2; }

/* rental agreement: the text scrolls, the signature stays under it */
.srt-wrap .srt-agree .srt-guide-box {display: flex; flex-direction: column; max-width: 560px; overflow: hidden; }
.srt-wrap .srt-agree-text {flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding-left: 4px; }
.srt-wrap .srt-agree-sign {flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #D3D8DA; }
.srt-wrap .srt-agree-label {margin: 0; font-size: 14px; font-weight: 700; line-height: 18px; color: #243D44; }
.srt-wrap .srt-agree-input {height: 40px; padding: 0 14px; border: 1px solid #243D44; border-radius: 29px; background: #fff; font-size: 16px; color: #243D44; }
.srt-wrap .srt-agree-input:focus {outline: none; border-color: #38715E; box-shadow: 0 0 0 2px rgba(56,113,94,0.2); }
.srt-wrap .srt-agree-check {display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; line-height: 18px; color: #243D44; cursor: pointer; }
.srt-wrap .srt-agree-check input {flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #38715E; }
.srt-wrap .srt-agree-btn {align-self: stretch; height: 41px; margin: 0; border-radius: 29px; background: #243D44; font-size: 16px; font-weight: 500; color: #fff; }
.srt-wrap .srt-agree-btn:disabled {opacity: .5; cursor: not-allowed; }
.srt-wrap .srt-agree-note {font-size: 12px; line-height: 16px; color: #5B6B70; }

.srt-wrap .srt-foot {flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 0 40px; background: #fff; box-shadow: 0 0 14px 0 rgba(0,0,0,0.10); }
.srt-wrap .srt-sum {font-size: 18px; font-weight: 500; line-height: 22px; color: #243D44; }
.srt-wrap .srt-sum b {font-weight: 700; }
.srt-wrap .srt-continue {flex: 0 0 auto; min-width: 165px; height: 41px; margin: 0; border-radius: 29px; background: #243D44; font-size: 16px; font-weight: 500; color: #fff; }
.srt-wrap .srt-continue:disabled {opacity: .6; }

@media (max-width: 768px) {
    /* the hold clock sits under the header on mobile */
    #who_come.popup .body.srt-wrap {max-height: calc(100dvh - 140px); }
    .srt-wrap .srt-scroll {padding: 16px 16px 24px; }
    .srt-wrap .srt-title {font-size: 18px; line-height: 22px; }
    .srt-wrap .srt-card {min-height: 150px; }
    .srt-wrap .srt-img {flex-basis: 64px; }
    .srt-wrap .srt-img img {height: 240px; }
    .srt-wrap .srt-img.srt-img-item img {height: auto; max-height: 240px; }
    .srt-wrap .srt-body {padding: 12px 12px 14px; }
    .srt-wrap .srt-row {flex-wrap: wrap; }
    /* three equal columns as on desktop (= the גברים | נשים | ילדים row). On a 375px phone a
       third is ~77px: an active "סוג גלשן" + badge + arrow needs ~90px, so it shows "סוג" */
    .srt-wrap .srt-filters {grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .srt-wrap .srt-dd.active .srt-dd-label-full {display: none; }
    .srt-wrap .srt-dd.active .srt-dd-label-short {display: inline; }
    .srt-wrap .srt-dd {gap: 3px; height: 36px; padding: 0 6px; font-size: 14px; }
    .srt-wrap .srt-dd .srt-badge {min-width: 16px; height: 16px; font-size: 11px; line-height: 16px; }
    .srt-wrap .srt-dd-arrow {width: 10px; height: 10px; }
    .srt-wrap .srt-types {gap: 6px; }
    .srt-wrap .srt-type {height: 36px; padding: 0 6px; }
    .srt-wrap .srt-boards.srt-boards-scroll {max-height: 280px; }
    .srt-wrap .srt-name {font-size: 16px; }
    .srt-wrap .srt-chips {grid-template-columns: minmax(0, 1fr); }
    /* sizes share the row: up to 4 per row, each at most a third of it, so S / M / L fill
       the row evenly instead of leaving an empty fourth column */
    .srt-wrap .srt-chips.srt-chips-sizes {display: flex; flex-wrap: wrap; gap: 8px; }
    .srt-wrap .srt-chips-sizes .srt-chip {flex: 1 1 calc(25% - 6px); max-width: calc(33.333% - 6px); height: 40px; padding: 0 4px; }
    .srt-wrap .srt-guide {padding: 12px; }
    .srt-wrap .srt-guide-box {padding: 24px 16px 18px; }
    .srt-wrap .srt-foot {flex-direction: column; align-items: stretch; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .srt-wrap .srt-sum {text-align: center; }
}
