/* TravelTeam Share: share button for visitors */
.ttv { font: 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; z-index: 99980; }
.ttv--left, .ttv--right { position: fixed; bottom: 20px; }
.ttv--left { left: 20px; }
.ttv--right { right: 20px; }
.ttv--content { position: relative; display: inline-block; margin: 24px 0 8px; }
.ttv .ttv-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: #1d2327; color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.ttv .ttv-toggle:hover, .ttv .ttv-toggle:focus-visible { background: #2271b1; color: #fff; }
.ttv--content .ttv-toggle { box-shadow: none; }
.ttv-menu { position: absolute; bottom: calc(100% + 10px); min-width: 220px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); display: flex; flex-direction: column; }
.ttv-menu[hidden] { display: none; }
.ttv--left .ttv-menu, .ttv--content .ttv-menu { left: 0; }
.ttv--right .ttv-menu { right: 0; }
.ttv--content .ttv-menu { bottom: auto; top: calc(100% + 8px); }
.ttv .ttv-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #1d2327; font: inherit; text-align: left; text-decoration: none; cursor: pointer; box-shadow: none; }
.ttv .ttv-item:hover, .ttv .ttv-item:focus-visible { background: #f0f0f1; color: #1d2327; }
.ttv .ttv-item[hidden] { display: none; }
.ttv-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; flex: 0 0 32px; }
.ttv-done { font-size: 13px; color: #00a32a; padding: 0 10px; }
.ttv-done:empty { display: none; }
.ttv-done:not(:empty) { padding: 4px 10px 6px; }
/* Side bar: square buttons stuck to the right edge */
.ttv--side { position: fixed; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; box-shadow: -2px 2px 12px rgba(0, 0, 0, .18); }
.ttv--side .ttv-item { position: relative; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 0; gap: 0; }
.ttv--side .ttv-ico { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 0; transition: width .15s; }
.ttv--side .ttv-item:hover, .ttv--side .ttv-item:focus-visible { background: none; }
.ttv--side .ttv-item:hover .ttv-ico, .ttv--side .ttv-item:focus-visible .ttv-ico { filter: brightness(1.12); }
.ttv--side .ttv-label { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 8px; padding: 4px 8px; border-radius: 4px; background: #1d2327; color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ttv--side .ttv-item:hover .ttv-label, .ttv--side .ttv-item:focus-visible .ttv-label { opacity: 1; }
.ttv--side .ttv-done { position: absolute; right: 100%; bottom: 0; margin-right: 8px; padding: 4px 8px; border-radius: 4px; background: #00a32a; color: #fff; white-space: nowrap; }
@media (max-width: 600px) {
    .ttv--side .ttv-item, .ttv--side .ttv-ico { width: 40px; height: 40px; flex-basis: 40px; }
    .ttv--side .ttv-label { display: none; }
}
@media print { .ttv { display: none; } }

/* Chooser: compact panel that slides in from the right, next to the side bar */
.ttv-chooser { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 20, 40, 0); transition: background .2s; font: 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ttv-chooser.is-open { background: rgba(15, 20, 40, .12); }
.ttv-chooser-box { position: absolute; right: 12px; top: 50%; width: 460px; max-width: calc(100vw - 24px); max-height: min(760px, calc(100vh - 24px)); display: flex; flex-direction: column; background: #fff; color: #1d2327; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .28); overflow: hidden; opacity: 0; transform: translate(40px, -50%); transition: transform .22s ease, opacity .22s ease; }
.ttv-chooser--side .ttv-chooser-box { right: 46px; border-radius: 12px 0 0 12px; }
.ttv-chooser.is-open .ttv-chooser-box { opacity: 1; transform: translate(0, -50%); }
.ttv-chooser-top { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; background: #1d2327; color: #fff; }
.ttv-chooser-top .ttv-ico { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 6px; }
.ttv-chooser-top .ttv-ico svg { width: 16px; height: 16px; }
.ttv-chooser-h { flex: 1; font-size: 15px; font-weight: 600; }
.ttv-chooser .ttv-chooser-x { border: 0; background: none; color: #fff; font-size: 24px; line-height: 1; padding: 0 6px; cursor: pointer; opacity: .8; box-shadow: none; }
.ttv-chooser .ttv-chooser-x:hover { opacity: 1; background: none; }
.ttv-chooser-body { overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ttv-chooser-h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #646970; margin-top: 2px; }
.ttv-chooser-h2 small { text-transform: none; font-weight: 400; letter-spacing: 0; }
.ttv-chooser-list { display: flex; flex-direction: column; gap: 4px; }
.ttv-chooser-opt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid #dcdcde; border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.ttv-chooser-opt:hover { border-color: #a7aaad; }
.ttv-chooser-opt:has(input:checked) { border-color: #0a6fb4; background: #f0f6fc; }
.ttv-chooser-opt input { margin: 2px 0 0; width: 15px; height: 15px; flex: 0 0 auto; }
.ttv-chooser-opt span { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ttv-chooser-opt b { font-size: 13px; }
.ttv-chooser-opt small { color: #50575e; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttv-chooser-opt:has(input:checked) small { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.ttv-designs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ttv-design { position: relative; aspect-ratio: 1; border: 2px solid #dcdcde; border-radius: 6px; overflow: hidden; cursor: pointer; background: #f0f0f1; }
.ttv-design:has(input:checked) { border-color: #0a6fb4; box-shadow: 0 0 0 2px rgba(10, 111, 180, .25); }
.ttv-design input { position: absolute; opacity: 0; }
.ttv-design img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ttv-design.is-loading img, .ttv-design.is-broken img { opacity: 0; }
.ttv-design.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #c3c4c7; border-top-color: #0a6fb4; border-radius: 50%; animation: ttv-spin .8s linear infinite; }
@keyframes ttv-spin { to { transform: rotate(360deg); } }
.ttv-design-none { display: flex; height: 100%; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 600; color: #50575e; line-height: 1.15; }
.ttv-preview { position: relative; flex: 0 0 auto; aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; background: #f0f0f1; }
.ttv-preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ttv-preview.is-loading img { opacity: .35; }
.ttv-preview.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 2px solid #c3c4c7; border-top-color: #0a6fb4; border-radius: 50%; animation: ttv-spin .8s linear infinite; }
.ttv-preview-none { display: none; }
.ttv-preview.is-none img { display: none; }
.ttv-preview.is-none .ttv-preview-none { display: flex; height: 100%; align-items: center; justify-content: center; padding: 12px; color: #50575e; font-size: 13px; text-align: center; }
.ttv-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ttv-chooser .ttv-photo { aspect-ratio: 4 / 3; padding: 0; border: 2px solid #dcdcde; border-radius: 6px; overflow: hidden; background: #f0f0f1; cursor: pointer; box-shadow: none; }
.ttv-chooser .ttv-photo:hover { background: #f0f0f1; border-color: #a7aaad; }
.ttv-chooser .ttv-photo.is-active { border-color: #0a6fb4; box-shadow: 0 0 0 2px rgba(10, 111, 180, .25); }
.ttv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ttv-chooser-foot { padding: 8px 12px 12px; border-top: 1px solid #f0f0f1; display: flex; flex-direction: column; gap: 6px; }
.ttv-chooser-note { margin: 0; font-size: 12px; color: #50575e; }
.ttv-chooser .ttv-chooser-go { border: 0; border-radius: 8px; background: #0a6fb4; color: #fff; font-size: 15px; font-weight: 600; padding: 10px; cursor: pointer; box-shadow: none; }
.ttv-chooser .ttv-chooser-go:hover { background: #085a92; }
@media (max-width: 600px) {
    .ttv-chooser--side .ttv-chooser-box { right: 40px; max-width: calc(100vw - 52px); }
}
@media (prefers-reduced-motion: reduce) { .ttv-chooser, .ttv-chooser-box { transition: none; } }
