/* Gallery integrated product actions */
.elementor-widget-ganjeh-kala-gallery .gk-featured-image{
    position:relative;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-shell{
    --gk-gallery-actions-x:14px;
    --gk-gallery-actions-y:18px;
    --gk-gallery-actions-gap:7px;
    --gk-gallery-action-size:40px;
    --gk-gallery-action-icon:20px;
    --gk-gallery-action-radius:11px;
    --gk-gallery-action-bg:rgba(255,255,255,.96);
    --gk-gallery-action-color:#374151;
    --gk-gallery-action-border:#e5e7eb;
    --gk-gallery-action-bg-hover:#f5f6f8;
    --gk-gallery-action-color-hover:#111827;
    --gk-gallery-offer-y:0px;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail{
    position:absolute;
    z-index:9;
    display:flex;
    flex-direction:column;
    gap:var(--gk-gallery-actions-gap);
    pointer-events:auto;
}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-side-right .gk-gallery-action-rail{right:var(--gk-gallery-actions-x);left:auto;}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-side-left .gk-gallery-action-rail{left:var(--gk-gallery-actions-x);right:auto;}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-vertical-top .gk-gallery-action-rail{top:var(--gk-gallery-actions-y);}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-vertical-center .gk-gallery-action-rail{top:50%;transform:translateY(-50%);}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-vertical-bottom .gk-gallery-action-rail{bottom:var(--gk-gallery-actions-y);}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn{
    width:var(--gk-gallery-action-size);
    height:var(--gk-gallery-action-size);
    min-width:var(--gk-gallery-action-size);
    min-height:var(--gk-gallery-action-size);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--gk-gallery-action-border);
    border-radius:var(--gk-gallery-action-radius);
    background:var(--gk-gallery-action-bg);
    color:var(--gk-gallery-action-color);
    box-shadow:0 2px 7px rgba(15,23,42,.05);
    cursor:pointer;
    text-decoration:none;
    padding:0;
    transition:background-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
    position:relative;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn:hover,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn:focus-visible,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn.is-active{
    background:var(--gk-gallery-action-bg-hover);
    color:var(--gk-gallery-action-color-hover);
    border-color:#d7dce3;
    transform:none;
    box-shadow:0 3px 10px rgba(15,23,42,.07);
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn svg{
    width:var(--gk-gallery-action-icon);
    height:var(--gk-gallery-action-icon);
    display:block;
    color:currentColor;
    pointer-events:none;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    vector-effect:non-scaling-stroke;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn .gk-gallery-svg-icon--filled{
    fill:currentColor;
    stroke:currentColor;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-text{
    position:absolute!important;
    width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);
    white-space:nowrap;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn[data-tooltip]::after,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn[data-tooltip]::before,
.elementor-widget-ganjeh-kala-gallery .gk-tooltip-container[data-tooltip]::after,
.elementor-widget-ganjeh-kala-gallery .gk-tooltip-container[data-tooltip]::before{
    pointer-events:none;
    opacity:0;
    visibility:hidden;
    transition:.18s ease;
    position:absolute;
    z-index:50;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn[data-tooltip]::after,
.elementor-widget-ganjeh-kala-gallery .gk-tooltip-container[data-tooltip]::after{
    content:attr(data-tooltip);
    top:50%;
    right:calc(100% + 9px);
    transform:translateY(-50%) translateX(4px);
    background:#111827;
    color:#fff;
    border-radius:10px;
    padding:6px 10px;
    font-size:12px;
    font-weight:700;
    line-height:1.7;
    white-space:nowrap;
    box-shadow:0 12px 24px rgba(15,23,42,.18);
}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-side-left .gk-gallery-action-btn[data-tooltip]::after,
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-side-left .gk-tooltip-container[data-tooltip]::after{
    left:calc(100% + 9px);
    right:auto;
    transform:translateY(-50%) translateX(-4px);
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn[data-tooltip]:hover::after,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn[data-tooltip]:focus-visible::after,
.elementor-widget-ganjeh-kala-gallery .gk-tooltip-container[data-tooltip]:hover::after,
.elementor-widget-ganjeh-kala-gallery .gk-tooltip-container[data-tooltip]:focus-visible::after{
    opacity:1;
    visibility:visible;
    transform:translateY(-50%) translateX(0);
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-bar{
    position:absolute;
    z-index:8;
    top:var(--gk-gallery-offer-y);
    left:0;
    right:0;
    min-height:46px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 16px;
    background:#fdecef;
    color:#ef4056;
    border-radius:0;
    line-height:1;
    box-shadow:0 10px 26px rgba(239,64,86,.08);
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-title{
    font-weight:900;
    white-space:nowrap;
    margin-inline-start:auto;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-discount{
    background:#ef4056;
    color:#fff;
    border-radius:999px;
    min-width:38px;
    height:22px;
    display:inline-grid;
    place-items:center;
    font-size:12px;
    font-weight:900;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-left{color:#8b5e69;font-size:12px;font-weight:700;}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-progress{
    flex:0 1 190px;
    max-width:190px;
    height:4px;
    border-radius:999px;
    background:rgba(239,64,86,.14);
    overflow:hidden;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-progress i{display:block;width:62%;height:100%;background:currentColor;border-radius:inherit;}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-time{font-weight:900;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-modal[hidden]{display:none!important;}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-modal,
.gk-gallery-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}
.gk-gallery-modal-overlay{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(6px);}
.gk-gallery-modal-dialog{
    position:relative;
    z-index:1;
    width:min(480px,100%);
    max-height:calc(100vh - 36px);
    overflow:auto;
    background:#fff;
    color:#111827;
    border-radius:22px;
    padding:22px;
    box-shadow:0 24px 80px rgba(15,23,42,.22);
}
.gk-gallery-chart-dialog{width:min(760px,100%);}
.gk-gallery-modal-dialog h3{margin:0 0 16px;font-size:18px;font-weight:900;}
.gk-gallery-modal-close{position:absolute;top:14px;left:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f3f4f6;color:#111827;display:grid;place-items:center;font-size:24px;line-height:1;cursor:pointer;}
.gk-gallery-share-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;}
.gk-gallery-share-links a{display:inline-flex;align-items:center;justify-content:center;min-width:90px;height:40px;border-radius:12px;background:#f8fafc;color:#111827;text-decoration:none;font-weight:800;border:1px solid #eef2f7;}
.gk-gallery-copy-row{display:grid;grid-template-columns:1fr auto;gap:8px;direction:ltr;}
.gk-gallery-copy-row input{width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;}
.gk-gallery-copy-row button{border:0;border-radius:12px;background:var(--gk-primary,#ef4056);color:#fff;padding:0 16px;font-weight:900;}
.gk-gallery-chart-loader,.gk-gallery-chart-empty{text-align:center;color:#64748b;padding:28px 10px;}
.gk-gallery-chart-canvas{min-height:330px;}
@media (max-width:767px){
    .elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail{gap:8px;}
    .elementor-widget-ganjeh-kala-gallery .gk-gallery-special-bar{min-height:42px;padding:8px 10px;gap:8px;font-size:12px;}
    .elementor-widget-ganjeh-kala-gallery .gk-gallery-special-progress{flex-basis:96px;}
    .elementor-widget-ganjeh-kala-gallery .gk-gallery-action-btn[data-tooltip]::after,
    .elementor-widget-ganjeh-kala-gallery .gk-tooltip-container[data-tooltip]::after{display:none!important;}
}

/* v1.7.8: integrated actions must keep the original widget engines/classes, only icon-size/layout is normalized inside the gallery. */
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-gallery-action-slot,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-share-wrapper,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-price-chart-wrapper,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-notify-widget-wrapper,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-wrapper{
    width:var(--gk-gallery-action-size);
    height:var(--gk-gallery-action-size);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin:0!important;
    padding:0!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-gallery-integrated-widget-btn,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-share-trigger,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-chart-trigger-btn,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-notify-trigger-btn,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-compare-btn{
    width:var(--gk-gallery-action-size)!important;
    height:var(--gk-gallery-action-size)!important;
    min-width:var(--gk-gallery-action-size)!important;
    min-height:var(--gk-gallery-action-size)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    padding:0!important;
    margin:0!important;
    border-radius:var(--gk-gallery-action-radius)!important;
    border:1px solid var(--gk-gallery-action-border)!important;
    background:var(--gk-gallery-action-bg)!important;
    color:var(--gk-gallery-action-color)!important;
    box-shadow:0 2px 7px rgba(15,23,42,.05)!important;
    line-height:1!important;
    font-size:0!important;
    text-decoration:none!important;
    transform:none;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-gallery-integrated-widget-btn:hover,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-gallery-integrated-widget-btn:focus-visible,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn:hover,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn:focus-visible,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.is-active,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-compare-btn:hover,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-compare-btn:focus-visible{
    background:var(--gk-gallery-action-bg-hover)!important;
    color:var(--gk-gallery-action-color-hover)!important;
    transform:none!important;
    border-color:#d7dce3!important;
    box-shadow:0 3px 10px rgba(15,23,42,.07)!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail svg,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail i{
    width:var(--gk-gallery-action-icon)!important;
    height:var(--gk-gallery-action-icon)!important;
    font-size:var(--gk-gallery-action-icon)!important;
    display:block!important;
    color:currentColor!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round;
    stroke-linejoin:round;
    margin:0!important;
    line-height:1!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-share-text,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-trigger-text,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-chart-btn-text,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-compare-btn span,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-gallery-action-text{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(1px,1px,1px,1px)!important;
    white-space:nowrap!important;
}


.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.is-active .gk-gallery-svg-icon,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-native-wishlist.is-active .gk-gallery-svg-icon{
    fill:currentColor!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-gallery-action-btn.is-active,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.is-active{
    color:var(--gk-primary,#ed1944)!important;
    background:color-mix(in srgb,var(--gk-primary,#ed1944) 7%,#fff)!important;
    border-color:color-mix(in srgb,var(--gk-primary,#ed1944) 24%,#e5e7eb)!important;
}

/* Use the real Product Special Offer widget appearance above the featured image. */
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot{
    position:absolute;
    z-index:8;
    top:var(--gk-gallery-offer-y,0px);
    left:0;
    right:0;
    width:100%;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot .gk-special-offer{
    width:100%;
    margin:0!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot .gk-special-offer__inner{
    min-height:46px;
}

/* Fixed/teleported modals from the original widgets must stay above the gallery and page. */
.gk-share-modal[aria-hidden="false"],
.gk-chart-modal[aria-hidden="false"],
.gk-notify-modal.is-open{
    z-index:999999!important;
}

/* v1.8.0: real Elementor style bindings for integrated special offer + wishlist tooltip fix */
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot{
    display:flex;
    pointer-events:auto;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot .gk-special-offer{
    max-width:100%;
    background:inherit;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot .gk-special-offer__inner{
    width:100%;
    box-sizing:border-box;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot .gk-special-offer__label,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot .gk-special-offer__time,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-special-offer-slot .gk-special-offer__clock{
    transition:color .18s ease, background-color .18s ease, border-color .18s ease;
}

/* The original wishlist tooltip CSS uses its own pseudo-elements. Inside the gallery the generic tooltip layer was winning only for some items, so normalize wishlist too. */
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]::after,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]::before{
    pointer-events:none;
    opacity:0;
    visibility:hidden;
    transition:.18s ease;
    position:absolute;
    z-index:1000;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]::after{
    content:attr(data-tooltip);
    top:50%!important;
    bottom:auto!important;
    right:calc(100% + 9px)!important;
    left:auto!important;
    transform:translateY(-50%) translateX(4px)!important;
    background:#111827!important;
    color:#fff!important;
    border-radius:10px!important;
    padding:6px 10px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.7!important;
    white-space:nowrap!important;
    box-shadow:0 12px 24px rgba(15,23,42,.18)!important;
}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-side-left .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]::after{
    left:calc(100% + 9px)!important;
    right:auto!important;
    transform:translateY(-50%) translateX(-4px)!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]::before{
    content:'';
    top:50%!important;
    bottom:auto!important;
    right:calc(100% + 3px)!important;
    left:auto!important;
    transform:translateY(-50%) rotate(45deg)!important;
    width:8px!important;
    height:8px!important;
    border:0!important;
    background:#111827!important;
    border-radius:2px!important;
}
.elementor-widget-ganjeh-kala-gallery.gk-gallery-actions-side-left .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]::before{
    left:calc(100% + 3px)!important;
    right:auto!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]:hover::after,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]:focus-visible::after,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]:hover::before,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]:focus-visible::before{
    opacity:1!important;
    visibility:visible!important;
}
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]:hover::after,
.elementor-widget-ganjeh-kala-gallery .gk-gallery-action-rail .gk-wish-btn.gk-tooltip[data-tooltip]:focus-visible::after{
    transform:translateY(-50%) translateX(0)!important;
}

/* --------------------------------------------------------------------------
 * 1.9.139 — unified gallery action modal system
 * Share, notify and price-history modals use one visual/interaction contract
 * in both the native product page and the Elementor gallery widget.
 * -------------------------------------------------------------------------- */
html.gk-gallery-modal-open,
body.gk-gallery-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* A gallery action modal is visible only when the controller has explicitly
 * opened it. This hard gate prevents legacy Share/Chart/Notify styles from
 * overriding the hidden state during initial page render. */
.gk-gallery-unified-modal[hidden],
.gk-gallery-unified-modal[aria-hidden="true"],
.gk-gallery-unified-modal:not(.is-open) {
    display: none !important;
}

.gk-gallery-unified-modal.is-open[aria-hidden="false"],
.gk-native-modal.gk-gallery-unified-modal.is-open[aria-hidden="false"] {
    display: grid !important;
}

.gk-gallery-unified-modal,
.gk-native-modal.gk-gallery-unified-modal {
    --gk-gallery-modal-border: color-mix(in srgb, var(--gk-primary, #ed1944) 4%, #e6e9ee);
    --gk-gallery-modal-muted: #7b8491;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000200 !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 20px !important;
    margin: 0 !important;
    direction: rtl;
    isolation: isolate;
}

.gk-gallery-unified-modal__backdrop,
.gk-gallery-unified-modal .gk-share-overlay,
.gk-gallery-unified-modal .gk-chart-modal-overlay,
.gk-gallery-unified-modal .gk-notify-modal-overlay,
.gk-native-modal.gk-gallery-unified-modal .gk-native-modal__backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(15, 23, 42, .46) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    backdrop-filter: blur(7px) !important;
    cursor: default !important;
}

.gk-gallery-unified-modal__dialog,
.gk-gallery-unified-modal .gk-share-dialog,
.gk-gallery-unified-modal .gk-chart-modal-dialog,
.gk-gallery-unified-modal .gk-notify-modal-content,
.gk-native-modal.gk-gallery-unified-modal .gk-native-modal__dialog {
    position: relative !important;
    z-index: 2 !important;
    width: min(520px, 100%) !important;
    max-width: 100% !important;
    max-height: min(760px, calc(100dvh - 40px)) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden auto !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 20px !important;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--gk-primary, #ed1944) 2.5%, rgba(255,255,255,.99)) 0%,
        rgba(255,255,255,.975) 58%,
        rgba(248,250,252,.98) 100%
    ) !important;
    color: #20242a !important;
    box-shadow: 0 28px 85px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255,255,255,.92) !important;
    transform: translateY(8px) scale(.985) !important;
    opacity: 0 !important;
    transition: transform .2s ease, opacity .18s ease !important;
    text-align: right !important;
}

.gk-gallery-unified-modal.is-open .gk-gallery-unified-modal__dialog,
.gk-gallery-unified-modal.is-open .gk-share-dialog,
.gk-gallery-unified-modal.is-open .gk-chart-modal-dialog,
.gk-gallery-unified-modal.is-open .gk-notify-modal-content,
.gk-native-modal.gk-gallery-unified-modal.is-open .gk-native-modal__dialog {
    transform: none !important;
    opacity: 1 !important;
}

.gk-gallery-unified-modal__dialog--wide,
.gk-gallery-unified-modal--chart .gk-gallery-unified-modal__dialog,
.gk-native-modal.gk-gallery-unified-modal--chart .gk-native-modal__dialog {
    width: min(780px, 100%) !important;
}

.gk-gallery-unified-modal__header,
.gk-gallery-unified-modal .gk-share-header,
.gk-gallery-unified-modal .gk-chart-modal-header,
.gk-native-modal.gk-gallery-unified-modal .gk-native-modal__dialog > header {
    position: sticky !important;
    z-index: 4 !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-height: 72px !important;
    padding: 15px 17px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--gk-gallery-modal-border) !important;
    background: rgba(255,255,255,.74) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
}

.gk-gallery-unified-modal__heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.gk-gallery-unified-modal__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--gk-primary, #ed1944) 6%, #e7eaf0);
    border-radius: 11px;
    color: color-mix(in srgb, var(--gk-primary, #ed1944) 48%, #5f6670);
    background: color-mix(in srgb, var(--gk-primary, #ed1944) 4%, rgba(255,255,255,.94));
}

.gk-gallery-unified-modal__icon .gk-gallery-svg-icon,
.gk-gallery-unified-modal__close .gk-gallery-svg-icon,
.gk-share-copy-btn .gk-gallery-svg-icon {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.gk-gallery-unified-modal__heading > div {
    min-width: 0;
}

.gk-gallery-unified-modal__heading h2,
.gk-gallery-unified-modal__heading h3,
.gk-gallery-unified-modal .gk-share-title,
.gk-gallery-unified-modal .gk-chart-modal-title,
.gk-gallery-unified-modal .gk-modal-title {
    margin: 0 !important;
    color: #20242a !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
}

.gk-gallery-unified-modal__heading p,
.gk-native-modal.gk-gallery-unified-modal .gk-native-modal__dialog > header p {
    max-width: 430px;
    margin: 2px 0 0 !important;
    overflow: hidden;
    color: var(--gk-gallery-modal-muted) !important;
    font-size: 10.75px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-gallery-unified-modal__close,
.gk-gallery-unified-modal .gk-share-close,
.gk-gallery-unified-modal .gk-chart-modal-close,
.gk-gallery-unified-modal .gk-modal-close,
.gk-native-modal.gk-gallery-unified-modal .gk-native-modal__dialog > header > button[data-gk-modal-close] {
    position: static !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e7eaf0 !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.82) !important;
    color: #68717d !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease !important;
}

.gk-gallery-unified-modal__close:hover,
.gk-gallery-unified-modal__close:focus-visible,
.gk-gallery-unified-modal .gk-share-close:hover,
.gk-gallery-unified-modal .gk-chart-modal-close:hover,
.gk-gallery-unified-modal .gk-modal-close:hover,
.gk-native-modal.gk-gallery-unified-modal .gk-native-modal__dialog > header > button[data-gk-modal-close]:hover {
    color: #2f343b !important;
    border-color: #d8dde5 !important;
    background: #f7f8fa !important;
    outline: none !important;
}

.gk-gallery-unified-modal__body,
.gk-gallery-unified-modal .gk-share-body,
.gk-gallery-unified-modal .gk-chart-modal-body,
.gk-gallery-unified-modal .gk-modal-body,
.gk-native-modal.gk-gallery-unified-modal .gk-native-modal__body {
    padding: 18px !important;
}

/* Share */
.gk-gallery-unified-modal .gk-share-networks,
.gk-native-modal.gk-gallery-unified-modal .gk-share-networks {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
}

.gk-gallery-unified-modal .gk-share-link,
.gk-native-modal.gk-gallery-unified-modal .gk-share-link {
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 0 10px !important;
    border: 1px solid #e7eaf0 !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.82) !important;
    color: #4c5561 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .16s ease, border-color .16s ease !important;
}
.gk-gallery-unified-modal .gk-share-link:hover,
.gk-native-modal.gk-gallery-unified-modal .gk-share-link:hover {
    background: #fff !important;
    border-color: #d7dce4 !important;
    transform: none !important;
    opacity: 1 !important;
}
.gk-gallery-unified-modal .gk-share-link i,
.gk-native-modal.gk-gallery-unified-modal .gk-share-link i { font-size: 16px !important; }
.gk-gallery-unified-modal .gk-net-whatsapp i,
.gk-native-modal.gk-gallery-unified-modal .gk-net-whatsapp i { color: #20a65a !important; }
.gk-gallery-unified-modal .gk-net-telegram i,
.gk-native-modal.gk-gallery-unified-modal .gk-net-telegram i { color: #2489c5 !important; }
.gk-gallery-unified-modal .gk-net-twitter i,
.gk-native-modal.gk-gallery-unified-modal .gk-net-twitter i { color: #22272e !important; }

.gk-gallery-unified-modal .gk-share-copy-box,
.gk-native-modal.gk-gallery-unified-modal .gk-share-copy-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 48px !important;
    padding: 4px !important;
    border: 1px solid #e5e8ed !important;
    border-radius: 11px !important;
    background: rgba(248,250,252,.84) !important;
}
.gk-gallery-unified-modal .gk-share-input,
.gk-native-modal.gk-gallery-unified-modal .gk-share-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 9px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #737c88 !important;
    font-size: 11px !important;
    direction: ltr !important;
    text-align: left !important;
}
.gk-gallery-unified-modal .gk-share-copy-btn,
.gk-native-modal.gk-gallery-unified-modal .gk-share-copy-btn {
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid #e1e5ea !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #5f6874 !important;
    cursor: pointer !important;
}

/* Notify form */
.gk-gallery-unified-modal .gk-product-notify-form {
    display: grid !important;
    gap: 13px !important;
    margin: 0 !important;
}
.gk-gallery-unified-modal .gk-form-group,
.gk-gallery-unified-modal .gk-form-options { margin: 0 !important; }
.gk-gallery-unified-modal .gk-form-group label {
    margin-bottom: 5px !important;
    color: #5a6470 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}
.gk-gallery-unified-modal .gk-form-group input {
    width: 100% !important;
    min-height: 44px !important;
    padding: 8px 11px !important;
    border: 1px solid #e3e7ec !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.025) !important;
    outline: none !important;
}
.gk-gallery-unified-modal .gk-form-group input:focus {
    border-color: color-mix(in srgb, var(--gk-primary, #ed1944) 20%, #dfe3e8) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gk-primary, #ed1944) 5%, transparent) !important;
}
.gk-gallery-unified-modal .gk-form-options {
    display: grid !important;
    gap: 7px !important;
}
.gk-gallery-unified-modal .gk-checkbox {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 9px !important;
    border: 1px solid #eaedf1 !important;
    border-radius: 9px !important;
    background: rgba(249,250,251,.72) !important;
    color: #4f5864 !important;
    font-size: 11.5px !important;
}
.gk-gallery-unified-modal .gk-checkbox input { width: 16px !important; height: 16px !important; accent-color: var(--gk-primary, #ed1944); }
.gk-gallery-unified-modal .gk-submit-btn {
    width: 100% !important;
    min-height: 44px !important;
    margin: 2px 0 0 !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--gk-primary, #ed1944) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

/* Native shortcode notification form inside the unified modal. */
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-wrapper,
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-form { margin: 0 !important; }
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-heading {
    margin: 0 0 13px !important;
    color: #6f7884 !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
}
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-field,
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-options,
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-submit { margin: 0 0 12px !important; }
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-field label {
    display: block !important;
    margin-bottom: 5px !important;
    color: #5a6470 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-field input {
    width: 100% !important;
    min-height: 44px !important;
    padding: 8px 11px !important;
    border: 1px solid #e3e7ec !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.9) !important;
    outline: none !important;
}
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-options label {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 7px !important;
    padding: 7px 9px !important;
    border: 1px solid #eaedf1 !important;
    border-radius: 9px !important;
    background: rgba(249,250,251,.72) !important;
    color: #4f5864 !important;
    font-size: 11.5px !important;
}
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-options br { display: none !important; }
.gk-native-modal.gk-gallery-unified-modal .gk-product-notify-submit button {
    width: 100% !important;
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--gk-primary, #ed1944) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* Chart */
.gk-gallery-unified-modal .gk-chart-modal-body,
.gk-native-modal.gk-gallery-unified-modal--chart .gk-gallery-unified-modal__body {
    min-height: 260px !important;
}
.gk-gallery-unified-modal .gk-chart-loader {
    height: 280px !important;
}
.gk-gallery-unified-modal .gk-chart-spinner {
    width: 28px !important;
    height: 28px !important;
    border: 2px solid #e8ebef !important;
    border-top-color: var(--gk-primary, #ed1944) !important;
}
.gk-gallery-unified-modal .gk-chart-empty-msg,
.gk-gallery-unified-modal .gk-gallery-chart-error,
.gk-native-modal.gk-gallery-unified-modal .gk-native-chart-status {
    padding: 34px 12px !important;
    color: #7b8491 !important;
    font-size: 12px !important;
    text-align: center !important;
}
.gk-gallery-unified-modal .gk-chart-empty-msg[hidden],
.gk-gallery-unified-modal .gk-chart-canvas-wrapper[hidden] { display: none !important; }

.gk-gallery-toast {
    position: fixed;
    z-index: 1000300;
    left: 50%;
    bottom: 24px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 10px;
    background: rgba(30,35,42,.94);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, 8px);
    box-shadow: 0 12px 34px rgba(15,23,42,.18);
    transition: opacity .18s ease, transform .18s ease;
}
.gk-gallery-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 767px) {
    .gk-gallery-unified-modal,
    .gk-native-modal.gk-gallery-unified-modal {
        place-items: end center !important;
        padding: 8px 8px 0 !important;
    }
    .gk-gallery-unified-modal__dialog,
    .gk-gallery-unified-modal .gk-share-dialog,
    .gk-gallery-unified-modal .gk-chart-modal-dialog,
    .gk-gallery-unified-modal .gk-notify-modal-content,
    .gk-native-modal.gk-gallery-unified-modal .gk-native-modal__dialog {
        width: 100% !important;
        max-height: min(88dvh, 760px) !important;
        border-radius: 18px 18px 0 0 !important;
    }
    .gk-gallery-unified-modal__header,
    .gk-gallery-unified-modal .gk-share-header,
    .gk-gallery-unified-modal .gk-chart-modal-header,
    .gk-native-modal.gk-gallery-unified-modal .gk-native-modal__dialog > header {
        min-height: 66px !important;
        padding: 13px 14px !important;
    }
    .gk-gallery-unified-modal__body,
    .gk-gallery-unified-modal .gk-share-body,
    .gk-gallery-unified-modal .gk-chart-modal-body,
    .gk-gallery-unified-modal .gk-modal-body,
    .gk-native-modal.gk-gallery-unified-modal .gk-native-modal__body {
        padding: 15px !important;
    }
    .gk-gallery-unified-modal .gk-share-networks,
    .gk-native-modal.gk-gallery-unified-modal .gk-share-networks {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }
    .gk-gallery-unified-modal .gk-share-link,
    .gk-native-modal.gk-gallery-unified-modal .gk-share-link {
        justify-content: flex-start !important;
        padding-inline: 13px !important;
    }
    .gk-gallery-unified-modal__heading p { max-width: 250px; }
}

/* Network icons use the same 1.8px gallery stroke system; no Font Awesome dependency. */
.gk-gallery-unified-modal .gk-share-link .gk-gallery-svg-icon,
.gk-native-modal.gk-gallery-unified-modal .gk-share-link .gk-gallery-svg-icon {
    flex: 0 0 17px;
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.gk-gallery-unified-modal .gk-net-whatsapp .gk-gallery-svg-icon,
.gk-native-modal.gk-gallery-unified-modal .gk-net-whatsapp .gk-gallery-svg-icon { color: #20a65a; }
.gk-gallery-unified-modal .gk-net-telegram .gk-gallery-svg-icon,
.gk-native-modal.gk-gallery-unified-modal .gk-net-telegram .gk-gallery-svg-icon { color: #2489c5; }
.gk-gallery-unified-modal .gk-net-twitter .gk-gallery-svg-icon,
.gk-native-modal.gk-gallery-unified-modal .gk-net-twitter .gk-gallery-svg-icon { color: #22272e; }


/* 1.9.140 safety: legacy modal classes must also honor accessibility state. */
.gk-share-modal[aria-hidden="true"],
.gk-chart-modal[aria-hidden="true"],
.gk-notify-modal[aria-hidden="true"] {
    display: none !important;
}
