/* /tryons — the sheets and toast opened by the card's tool rail
   (public/js/tryon-feed-tools.js). Bottom sheet on phones, centred panel on
   wide screens. Colours come from the site tokens with plain fallbacks, so the
   sheet follows the app theme. */

.tft-veil {
    position: fixed;
    inset: 0;
    /* Above the IGPost "Posts" overlay (1900) and the single post viewer
       (2000): the tools open over both (docs/FEED_BRAND_TOOLS.md). */
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
}
.tft-veil.is-on { background: rgba(0, 0, 0, 0.45); }
html.tft-open { overflow: hidden; }

.tft-sheet {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    background: var(--surface-raised, #fff);
    color: var(--ink, #111);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    font-size: 0.9rem;
}
.tft-veil.is-on .tft-sheet { transform: none; opacity: 1; }
@media (min-width: 720px) {.tft-veil { align-items: center; }
.tft-sheet { border-radius: 22px; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {.tft-sheet, .tft-veil { transition: none; }
}

.tft-grab {
    width: 38px;
    height: 4px;
    border-radius: 4px;
    margin: 0 auto 4px;
    background: var(--border-subtle, rgba(0, 0, 0, 0.15));
}
.tft-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--surface-sunken, rgba(0, 0, 0, 0.06));
    color: inherit;
    cursor: pointer;
}
.tft-title {
    margin: 2px 40px 2px 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tft-look { display: flex; align-items: center; gap: 12px; }
.tft-look-img {
    width: 52px;
    height: 66px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 10px;
    background: var(--surface-sunken, #eee);
}
.tft-look-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tft-look-text strong { font-size: 0.95rem; }
.tft-look-text span {
    color: var(--ink-muted, #6b6b6b);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tft-label {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-muted, #6b6b6b);
}
.tft-chips { display: flex; flex-wrap: wrap; gap: 6px; transition: opacity 0.15s ease; }
.tft-chips.is-muted { opacity: 0.4; pointer-events: none; }
.tft-chip {
    padding: 7px 12px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.14));
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.tft-chip.is-on { background: var(--ink, #111); border-color: var(--ink, #111); color: var(--surface-raised, #fff); }
.tft-chip:focus-visible, .tft-cta:focus-visible, .tft-btn:focus-visible, .tft-q:focus-visible {
    outline: 2px solid var(--ink, #111);
    outline-offset: 2px;
}
.tft-coin { color: #b8860b; font-weight: 800; }
.tft-chip.is-on .tft-coin, .tft-cta .tft-coin { color: #f2c14e; }

.tft-cta, .tft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.tft-cta { margin-top: 6px; border: none; background: var(--ink, #111); color: var(--surface-raised, #fff); width: 100%; }
.tft-cta:disabled, .tft-btn:disabled { opacity: 0.55; cursor: default; }
.tft-btn { border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.14)); background: transparent; color: inherit; }
.tft-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tft-row .tft-cta { margin-top: 0; flex: 1 1 100%; }
.tft-row .tft-btn { flex: 1 1 0; }
.tft-fine { margin: 0; text-align: center; color: var(--ink-muted, #6b6b6b); font-size: 0.76rem; }

.tft-video {
    width: 100%;
    max-height: 60vh;
    border-radius: 14px;
    background: #000;
    object-fit: contain;
}

.tft-qs { display: flex; flex-direction: column; gap: 6px; }
.tft-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.14));
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.tft-q:hover { background: var(--surface-sunken, rgba(0, 0, 0, 0.04)); color: inherit; }
.tft-ask { display: flex; gap: 8px; }
.tft-ask input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.14));
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
}
.tft-ask button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: none;
    border-radius: 50%;
    background: var(--ink, #111);
    color: var(--surface-raised, #fff);
    cursor: pointer;
}

.tft-toast {
    position: fixed;
    left: 50%;
    top: calc(14px + env(safe-area-inset-top, 0px));
    z-index: 2110;
    max-width: min(92vw, 440px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 14px;
    border-radius: 14px;
    background: var(--surface-raised, #fff);
    color: var(--ink, #111);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    font-size: 0.85rem;
    transform: translate(-50%, -140%);
    transition: transform 0.25s ease;
}
.tft-toast.is-on { transform: translate(-50%, 0); }
.tft-toast-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #2f7a4f; }
.tft-toast-text { flex: 1 1 auto; min-width: 0; }
.tft-toast-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: var(--ink, #111);
    color: var(--surface-raised, #fff);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.tft-preview {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-sunken, rgba(0, 0, 0, 0.05));
    font-style: italic;
}
