/* SRFT-1058 camp add-ons: block in the camp participant card (addons.jsx) and the
   add / cancel buttons in the personal area. Site palette only. */
.camp-cart .cad {margin: 0 0 10px;}
.camp-cart .cad-title {margin: 0 0 15px;}
.camp-cart .cad-addon {margin-bottom: 12px; border: 1px solid #D3D8DA; border-radius: 10px; background: #fff;}
.camp-cart .cad-addon.on {border-color: #243D44; background: #F7F7F7;}
.camp-cart .cad-head {display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer; user-select: none;}
.camp-cart .cad-head:focus-visible {outline: 2px solid #243D44; outline-offset: 2px; border-radius: 10px;}
.camp-cart .cad-box {flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border: 1px solid #243D44; border-radius: 6px; background: #fff; position: relative;}
.camp-cart .cad-addon.on .cad-box {background: #243D44;}
.camp-cart .cad-addon.on .cad-box::after {content: ''; position: absolute; top: 4px; right: 7px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);}
.camp-cart .cad-txt {flex: 1; min-width: 0;}
.camp-cart .cad-name {display: block; font-family: 'Almoni Bold'; font-weight: 700; color: #243D44; font-size: 1.05em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.camp-cart .cad-row {display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: 3px;}
.camp-cart .cad-desc {min-width: 0; color: #545F64; font-size: .95em; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere;}
.camp-cart .cad-price {flex: 0 0 auto; font-family: 'Almoni Bold'; font-weight: 700; color: #243D44; white-space: nowrap;}
.camp-cart .cad-price small {font-family: 'Almoni Medium'; font-weight: 500; color: #545F64; font-size: .85em;}
.camp-cart .cad-body {padding: 0 16px 14px;}
.camp-cart .cad-days {display: flex; flex-wrap: nowrap; gap: 6px;}
/* a day box is always one fifth of the row, whatever the number of days */
.camp-cart .cad-day {flex: 0 0 calc((100% - 24px) / 5); max-width: calc((100% - 24px) / 5); min-width: 0; height: auto; margin: 0; padding: 8px 2px 7px; border: 1px solid #D3D8DA; border-radius: 10px; background: #fff; color: #545F64; font-size: .95em; line-height: 1.15; text-align: center; white-space: nowrap; cursor: pointer;}
.camp-cart .cad-day b {display: block; font-family: 'Almoni Bold';}
.camp-cart .cad-day i {display: block; width: 18px; height: 18px; margin: 0 auto 4px; border: 1px solid #D3D8DA; border-radius: 50%; box-sizing: border-box; background: #fff;}
.camp-cart .cad-day.on {border-color: #243D44; color: #243D44;}
.camp-cart .cad-day.on i {border: 0; background: url(/images/check_green.svg) center / 18px 18px no-repeat;}
.camp-cart .cad-hint {margin-top: 8px; color: #545F64; font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.camp-cart .cad-line {display: flex; justify-content: space-between; margin-top: 10px; color: #545F64; font-size: .95em;}
.camp-cart .cad-line b {color: #243D44; font-family: 'Almoni Bold';}
.camp-cart .cad-sum {margin-top: 25px; padding: 14px 18px; border-radius: 10px; background: #F7F7F7; font-size: .98em;}
.camp-cart .cad-sum > div {display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: #243D44;}
.camp-cart .cad-sum > div span:last-child {white-space: nowrap; font-family: 'Almoni Bold';}
.camp-cart .cad-sum .cad-who {font-family: 'Almoni Bold'; padding-top: 0;}
@media (max-width: 420px) {
    .camp-cart .cad-head {padding: 12px; gap: 10px;}
    .camp-cart .cad-body {padding: 0 12px 12px;}
    .camp-cart .cad-day {font-size: .9em;}
}
@media (max-width: 380px) {.camp-cart .cad-row {gap: 4px;}}

/* Personal area, desktop table: when camp add-on buttons are on the page, every
   button gets a fixed width and the cell lines them up from the left edge. */
.orders_table:has(.cad-slot) td.cancel_btn {white-space: nowrap; text-align: left;}
.orders_table:has(.cad-slot) td.cancel_btn .btn {box-sizing: border-box; margin: 3px; vertical-align: middle; justify-content: center;}
.orders_table:has(.cad-slot) td.cancel_btn .cad-slot,
.orders_table:has(.cad-slot) td.cancel_btn .guidance_add,
.orders_table:has(.cad-slot) td.cancel_btn .guidance_cancel {display: inline-flex; width: 180px;}
.orders_table:has(.cad-slot) td.cancel_btn .cancel_session {display: inline-flex; width: 80px;}

/* Add / cancel buttons: the look of the guidance buttons (_tickets_table.php) without
   their classes -- .guidance_add / .guidance_cancel have page-wide click handlers that
   open the guidance popups, which stacked on top of ours. */
.orders_table .cad-add, .orders_table .cad-cancel,
.orders.mobile .cad-add, .orders.mobile .cad-cancel {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap; padding: 8px 18px; border-radius: 30px; font-size: 14px;
    line-height: 1.2; cursor: pointer; border: 1px solid #243d44;
    transition: opacity .15s, background .15s;
}
.cad-add.btn {background: #243d44; color: #fff;}
.cad-add.btn:hover {opacity: .9; color: #243d44; background: #fff; border-color: #243d44;}
.cad-cancel.btn {background: #fff; color: #243d44;}
.cad-cancel.btn:hover {background: #f3f3f3; color: #243d44;}
.cad-add.loading, .cad-cancel.loading {opacity: .6; pointer-events: none;}

/* "פרטים" link on an add-on card + the sheet it opens (full text of the catalog product).
   The sheet is rendered on <body>, so its rules are not under .camp-cart. */
.camp-cart .cad-more {display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; padding: 0; border: 0; background: none; color: #243D44; font-size: .95em; line-height: 1.3; cursor: pointer;}
.camp-cart .cad-more span {text-decoration: underline; text-underline-offset: 3px;}
.camp-cart .cad-more svg {flex: 0 0 15px;}
.camp-cart .cad-more:focus-visible {outline: 2px solid #243D44; outline-offset: 2px;}
body.cad-sheet-open {overflow: hidden;}
.cad-sheet-bg {position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(36, 61, 68, .45);}
.cad-sheet {position: relative; box-sizing: border-box; width: 420px; max-width: calc(100% - 32px); max-height: 85vh; overflow-y: auto; padding: 18px 20px 22px; border-radius: 16px; background: #fff; color: #243D44; font-family: 'Almoni Medium'; font-size: 17px; line-height: 1.45; text-align: start;}
.cad-sheet-grip {display: none;}
.cad-sheet-head {display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;}
.cad-sheet-head b {font-family: 'Almoni Bold'; font-weight: 700; font-size: 1.1em;}
.cad-sheet-x {flex: 0 0 28px; width: 28px; height: 28px; margin: -2px; padding: 0; border: 0; background: none; position: relative; cursor: pointer;}
.cad-sheet-x::before, .cad-sheet-x::after {content: ''; position: absolute; top: 13px; left: 6px; width: 16px; height: 2px; background: #545F64; border-radius: 1px;}
.cad-sheet-x::before {transform: rotate(45deg);}
.cad-sheet-x::after {transform: rotate(-45deg);}
.cad-sheet-sub {margin-top: 2px; color: #545F64; font-size: .9em;}
.cad-sheet-body {margin-top: 12px; padding-top: 12px; border-top: 1px solid #ECECEC;}
/* the editor's text (CMS → מוצרים → תיאור ארוך), cleaned to basic tags */
.cad-sheet-html p {margin: 0 0 10px;}
.cad-sheet-html ul, .cad-sheet-html ol {margin: 0 0 10px; padding-inline-start: 20px;}
.cad-sheet-html li {margin-bottom: 4px;}
.cad-sheet-html > :last-child {margin-bottom: 0;}
.cad-sheet-html b, .cad-sheet-html strong {font-family: 'Almoni Bold'; font-weight: 700;}
.cad-sheet-html a {color: #243D44; text-decoration: underline; text-underline-offset: 3px;}
@media (max-width: 600px) {
    .cad-sheet-bg {align-items: flex-end;}
    .cad-sheet {width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));}
    .cad-sheet-grip {display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: #D3D8DA;}
}
