/* Trip Semporna public site - Cart sidebar and cart page.
   Part of the public CSS: the files in assets/css/public/ load in name order (TRIPSEM_Public::assets()). */

.tsp .tsk-panel:focus, .tsp .tsk-panel:focus-visible, .tsp [tabindex="-1"]:focus { outline: none; }
/* Cart sidebar */
html.tsk-lock { overflow: hidden; scrollbar-gutter: stable; }
/* nothing moves behind the cart */
.tsk { position: fixed; inset: 0; z-index: 50; }
.tsk-dim { position: absolute; inset: 0; background: rgba(12, 12, 12, .35); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s ease; }
.tsk-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(420px, calc(100% - 20px)); background: #fff; border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(12, 12, 12, .45); transform: translateX(calc(100% + 24px)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); outline: none; }
@media (max-width: 480px) {
    .tsk-panel { top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.tsk.is-open .tsk-dim { opacity: 1; }
.tsk.is-open .tsk-panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .tsk-dim, .tsk-panel { transition: none; }
}
.tsk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; }
.tsp .tsk-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.tsk-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--tsp-yellow); font-size: .78rem; font-weight: 800; }
.tsk-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0f1f3; display: grid; place-items: center; cursor: pointer; color: var(--tsp-text); transition: background .2s, transform .2s; }
.tsk-x:hover { background: #e4e5e7; transform: rotate(90deg); }
.tsk-list { flex: 1; overflow-y: auto; padding: 0 20px 14px; display: grid; gap: 0; align-content: start; overscroll-behavior: contain; }
.tsk-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eceef1; transition: opacity .25s, transform .25s; }
.tsk-item:first-child { padding-top: 4px; }
.tsk-item:last-child { border-bottom: 0; }
.tsk-item.is-going { opacity: .35; transform: translateX(18px); }
.tsk-thumb { display: block; width: 68px; height: 68px; border-radius: 14px; overflow: hidden; background: #e5e6e8; flex: 0 0 auto; }
.tsk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsk-body { min-width: 0; }
.tsp .tsk-body h3 { margin: 0; font-size: .96rem; font-weight: 800; line-height: 1.3; }
.tsk-type { display: inline-block; padding: 2px 9px; border-radius: 99px; background: #fff6bf; font-size: .7rem; font-weight: 800; letter-spacing: .01em; }
/* Sidebar item (compact): name + price, then one line of facts with the Edit / Remove icons */
.tsk-item .tsk-thumb { width: 56px; height: 56px; border-radius: 12px; align-self: start; }
.tsk-top, .tsk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tsp .tsk-top h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.tsk-top .tsk-price { font-size: .92rem; }
.tsk-row { margin-top: 4px; }
.tsp .tsk-row .tsk-facts { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: .76rem; line-height: 1.4; }
.tsk-row .tsk-acts { flex: 0 0 auto; gap: 4px; }
.tsk-item .tsk-act.is-icon { width: 30px; height: 30px; background: #f4f5f7; }
.tsk-item .tsk-act.is-icon:hover { background: var(--tsp-yellow); }
.tsk-item .tsk-act.tsk-del.is-icon:hover { background: #fdecea; }
.tsk-item .tsk-act.is-icon .tsh-ico { width: 14px; height: 14px; }
.tsp .tsk-item .tsk-warn { margin-top: 6px; padding: 6px 9px; font-size: .76rem; }
.tsp .tsk-facts { margin: 6px 0 0; display: grid; gap: 1px; color: var(--tsp-muted); font-size: .8rem; }
.tsp .tsk-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fdecea; color: var(--tsp-red); font-size: .8rem; font-weight: 600; }
.tsk-line.has-error { box-shadow: inset 0 0 0 1.5px #f6c8c1; }
.tsk-item.has-error .tsk-thumb, .tsk-line.has-error .tsk-thumb { opacity: .5; }
.tsk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.tsk-price { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tsk-acts { display: flex; gap: 6px; }
.tsk-rm { margin: 0; }
/* Soft action buttons (no borders): Edit / Remove; .is-icon shows the icon only */
.tsk-act, .tsk-mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; color: var(--tsp-text) !important; font-family: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(12, 12, 12, .06); transition: background .2s, color .2s, transform .15s; }
.tsk-act:hover, .tsk-mini:hover { background: var(--tsp-yellow); transform: translateY(-1px); }
.tsk-act .tsh-ico, .tsk-mini .tsh-ico { width: 16px; height: 16px; }
.tsk-act.tsk-del { color: var(--tsp-red) !important; }
.tsk-act.tsk-del:hover { background: #fdecea; }
.tsk-act.is-icon { width: 36px; padding: 0; border-radius: 50%; }
.tsk-act.is-icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tsk-bottom { padding: 16px 20px 20px; display: grid; gap: 14px; background: #fff; box-shadow: 0 -12px 30px -18px rgba(12, 12, 12, .25); }
.tsk-sum { display: flex; justify-content: space-between; align-items: baseline; }
.tsk-sum span { color: var(--tsp-muted); font-weight: 600; }
.tsk-sum strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tsp .tsk-note { margin: -6px 0 0; font-size: .8rem; color: var(--tsp-muted); }
.tsk-btns { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.tsk-btns .tsp-btn { min-height: 50px; padding: 0 10px; border-radius: 14px; }
.tsk-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; gap: 4px; }
.tsk-empty > span { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff6bf; margin-bottom: 12px; }
.tsk-empty > span .tsh-ico { width: 28px; height: 28px; }
.tsp .tsk-empty h3 { margin: 0; font-size: 1.1rem; }
.tsp .tsk-empty p { margin: 0 0 18px; color: var(--tsp-muted); }
/* Cart page */
.tsk-page { padding-top: 32px; }
.tsk-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.tsp .tsk-page-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; }
.tsp .tsk-page-head p { margin: 2px 0 0; color: var(--tsp-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tsk-steps { list-style: none; margin: 0; padding: 5px; display: flex; gap: 4px; background: #fff; border-radius: 99px; box-shadow: 0 1px 2px rgba(12, 12, 12, .05); }
.tsk-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; font-size: .85rem; font-weight: 700; color: var(--tsp-muted); }
.tsk-steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edeef0; font-size: .75rem; }
.tsk-steps li.is-on { background: var(--tsp-black); color: var(--tsp-yellow); }
.tsk-steps li.is-on span { background: var(--tsp-yellow); color: var(--tsp-black); }
@media (max-width: 480px) {
    .tsk-steps { width: 100%; justify-content: space-between; }
    .tsk-steps li { padding-right: 10px; }
}
.tsk-grid { display: grid; gap: 22px; }
@media (min-width: 900px) {
    .tsk-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
    .tsk-summary { position: sticky; top: 100px; }
}
.tsk-lines { display: grid; gap: 14px; align-content: start; }
.tsk-line { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; background: #fff; border-radius: 24px; padding: 16px; box-shadow: 0 1px 2px rgba(12, 12, 12, .04), 0 12px 30px -18px rgba(12, 12, 12, .18); }
.tsk-line .tsk-thumb { width: 132px; height: 132px; border-radius: 18px; }
@media (max-width: 560px) {
    .tsk-line { gap: 12px; padding: 14px; border-radius: 20px; }
    .tsk-line .tsk-thumb { width: 76px; height: 76px; border-radius: 14px; }
}
.tsk-line-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tsp .tsk-line-top h2 { margin: 6px 0 0; font-size: 1.12rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.tsk-line-top h2 a { text-decoration: none; }
.tsk-line .tsk-price { font-size: 1.12rem; }
.tsk-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tsk-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #f4f5f7; font-size: .8rem; font-weight: 600; color: #4b4b45; }
.tsk-chips .tsh-ico { width: 14px; height: 14px; color: var(--tsp-muted); }
.tsk-lines-list { list-style: none; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #f8f9fb; display: grid; gap: 4px; font-size: .85rem; }
.tsk-lines-list li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.tsk-lines-list span { color: var(--tsp-muted); }
.tsk-line .tsk-foot { margin-top: 12px; }
.tsk-line .tsk-act { background: #f4f5f7; box-shadow: none; }
.tsk-line .tsk-act:hover { background: var(--tsp-yellow); }
.tsk-line .tsk-act.tsk-del:hover { background: #fdecea; }
.tsk-more { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(12, 12, 12, .05); transition: background .2s; }
.tsk-more:hover { background: #fff6bf; }
.tsk-more .tsh-ico { width: 16px; height: 16px; transform: rotate(180deg); }
.tsk-summary { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 1px 2px rgba(12, 12, 12, .04), 0 20px 44px -24px rgba(12, 12, 12, .25); display: grid; gap: 14px; }
.tsp .tsk-summary h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.tsk-sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.tsk-sum-list li { display: flex; justify-content: space-between; gap: 12px; }
.tsk-sum-list span { color: var(--tsp-muted); min-width: 0; overflow-wrap: anywhere; }
.tsk-sum-list b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tsk-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px dashed var(--tsp-line); }
.tsk-sum-total span { font-weight: 700; }
.tsk-sum-total strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tsk-go { min-height: 54px; border-radius: 16px; margin-top: 4px; }
.tsk-go .tsh-ico { width: 18px; height: 18px; }
@media (max-width: 560px) {
    /* Cart page on phones: title + price beside the picture, the rest of the card full width */
    .tsk-line { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
    .tsk-line .tsk-body { display: contents; }
    .tsk-line .tsk-line-top { flex-direction: column; gap: 4px; }
    .tsp .tsk-line-top h2 { margin-top: 4px; font-size: 1.02rem; }
    .tsk-line .tsk-chips, .tsk-line .tsk-lines-list, .tsk-line .tsk-warn, .tsk-line .tsk-foot { grid-column: 1 / -1; }
    .tsk-line .tsk-chips { margin-top: 0; }
    .tsk-line .tsk-lines-list, .tsk-line .tsk-foot { margin-top: 0; }
}
@media (min-width: 1240px) {
    .tsk-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; }
}
