.booth-share-sheet[hidden] { display: none !important; }

.booth-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.booth-share-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(20, 27, 42, .58);
    backdrop-filter: blur(5px);
}

.booth-share-sheet__dialog {
    position: relative;
    width: min(92vw, 520px);
    max-height: min(90vh, 760px);
    overflow: auto;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 24px;
    background: #eef1f6;
    box-shadow: 0 24px 70px rgba(17, 25, 40, .32);
    direction: rtl;
}

.booth-share-sheet__dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.booth-share-sheet__dialog header span { color: #df2063; font-size: .7rem; font-weight: 800; }
.booth-share-sheet__dialog header h2 { margin: .15rem 0 0; color: #202637; font-size: 1.05rem; font-weight: 900; }
.booth-share-sheet__dialog header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #eef1f6;
    color: #576174;
    box-shadow: 4px 4px 9px rgba(163, 177, 198, .42), -4px -4px 9px #fff;
}

.booth-share-sheet__preview {
    min-height: 340px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: #e5e9f0;
    box-shadow: inset 4px 4px 10px rgba(163, 177, 198, .38), inset -4px -4px 10px #fff;
}

.booth-share-sheet__preview img { display: block; width: 100%; max-height: 56vh; object-fit: contain; }
.booth-share-sheet__loading { display: flex; align-items: center; gap: .55rem; color: #697386; font-size: .78rem; font-weight: 700; }
.booth-share-sheet__loading span {
    width: 18px;
    height: 18px;
    border: 2px solid #d7dce5;
    border-top-color: #df2063;
    border-radius: 50%;
    animation: booth-share-spin .7s linear infinite;
}

.booth-share-sheet__dialog > p { margin: .8rem .2rem; color: #70798a; font-size: .72rem; line-height: 1.8; }
.booth-share-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.booth-share-sheet__actions button,
.booth-share-sheet__actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 0;
    border-radius: 14px;
    font-size: .8rem;
    font-weight: 850;
    text-decoration: none !important;
}
.booth-share-sheet__actions button { background: linear-gradient(135deg, #ea3d7b, #c91657); color: #fff; }
.booth-share-sheet__actions button:disabled { opacity: .5; cursor: wait; }
.booth-share-sheet__actions a { background: #fff; color: #384257; box-shadow: 4px 4px 9px rgba(163, 177, 198, .35), -4px -4px 9px #fff; }

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

@media (max-width: 575.98px) {
    .booth-share-sheet { align-items: end; padding: .65rem; }
    .booth-share-sheet__dialog { width: 100%; max-height: 92vh; border-radius: 24px 24px 18px 18px; }
    .booth-share-sheet__preview { min-height: 280px; }
}
