/*
 * Interactive Image Hotspots. The picture is the module's own size; hotspots are placed with percentages, so they stay on their spot
 * when the picture scales. The look comes from custom properties on the module (a scoped class printed by PHP, see
 * core/class-yadim-styles.php) and on single hotspots (set by the script). Selectors are kept to one or two classes so Divi's own
 * design settings and a theme can override them.
 */
.yadim-ih { position: relative; width: 100%; border-radius: inherit; --ih-bg: #2a7de1; --ih-fg: #fff; --ih-bw: 0px; --ih-bc: #fff; --ih-tip-bg: #14213d; --ih-tip-text: #fff; --ih-s: var(--ih-size, 36px); }
@media (max-width: 980px) { .yadim-ih { --ih-s: var(--ih-size-t, var(--ih-size, 36px)); } }
@media (max-width: 767px) { .yadim-ih { --ih-s: var(--ih-size-m, var(--ih-size-t, var(--ih-size, 36px))); } }
.ih-stage { position: relative; line-height: 0; border-radius: inherit; } /* the corners the module or the picture is given (Design tab) round the picture too */
.ih-img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: inherit; }
.ih-zoom { position: relative; border-radius: inherit; transform-origin: 0 0; will-change: transform; }
.ih-follow { position: relative; border-radius: inherit; transform-origin: 0 0; will-change: transform; }
.ih-zoomed .ih-stage, .ih-follow-on .ih-stage { overflow: hidden; } /* edge follow: the picture is larger than its frame */
/* the picture while a popup is open (the strength is --ih-fx, 0 to 1) */
.ih-fx .ih-img { transition: filter .35s ease; }
.ih-fx-grayscale .ih-img { filter: grayscale(var(--ih-fx, 1)); }
.ih-fx-sepia .ih-img { filter: sepia(var(--ih-fx, 1)); }
.ih-fx-bluetone .ih-img { filter: sepia(var(--ih-fx, 1)) hue-rotate(185deg) saturate(calc(1 + var(--ih-fx, 1))); }
.ih-fx-blur .ih-img { filter: blur(calc(var(--ih-fx, 1) * 12px)); }
.ih-fx-crystal .ih-img { filter: var(--ih-fx-url) contrast(1.06) saturate(1.15); }
.ih-points { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.ih-point { position: absolute; width: 0; height: 0; margin: 0; padding: 0; transform: scale(var(--ih-inv, 1)); line-height: 1.2; }
.ih-point:hover, .ih-point:focus-within { z-index: 4; }

.ih-btn { position: absolute; left: 0; top: 0; z-index: 1; box-sizing: border-box; width: var(--ih-s); height: var(--ih-s); margin: 0; padding: 0; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; border: var(--ih-bw) solid var(--ih-bc); border-radius: 50%; background: var(--ih-bg); color: var(--ih-fg); font-size: calc(var(--ih-s) * .5); font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.ih-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.ih-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--ih-bg); }
.ih-icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; }
.ih-icon svg { display: block; width: 100%; height: 100%; }
.ih-icon--img img { display: block; width: 1.4em; height: 1.4em; max-width: none; object-fit: contain; }
.ih-icon--none { display: none; }
.ih-p-pulse .ih-btn { animation: ih-pulse 2s ease-out infinite; }
.ih-p-ripple .ih-btn::before, .ih-p-ripple .ih-btn::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--ih-bg); opacity: 0; pointer-events: none; animation: ih-ripple 2.4s ease-out infinite; }
.ih-p-ripple .ih-btn::after { animation-delay: 1.2s; }
@keyframes ih-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ih-bg) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 calc(var(--ih-s) * .45) transparent; } }
@keyframes ih-ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }

.ih-label { position: absolute; left: calc(var(--ih-s) / 2 + 8px); top: 0; z-index: 2; transform: translateY(-50%); padding: 4px 9px; border-radius: 6px; background: rgba(20, 33, 61, .88); color: #fff; font-size: .85rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.ih-label-always .ih-label, .ih-label-hover .ih-point:hover .ih-label, .ih-label-hover .ih-point:focus-within .ih-label { opacity: 1; }
.ih-label-never .ih-label { display: none; }

.ih-tip { position: absolute; z-index: 5; box-sizing: border-box; width: max-content; max-width: min(260px, 70vw); padding: 8px 11px; border-radius: 8px; background: var(--ih-tip-bg); color: var(--ih-tip-text); font-size: .85rem; line-height: 1.4; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility .15s; }
.ih-tip--top { bottom: calc(var(--ih-s) / 2 + 10px); left: 0; transform: translateX(calc(-50% + var(--ih-tip-dx, 0px))); }
.ih-tip--bottom { top: calc(var(--ih-s) / 2 + 10px); left: 0; transform: translateX(calc(-50% + var(--ih-tip-dx, 0px))); }
.ih-tip--left { right: calc(var(--ih-s) / 2 + 10px); top: 0; transform: translateY(calc(-50% + var(--ih-tip-dy, 0px))); }
.ih-tip--right { left: calc(var(--ih-s) / 2 + 10px); top: 0; transform: translateY(calc(-50% + var(--ih-tip-dy, 0px))); }
.ih-point:hover .ih-tip, .ih-point:focus-within .ih-tip, .ih-point.is-tip .ih-tip { opacity: 1; visibility: visible; }

.ih-zoom-click .ih-stage { cursor: zoom-in; }
.ih-zoom-click.ih-zoomed .ih-stage { cursor: zoom-out; }
.ih-can-pan .ih-stage { cursor: grab; touch-action: none; }
.ih-panning .ih-stage { cursor: grabbing; }
.ih-lens { position: absolute; z-index: 6; box-sizing: border-box; width: var(--ih-lens-size, 170px); height: var(--ih-lens-size, 170px); border: var(--ih-lens-bw, 3px) solid var(--ih-lens-bc, #fff); background-color: #fff; background-repeat: no-repeat; pointer-events: none; }
.ih-lens--circle { border-radius: 50%; }
.ih-lens--rounded { border-radius: 18%; }
.ih-lens--square { border-radius: 0; }
.ih-lens.has-shadow { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.ih-lens[hidden] { display: none; }
.ih-reset { position: absolute; z-index: 7; left: 12px; bottom: 12px; padding: .5em 1.1em; border: 0; border-radius: 999px; background: rgba(20, 33, 61, .9); color: #fff; font: 600 .85rem/1.2 inherit; cursor: pointer; }
.ih-reset[hidden] { display: none; }
.ih-reset:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(20, 33, 61, .9); }
.ih-picking .ih-stage { cursor: crosshair; outline: 2px dashed #2a7de1; outline-offset: 2px; }
.ih-picking .ih-btn { pointer-events: none; }
.ih-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ih-data { display: none; }
@media (prefers-reduced-motion: reduce) {
	.ih-p-pulse .ih-btn { animation: none; }
	.ih-p-ripple .ih-btn::before, .ih-p-ripple .ih-btn::after { animation: none; display: none; }
	.ih-btn, .ih-tip, .ih-label { transition: none; }
}

/* label and tooltip shape (Label and tooltip shape), label background only on hover (Always show the label background off), popup corners */
.ih-shape-rectangle .ih-label, .ih-shape-rectangle .ih-tip { border-radius: 3px; }
.ih-shape-oval .ih-label { border-radius: 999px; padding: 4px 14px; }
.ih-shape-oval .ih-tip { padding: 14px 24px; border-radius: 50% / 50%; text-align: center; }
.ih-label-bg-hover .ih-label { background: transparent; text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .6); transition: opacity .15s ease, background .15s ease; }
.ih-label-bg-hover .ih-point:hover .ih-label, .ih-label-bg-hover .ih-point:focus-within .ih-label { background: rgba(20, 33, 61, .88); text-shadow: none; }

/* the tooltip can hold the editor's HTML: headings, bold, italic, lists and links you can click (it stays open while the pointer is over it) */
.ih-point:hover .ih-tip, .ih-point:focus-within .ih-tip, .ih-point.is-tip .ih-tip { pointer-events: auto; }
.ih-tip p { margin: 0 0 .5em; }
.ih-tip > :last-child { margin-bottom: 0; }
.ih-tip h1, .ih-tip h2, .ih-tip h3, .ih-tip h4, .ih-tip h5, .ih-tip h6 { margin: 0 0 .35em; font-size: 1em; line-height: 1.25; color: inherit; }
.ih-tip a { color: inherit; text-decoration: underline; }
.ih-tip ul, .ih-tip ol { margin: 0 0 .5em; padding-left: 1.2em; }
.ih-tip::before { content: ""; position: absolute; inset: -12px; } /* the gap to the hotspot belongs to the tooltip, so the pointer can travel to a link in it */

/* drawn shapes: an outline over the picture, clickable, in the picture's own space (it scales and zooms with it) */
.ih-regions { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ih-region { fill: var(--ih-region-fill, rgba(42, 125, 225, .25)); stroke: var(--ih-region-stroke, #2a7de1); stroke-width: var(--ih-region-sw, 2); stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: all; cursor: pointer; outline: none; transition: fill .15s ease, stroke .15s ease; }
.ih-region:hover, .ih-region:focus-visible { fill: var(--ih-region-hover, rgba(42, 125, 225, .45)); }
.ih-regions a:hover .ih-region, .ih-regions a:focus-visible .ih-region { fill: var(--ih-region-hover, rgba(42, 125, 225, .45)); }
.ih-region:focus-visible, .ih-regions a:focus-visible .ih-region { stroke: #fff; stroke-width: 3; }
.ih-regions-hover .ih-region { fill: transparent; stroke: transparent; }
.ih-regions-hover .ih-region:hover, .ih-regions-hover .ih-region:focus-visible, .ih-regions-hover a:hover .ih-region, .ih-regions-hover a:focus-visible .ih-region { fill: var(--ih-region-hover, rgba(42, 125, 225, .45)); stroke: var(--ih-region-stroke, #2a7de1); }
.ih-regions-hidden .ih-region { fill: transparent; stroke: transparent; }
.ih-regions-hidden .ih-region:focus-visible, .ih-regions-hidden a:focus-visible .ih-region { stroke: #fff; }
.ih-regions a { cursor: pointer; }
/* the label and tooltip of a shape show while its outline is hovered or focused (the outline is not inside the hotspot's own element) */
.ih-label-hover .ih-point.is-hot .ih-label { opacity: 1; }
.ih-point.is-hot .ih-tip { opacity: 1; visibility: visible; pointer-events: auto; }
.ih-point--shape .ih-label { transform: translate(-50%, -50%); left: 0; }
.ih-point--shape .ih-tip--top { bottom: 8px; } .ih-point--shape .ih-tip--bottom { top: 8px; } .ih-point--shape .ih-tip--left { right: 8px; } .ih-point--shape .ih-tip--right { left: 8px; }

/* the pen tool in the builder */
.ih-drawing .ih-points, .ih-drawing .ih-regions { pointer-events: none; }
.ih-draw { position: absolute; inset: 0; z-index: 30; cursor: crosshair; touch-action: none; }
.ih-draw-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ih-draw-svg polygon { fill: rgba(255, 170, 0, .25); stroke: none; }
.ih-draw-svg polyline { fill: none; stroke: #ffaa00; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ih-draw-pts { position: absolute; inset: 0; pointer-events: none; }
.ih-draw-pt { position: absolute; box-sizing: border-box; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #ffaa00; border-radius: 50%; background: #fff; pointer-events: auto; cursor: move; }
.ih-draw-pt.is-first { background: #ffaa00; }
.ih-draw-pt.can-close { box-shadow: 0 0 0 4px rgba(255, 170, 0, .35); cursor: pointer; }
.ih-draw-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: 92%; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(20, 24, 40, .88); color: #fff; font: 12px/1.3 Arial, sans-serif; text-align: center; pointer-events: none; }

/* the list of hotspots covers the picture but must not catch the pointer: the outlines below it and the picture's own handlers do */
.ih-points, .ih-point { pointer-events: none; }
.ih-btn { pointer-events: auto; }
/* the picture itself is under the pointer now: no native picture dragging (it would cancel a drag to pan) */
.ih-img { -webkit-user-drag: none; user-select: none; }
.ih-point--shape .ih-tip::before { display: none; } /* a shape's tooltip must never cover the shape under the pointer */

.ih-carriers { display: none; }
/* the carriers start from values nobody would choose, so the script can tell what the author set (even a value that equals the usual default) from what they left alone */
.ih-carriers span { display: block; color: rgb(1, 2, 3); font-family: yadim-sentinel, sans-serif; font-size: 13.37px; font-weight: 123; font-style: oblique 3deg; line-height: 1.337; letter-spacing: .137px; text-transform: full-width; text-decoration-line: overline; text-align: match-parent;
  background-color: rgba(1, 2, 3, .01); background-image: none; background-size: auto; background-position: 1.37% 1.37%; background-repeat: space; border: .137px ridge rgba(1, 2, 3, .01); border-radius: .137px; box-shadow: 0 0 0 .137px rgba(1, 2, 3, .01); padding: .137px; }

/* a focused drawn shape: the picture changes (filter on .ih-img, set by the script) and a sharp copy clipped to the shape lies over it */
.ih-sharp { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; max-width: none; border-radius: inherit; opacity: 0; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.ih-sharp.is-on { opacity: 1; }
.ih-label { max-width: min(240px, 60vw); overflow: hidden; text-overflow: ellipsis; }
.ih-label--left { left: auto; right: calc(var(--ih-s) / 2 + 8px); }
