/* Figma share chip — 131 × 36, icon 36 + label 95, divider 18 × 0.5 */

.tourbin-share-trigger.tourbin-share-trigger--sidebar {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 131px;
    min-width: 131px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    line-height: 0;
    border: none;
    border-radius: 6px;
    background: #f9fafb;
    cursor: pointer;
    direction: ltr;
    flex-shrink: 0;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}

.tourbin-share-trigger--sidebar .tourbin-sidebar__share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: #f9fafb;
    border-radius: 0;
}

.tourbin-share-trigger--sidebar .tourbin-sidebar__share-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

.tourbin-share-trigger--sidebar .tourbin-share-trigger__divider {
    position: absolute;
    top: 9px;
    left: 35.5px;
    width: 0;
    height: 18px;
    border: 0;
    border-inline-start: 0.5px solid #e2e2e2;
    pointer-events: none;
}

.tourbin-share-trigger--sidebar .tourbin-sidebar__share-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    width: 95px;
    height: 36px;
    padding: 0 14px;
    background: #f9fafb;
    border: none;
    border-radius: 0;
    font-family: "Vazirmatn FD", "Vazirmatn", var(--tourbin-font, sans-serif);
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 19px;
    text-align: right;
    color: #000;
    direction: rtl;
    white-space: nowrap;
}

.tourbin-share-trigger--sidebar:hover,
.tourbin-share-trigger--sidebar:active {
    background: #f9fafb;
}

.tourbin-share-trigger--sidebar:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

.tourbin-share-trigger.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.85;
}

.tourbin-share-trigger.is-loading .tourbin-sidebar__share-icon,
.tourbin-share-trigger.is-loading .tourbin-share-trigger__icon {
    position: relative;
}

.tourbin-share-trigger.is-loading .tourbin-sidebar__share-icon svg,
.tourbin-share-trigger.is-loading .tourbin-share-trigger__icon svg {
    opacity: 0;
}

.tourbin-share-trigger.is-loading .tourbin-sidebar__share-icon::after,
.tourbin-share-trigger.is-loading .tourbin-share-trigger__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-top-color: #007aff;
    border-radius: 50%;
    animation: tourbin-share-spin 0.7s linear infinite;
}

@keyframes tourbin-share-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tourbin-share-trigger.is-loading .tourbin-sidebar__share-icon::after,
    .tourbin-share-trigger.is-loading .tourbin-share-trigger__icon::after {
        animation: none;
        opacity: 0.7;
    }
}

.tourbin-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.tourbin-share-sheet[hidden] {
    display: none;
}

.tourbin-share-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 19, 19, 0.52);
}

.tourbin-share-sheet__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 400px);
    max-height: min(92vh, 720px);
    overflow: auto;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(19, 19, 19, 0.22);
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    text-align: right;
}

.tourbin-share-sheet__close {
    position: absolute;
    top: 0.7rem;
    inset-inline-start: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 1.2rem;
    line-height: 1;
    color: #444;
    cursor: pointer;
    left: 10px;
    right: unset;
}

.tourbin-share-sheet__title {
    margin: 0 0 0.3rem;
    padding-inline-end: 0.25rem;
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.tourbin-share-sheet__hint {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.65;
    color: #6b6b6b;
}

.tourbin-share-sheet__preview {
    margin: 0 0 1.05rem;
}

.tourbin-share-sheet__preview[hidden] {
    display: none;
}

.tourbin-share-sheet__card {
    display: block;
    width: min(100%, 280px);
    max-height: min(42vh, 280px);
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    background: #f3f4f6;
}

.tourbin-share-sheet__networks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.tourbin-share-sheet__network {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #222;
    font-size: 0.7rem;
    font-weight: 600;
}

.tourbin-share-sheet__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
}

.tourbin-share-sheet__network--telegram .tourbin-share-sheet__badge {
    background: #2aabee;
}

.tourbin-share-sheet__network--whatsapp .tourbin-share-sheet__badge {
    background: #25d366;
}

.tourbin-share-sheet__network--x .tourbin-share-sheet__badge {
    background: #111;
}

.tourbin-share-sheet__network--linkedin .tourbin-share-sheet__badge {
    background: #0a66c2;
}

.tourbin-share-sheet__copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 0 0 0.65rem;
    border: none;
    border-radius: 12px;
    background: var(--tourbin-yellow, #ffcf01);
    color: #111;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.tourbin-share-sheet__copy:hover {
    background: #ffe14a;
}

.tourbin-share-sheet__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tourbin-share-sheet__ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #f7f7f7;
    color: #222;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.tourbin-share-sheet__ghost[hidden] {
    display: none;
}

.tourbin-share-sheet__ghost:hover {
    background: #fff;
}

body.tourbin-share-sheet-open {
    overflow: hidden;
}

.tourbin-share-toast {
    position: fixed;
    z-index: 10060;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.tourbin-share-toast[hidden] {
    display: none;
}
