/**
 * The video lightbox and the share sheet.
 *
 * @package Sarisara_Child
 */

body.ss-overlay-open {
    overflow: hidden;
}

/* ==========================================================================
   VIDEO — plays over the listing, never instead of it
   ========================================================================== */
.ss-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ss-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 32, .88);
}

.ss-lightbox__frame {
    position: relative;
    width: 100%;
    max-width: 1040px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    animation: ss-overlay-in .2s ease-out;
}

.ss-lightbox__frame iframe,
.ss-lightbox__frame video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ss-lightbox .ss-lightbox__close,
.ss-share .ss-share__close {
    position: absolute;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, .14) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #ffffff !important;
    font-size: 26px !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background .15s ease;
}

.ss-lightbox .ss-lightbox__close {
    top: 20px;
    right: 24px;
}

.ss-lightbox .ss-lightbox__close:hover {
    background: rgba(255, 255, 255, .28) !important;
}

@keyframes ss-overlay-in {
    from { opacity: 0; transform: scale(.98); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   SHARE SHEET
   ========================================================================== */
.ss-share {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Google Sans', system-ui, sans-serif;
}

.ss-share__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 32, .55);
}

.ss-share__box {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 26px 24px 22px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(9, 9, 32, .32);
    animation: ss-overlay-in .18s ease-out;
}

.ss-share .ss-share__close {
    top: 12px;
    right: 12px;
    width: 32px !important;
    height: 32px !important;
    background: none !important;
    color: #6b6b7b !important;
    font-size: 22px !important;
}

.ss-share .ss-share__close:hover {
    background: rgba(9, 9, 32, .07) !important;
    color: #090920 !important;
}

.ss-share .ss-share__title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    font-family: 'Google Sans', system-ui, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #090920 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ss-share__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ss-share .ss-share__row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    padding: 11px 12px !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #ececf4 !important;
    border-radius: 12px !important;
    font-family: 'Google Sans', system-ui, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #090920 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.ss-share .ss-share__row:hover {
    background: #f7f5ff !important;
    border-color: #d9c4ff !important;
}

.ss-share__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f1f0f8;
    color: #40405a;
}

.ss-share__icon svg {
    width: 17px;
    height: 17px;
}

.ss-share__row--whatsapp .ss-share__icon { background: rgba(37, 211, 102, .14); color: #1da851; }
.ss-share__row--facebook .ss-share__icon { background: rgba(24, 119, 242, .12); color: #1877F2; }
.ss-share__row--linkedin .ss-share__icon { background: rgba(10, 102, 194, .12); color: #0A66C2; }

.ss-share__link {
    margin-top: 14px;
}

.ss-share__link input {
    width: 100%;
    padding: 10px 12px !important;
    background: #f7f7fb !important;
    border: 1px solid #ececf4 !important;
    border-radius: 10px !important;
    font-family: 'Google Sans', system-ui, sans-serif !important;
    font-size: 12.5px !important;
    color: #6b6b7b !important;
    height: auto !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    .ss-lightbox { padding: 12px; }
    .ss-lightbox .ss-lightbox__close { top: 8px; right: 10px; }
}

/* ═══ THE SHARE SHEET v2 (Chiran, 24 Oct 2026): our social channels, the ready words, save the photo ═══ */
.ss-share--v2 { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; font-family: var(--font-label, 'Google Sans', sans-serif); }
.ss-share--v2 .ss-share__backdrop { position: absolute; inset: 0; background: rgba(9,9,32,.55); }
.ss-share--v2 .ss-share__box { position: relative; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px;
  padding: 20px 20px 18px; box-shadow: 0 24px 60px rgba(9,9,32,.3); color: #090920; text-align: left; }
.ss-share--v2 .ss-share__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ss-share--v2 .ss-share__hd b { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ss-share--v2 .ss-share__close { all: unset; width: 36px; height: 36px; border-radius: 50%; background: #F1F1F5; display: grid; place-items: center; cursor: pointer; color: #090920; position: static; }
.ss-share--v2 .ss-share__close svg { width: 18px; height: 18px; }
.ss-share--v2 .ss-share__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ss-share--v2 .ss-share__ch { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px;
  border: 1px solid #E7E7EE; cursor: pointer; font-size: 13px; font-weight: 600; color: #090920; text-align: center; }
.ss-share--v2 .ss-share__ch:hover { border-color: #7700FF; color: #7700FF; background: #F6F0FF; }
.ss-share--v2 .ss-share__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F3ECFF; color: #7700FF; }
.ss-share--v2 .ss-share__ic svg { width: 20px; height: 20px; }
.ss-share--v2 .ss-share__l { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E8EA0; }
.ss-share--v2 .ss-share__text { width: 100%; box-sizing: border-box; resize: none; border: 1px solid #E7E7EE; border-radius: 12px; padding: 10px 12px; font: 13.5px/1.5 var(--font-body, 'Google Sans', sans-serif); color: #3A3A4A; background: #FAFAFA; }
.ss-share--v2 .ss-share__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ss-share--v2 .ss-share__btn { all: unset; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #7700FF; color: #7700FF; background: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none; }
.ss-share--v2 .ss-share__btn:hover { background: #7700FF; color: #fff; }
.ss-share--v2 .ss-share__btn svg { width: 15px; height: 15px; }
.ss-share--v2 .ss-share__toast { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #EAF7E4; color: #1F6B00; font-size: 13px; line-height: 1.45; }

/* ═══ SHARE v3 (Chiran, 24 Oct 2026): a drop-down of channels, then a paste-help message ═══ */
.ss-share-dd { position: absolute; z-index: 100001; width: 260px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid #E7E7EE;
  box-shadow: 0 18px 44px rgba(9,9,32,.18); font-family: var(--font-label, 'Google Sans', sans-serif); }
.ss-share-dd__h { margin: 4px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E8EA0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-share-dd__i { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #090920; }
.ss-share-dd__i:hover, .ss-share-dd__i:focus-visible { background: #F6F0FF; color: #7700FF; }
.ss-share-dd__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #F3ECFF; color: #7700FF; }
.ss-share-dd__ic svg { width: 18px; height: 18px; display: block; margin: 0; }
.ss-share--help { position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center; font-family: var(--font-label, 'Google Sans', sans-serif); }
.ss-share--help .ss-share__backdrop { position: absolute; inset: 0; background: rgba(9,9,32,.55); }
.ss-share--help .ss-share__box { position: relative; width: min(440px, calc(100vw - 32px)); background: #fff; border-radius: 18px; padding: 26px 24px 20px; text-align: center;
  box-shadow: 0 24px 60px rgba(9,9,32,.3); color: #090920; }
.ss-share--help .ss-share__close { all: unset; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: #F1F1F5; color: #090920;
  display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 0; }
.ss-share--help .ss-share__close svg { width: 18px; height: 18px; display: block; margin: 0; flex: none; }
.ss-share--v2 .ss-share__close { display: flex !important; align-items: center; justify-content: center; line-height: 0; }
.ss-share--v2 .ss-share__close svg { display: block; margin: 0; }
.ss-share--help .ss-share__big { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: #F3ECFF; color: #7700FF; }
.ss-share--help .ss-share__big svg { width: 28px; height: 28px; display: block; }
.ss-share--help h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #090920; }
.ss-share--help ol { margin: 0 0 16px; padding: 0 0 0 20px; text-align: left; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: #3A3A4A; }
.ss-share--help .ss-share__text { width: 100%; box-sizing: border-box; margin: 0 0 12px; border: 1px solid #E7E7EE; border-radius: 12px; padding: 10px 12px; font: 13px/1.5 var(--font-body, 'Google Sans', sans-serif); }
.ss-share--help .ss-share__acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ss-share--help .ss-share__btn { all: unset; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #7700FF; color: #7700FF; background: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.ss-share--help .ss-share__btn--p { background: #7700FF; color: #fff; }

/* ═══ SHARE v4 (Chiran, 24 Oct 2026): a small list, brand-coloured icons, the how-to beside the pop-up ═══ */
.ss-share-dd { width: 188px; padding: 6px; border-radius: 12px; }
.ss-share-dd__i { gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.ss-share-dd__ic { width: 26px; height: 26px; border-radius: 7px; color: #fff; background: #7700FF; }
.ss-share-dd__ic svg { width: 16px; height: 16px; }
.ss-share-dd__ic--whatsapp { background: #25D366; }
.ss-share-dd__ic--facebook { background: #1877F2; }
.ss-share-dd__ic--instagram { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 55%, #8134AF 100%); }
.ss-share-dd__ic--tiktok { background: #010101; }
.ss-share-dd__ic--youtube { background: #FF0000; }
.ss-share-dd__ic--linkedin { background: #0A66C2; }
.ss-share--help .ss-share__hd { display: flex; align-items: center; gap: 10px; margin: 0 36px 12px 0; text-align: left; }
.ss-share--help .ss-share__hd h3 { margin: 0; font-size: 16px; }
.ss-share--help .ss-share__hd .ss-share-dd__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.ss-share--help .ss-share__hd .ss-share-dd__ic svg { width: 18px; height: 18px; display: block; }
.ss-share--help .ss-share__box { text-align: left; }
.ss-share--help .ss-share__acts { justify-content: flex-start; }
/* on a computer: a card on the right, no dark cover, so the pop-up on the left and this are both seen */
.ss-share--side { inset: auto 24px auto auto; top: 96px; display: block; }
.ss-share--side .ss-share__box { width: 340px; padding: 18px 18px 16px; box-shadow: 0 18px 44px rgba(9,9,32,.22); border: 1px solid #E7E7EE; }
/* the theme styles every <button> (gold, uppercase, tall): keep this list small and in sentence case */
body .ss-share-dd .ss-share-dd__i { display: flex !important; align-items: center !important; gap: 10px !important; width: 100% !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 5px 8px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; box-shadow: none !important;
  font: 500 13.5px/1.2 var(--font-label, 'Google Sans', sans-serif) !important; text-transform: none !important; letter-spacing: 0 !important; color: #090920 !important; }
body .ss-share-dd .ss-share-dd__i:hover, body .ss-share-dd .ss-share-dd__i:focus-visible { background: #F6F0FF !important; color: #7700FF !important; }
body .ss-share-dd .ss-share-dd__i--photo { font-weight: 700 !important; color: #7700FF !important; border-bottom: 1px solid #EFEFF4 !important; border-radius: 8px 8px 0 0 !important; margin-bottom: 4px !important; padding-bottom: 8px !important; }
body .ss-share-dd { width: auto !important; min-width: 188px; } body .ss-share-dd .ss-share-dd__i { white-space: nowrap !important; padding-right: 14px !important; }

/* ═══ SHARE v5 (Chiran, 24 Oct 2026): the real app logos in one style, a dark glass list above the button ═══ */
body .ss-share-dd { width: auto !important; min-width: 210px; padding: 8px !important; border-radius: 16px !important; border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(9,9,32,.86) !important; -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 20px 50px rgba(9,9,32,.45) !important; }
body .ss-share-dd .ss-share-dd__i { gap: 12px !important; padding: 6px 14px 6px 6px !important; border-radius: 11px !important; color: #fff !important; font-weight: 600 !important; font-size: 14px !important; }
body .ss-share-dd .ss-share-dd__i:hover, body .ss-share-dd .ss-share-dd__i:focus-visible { background: rgba(255,255,255,.12) !important; color: #fff !important; }
body .ss-share-dd .ss-share-dd__i--photo { color: #fff !important; border-bottom: 1px solid rgba(255,255,255,.14) !important; }
.ss-share-dd__ic { width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.25); }
.ss-share-dd__ic svg { width: 17px; height: 17px; }
.ss-share-dd__i--photo .ss-share-dd__ic { background: #7700FF; }
.ss-share-dd__ic--tiktok { background: #000; }
.ss-share-dd__ic--tiktok svg { filter: drop-shadow(-1px -1px 0 #25F4EE) drop-shadow(1px 1px 0 #FE2C55); }
.ss-share-dd__ic--instagram { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.ss-share--side .ss-share__box { width: 330px; }
@media (max-width: 899px) { .ss-share--side .ss-share__box { width: min(330px, calc(100vw - 24px)); padding: 16px 16px 14px; } }
