/* Cab Services Terms & Conditions — the link on each package, the
   "By continuing…" line and the popup. Content and behaviour: transport-terms.js */

html.tt-lock{overflow:hidden}

/* ===== Links ===== */
.tt-link{display:inline;padding:0;border:0;background:none;color:var(--brand,#ae1022);font-family:inherit;font-weight:600;font-size:12px;line-height:1.4;text-decoration:none;cursor:pointer;transition:color .15s}
.tt-link:hover{color:var(--brand-dark,#8e0b1a)}
.tt-link:focus-visible{outline:0;border-radius:4px;box-shadow:0 0 0 3px rgba(174,16,34,.25)}
/* ===== "By continuing, you agree to the … Terms & Conditions" + checkbox ===== */
.tt-consent{display:grid;gap:6px;margin:16px 0 12px;padding:13px 16px;border:1.5px solid #e6eaf0;border-radius:14px;background:#fafbfc;transition:border-color .2s,background-color .2s}
.tt-consent-box{display:flex;align-items:flex-start;gap:12px;cursor:pointer}
.tt-consent.locked .tt-consent-box{cursor:not-allowed}
.tt-consent input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);opacity:0}
.tt-check{position:relative;display:grid;place-items:center;flex:0 0 auto;width:22px;height:22px;margin-top:1px;border:2px solid #b9c2cf;border-radius:7px;background:#fff;transition:background-color .15s,border-color .15s,box-shadow .15s}
.tt-check:after{content:'';width:10px;height:6px;margin-top:-2px;border-left:2.5px solid #fff;border-bottom:2.5px solid #fff;transform:rotate(-45deg) scale(0);transition:transform .15s}
.tt-consent input:checked+.tt-check{border-color:var(--brand,#ae1022);background:var(--brand,#ae1022)}
.tt-consent input:checked+.tt-check:after{transform:rotate(-45deg) scale(1)}
.tt-consent input:disabled+.tt-check{border-color:#d3d9e1;background:#f0f2f5}
.tt-consent input:focus-visible+.tt-check{box-shadow:0 0 0 4px rgba(174,16,34,.22)}
.tt-consent:not(.locked):not(.accepted){border-color:#efc4ca;background:#fdf6f7}
.tt-consent.accepted{border-color:#c5e8d3;background:#f2faf6}
.tt-consent-text{color:#4b5a6c;font-size:13.5px;line-height:1.55}
.tt-consent .tt-link{font-size:13.5px}
.tt-consent small{margin-left:34px;color:#8a95a4;font-size:12px;line-height:1.45}
.tt-consent:not(.locked) small{color:#a05a64}
.tt-consent.accepted small{color:#1d6b43}
.tt-consent.needs{border-color:var(--brand,#ae1022);background:#fdf1f2;animation:ttShake .45s ease}
@keyframes ttShake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}

/* Continue to Review, until the terms are accepted */
.transport-checkout-bar .pay.tt-blocked{opacity:.55;box-shadow:none;filter:grayscale(.25)}
.transport-checkout-bar .pay.tt-blocked:hover{opacity:.7}

/* ===== Popup ===== */
.tt-modal{width:min(720px,calc(100% - 24px));max-height:90vh;padding:0;border:0;border-radius:20px;background:#fff;color:var(--ink,#202a38);box-shadow:0 30px 90px rgba(20,26,34,.35);overflow:hidden;font-family:inherit}
.tt-modal[open]{display:flex;flex-direction:column;animation:ttIn .22s ease-out}
.tt-modal::backdrop{background:rgba(22,28,35,.6);backdrop-filter:blur(3px)}
@keyframes ttIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

.tt-modal-head{display:flex;align-items:center;gap:14px;padding:18px 22px;border-bottom:1px solid #edf0f4;background:linear-gradient(180deg,#fff,#fafbfc)}
.tt-modal-head>div{flex:1;min-width:0}
.tt-modal-icon{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#bd1428,#8e0b1a);color:#fff;box-shadow:0 6px 14px rgba(174,16,34,.25)}
.tt-modal-head h2{margin:0;font-size:19px;font-weight:700;letter-spacing:-.01em}
.tt-modal-head p{margin:3px 0 0;color:#7a8696;font-size:12.5px}
.tt-modal-head p b{color:var(--brand,#ae1022);font-weight:600}
.tt-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#7d8897;font-size:26px;line-height:1;cursor:pointer;transition:background-color .15s,color .15s}
.tt-close:hover{background:#eef1f5;color:#202a38}

.tt-modal-body{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;padding:18px 22px 20px;overflow:auto;overscroll-behavior:contain}
.tt-modal-body>*{flex:0 0 auto}

/* Key points */
.tt-glance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.tt-glance li{padding:10px 12px;border:1px solid #f0d3d7;border-radius:12px;background:#fdf4f5}
.tt-glance span{display:block;color:#8a6a70;font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.tt-glance b{display:block;margin-top:4px;color:#2b1518;font-size:12.5px;font-weight:600;line-height:1.35}

/* Sections */
.tt-section{border:1px solid #e6eaf0;border-radius:14px;background:#fff;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.tt-section[open]{border-color:#dfe4eb;box-shadow:0 4px 14px rgba(31,42,56,.05)}
.tt-section.applies{border-color:#efc4ca}
.tt-section summary{display:flex;align-items:center;gap:10px;padding:14px 16px;list-style:none;cursor:pointer;user-select:none}
.tt-section summary::-webkit-details-marker{display:none}
.tt-section summary b{flex:1;min-width:0;font-size:14px;font-weight:600}
.tt-section summary em{flex:0 0 auto;padding:3px 9px;border-radius:999px;background:#fcebed;color:var(--brand,#ae1022);font-size:10.5px;font-style:normal;font-weight:700;letter-spacing:.02em}
.tt-section summary:hover{background:#fafbfc}
.tt-section summary:focus-visible{outline:0;box-shadow:inset 0 0 0 3px rgba(174,16,34,.25)}
.tt-chevron{flex:0 0 auto;color:#8a95a4;transition:transform .2s}
.tt-section[open] .tt-chevron{transform:rotate(180deg)}
.tt-body{padding:2px 18px 16px}
.tt-body ul{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.tt-body li{position:relative;padding-left:18px;color:#4b5a6c;font-size:13.5px;line-height:1.65}
.tt-body ul li:before{content:'';position:absolute;left:2px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--brand,#ae1022);opacity:.75}
.tt-body strong{color:#202a38;font-weight:600}
.tt-callout{display:grid;gap:5px;margin:8px 0 0;padding:11px 13px;border-left:3px solid var(--brand,#ae1022);border-radius:8px;background:#fdf4f5;font-size:13px;line-height:1.6}
.tt-callout span{color:#6b5358}
.tt-more-label{margin:8px 2px -2px;color:#8a95a4;font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}

/* Cancellation timeline */
.tt-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.tt-timeline li{position:relative;display:grid;gap:3px;padding:14px 14px 13px;border:1px solid transparent;border-radius:13px}
.tt-timeline li:before{display:none}
.tt-timeline span{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.tt-timeline b{font-size:14.5px;font-weight:700;line-height:1.3}
.tt-timeline small{font-size:12px}
.tt-timeline .free{background:#e9f7ef;border-color:#c5e8d3;color:#1d6b43}
.tt-timeline .half{background:#fff5e0;border-color:#f3dcaa;color:#8a5a06}
.tt-timeline .full{background:#fdecee;border-color:#f3c3c9;color:#a01324}
.tt-timeline li>*{color:inherit}

.tt-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;border-top:1px solid #edf0f4;background:#fafbfc}
.tt-modal-foot p{margin:0;color:#4b5a6c;font-size:13px;font-weight:600}
.tt-done{flex:0 0 auto;min-height:42px;padding:0 26px;border:0;border-radius:11px;background:linear-gradient(135deg,#bd1428,#8e0b1a);color:#fff;font-family:inherit;font-weight:600;font-size:13.5px;line-height:1;box-shadow:0 8px 18px rgba(174,16,34,.25);cursor:pointer;transition:transform .12s,box-shadow .18s}
.tt-done:hover{box-shadow:0 12px 24px rgba(174,16,34,.33)}
.tt-done:active{transform:translateY(1px)}
.tt-done:focus-visible{outline:0;box-shadow:0 0 0 4px rgba(174,16,34,.3)}

@media(max-width:640px){
  .tt-modal{width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;border-radius:0}
  .tt-modal-head{padding:14px 16px}
  .tt-modal-body{padding:14px 14px 18px}
  .tt-glance{grid-template-columns:1fr 1fr}
  .tt-timeline{grid-template-columns:1fr}
  .tt-modal-foot{flex-direction:column;align-items:stretch;padding:12px 16px 16px;text-align:center}
  .tt-done{width:100%}
}
@media(prefers-reduced-motion:reduce){.tt-modal[open],.tt-chevron,.tt-section,.tt-done,.tt-consent,.tt-check,.tt-check:after{animation:none;transition:none}}
