/* DÓNDE ESTOY — mobile primary-share row, preserve existing WordPress postcard styling */
@media (max-width: 767px) {
  .de-story-actions .de-mobile-share-platforms [data-share="viber"],
  .de-story-actions .de-mobile-share-platforms [data-share="pinterest"],
  .de-story-actions .de-mobile-share-platforms [data-share="x"],
  .de-story-actions .de-mobile-share-platforms [data-share="linkedin"] {display: none !important;}
  .de-story-actions .de-mobile-share-platforms {align-items:center;justify-content:center;}
  .de-story-actions .de-mobile-share-actions {justify-content:center;}
}
/* Accessible secondary-share sheet; works on desktop when native sharing is unavailable. */
.de-share-polish-dialog[hidden] {display:none!important}
.de-share-polish-dialog {position:fixed;inset:0;z-index:2147480000;display:grid;place-items:center;padding:18px;background:rgba(12,12,12,.7)}
.de-share-polish-card {width:min(440px,100%);max-height:90vh;overflow:auto;background:#faf5e9;color:#181818;border-radius:18px;padding:26px;box-shadow:0 24px 100px rgba(0,0,0,.3);font-family:Arial,sans-serif}
.de-share-polish-head {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.de-share-polish-head h3 {margin:0;font-size:22px;font-weight:900;letter-spacing:-.03em}
.de-share-polish-close {border:1px solid #b7aa95;border-radius:50%;background:transparent;width:38px;height:38px;font-size:23px;cursor:pointer}
.de-share-polish-grid {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.de-share-polish-grid a,.de-share-polish-grid button {font:700 13px/1.4 Arial,sans-serif;text-decoration:none;text-align:center;background:white;color:#181818;border:1px solid #d7cabb;border-radius:9px;padding:14px 9px;cursor:pointer}
.de-share-polish-grid a:hover,.de-share-polish-grid button:hover,.de-share-polish-grid a:focus-visible,.de-share-polish-grid button:focus-visible {background:#ffcc00;border-color:#d4a200;outline:2px solid #111;outline-offset:2px}
.de-share-polish-note {color:#635a4e;font-size:12px;line-height:1.6;margin:12px 0 0}

/* v1.1.0 — desktop hotspot geometry / calm pointer states.
 * The art is 1566×414. The painted red CTA occupies x≈33.5–52.4%,
 * y≈80.5–97.5%. Keep the transparent anchor on this CTA only.
 * Remove overly broad gold hover outlines while keeping a visible
 * keyboard-only focus state. Never hide the focus state itself.
 */
@media (min-width: 768px) {
  .de-story-actions .de-postcard-wall.de-postcard-desktop {
    position:relative!important;
  }
  .de-story-actions .de-postcard-wall.de-postcard-desktop .de-wall-hotspot {
    position:absolute!important;
    left:33.55%!important;
    top:80.4%!important;
    width:18.8%!important;
    height:16.5%!important;
    box-sizing:border-box!important;
    margin:0!important; padding:0!important; border:0!important;
    border-radius:999px!important; box-shadow:none!important;
    outline:0!important; outline-offset:2px!important;
    background:transparent!important; transform:none!important;
    filter:none!important;
    transition:background-color .18s ease!important;
    -webkit-tap-highlight-color:transparent;
  }
  .de-story-actions .de-postcard-wall.de-postcard-desktop .de-wall-hotspot::before,
  .de-story-actions .de-postcard-wall.de-postcard-desktop .de-wall-hotspot::after {
    display:none!important; content:none!important;
  }
  .de-story-actions .de-postcard-wall.de-postcard-desktop .de-wall-hotspot:hover,
  .de-story-actions .de-postcard-wall.de-postcard-desktop .de-wall-hotspot:focus:not(:focus-visible) {
    outline:0!important; box-shadow:none!important; border:0!important;
    background:rgba(255,255,255,.065)!important; transform:none!important;
  }
  .de-story-actions .de-postcard-wall.de-postcard-desktop .de-wall-hotspot:focus-visible {
    outline:2px solid #161616!important; outline-offset:3px!important;
    border:0!important; box-shadow:0 0 0 2px #ffcc00!important;
    background:rgba(255,255,255,.05)!important; transform:none!important;
  }
  /* Desktop social hotspots already sit on printed illustrations.
     Avoid a second oversized gold circle over the images on pointer hover. */
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:hover,
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:focus:not(:focus-visible) {
    outline:none!important; box-shadow:none!important;
  }
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:focus-visible {
    outline:2px solid #161616!important; outline-offset:2px!important;
    border-radius:50%!important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .de-story-actions .de-wall-hotspot,
  .de-story-actions .de-share-hit {transition:none!important;}
}

/* v1.2.0 — MATCH THE ORIGINAL BEYOND THE POSTCARD HOVER EXPERIENCE.
 * The nine 100x100 hover icons below are the original DÓNDE ESTOY V40.41 artwork.
 * Share targets stay matched to the printed postcard; the art itself is not re-ordered.
 * A focus ring remains for keyboard users; pointer hover uses a soft icon swap only.
 */
@media (min-width: 768px) {
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit {
    position:absolute!important; overflow:visible!important;
    transform:translate(-50%,-50%)!important;
    transition:transform .20s ease!important;
    border:0!important; background:transparent!important; box-shadow:none!important;
  }
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit::before {
    content:""!important;position:absolute!important;inset:-3%!important;
    border-radius:50%!important;background-position:center!important;
    background-size:contain!important;background-repeat:no-repeat!important;
    opacity:0!important;pointer-events:none!important;
    transform:scale(.99)!important;
    transition:opacity .16s ease, transform .18s ease!important;
    filter:drop-shadow(0 3px 5px rgba(0,0,0,.18))!important;
  }
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:hover,
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:focus-visible {
    transform:translate(-50%,-55%) scale(1.045)!important;
    box-shadow:none!important;
  }
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:hover::before,
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:focus-visible::before {
    opacity:1!important;transform:scale(1.025)!important;
  }
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:hover:not(:focus-visible) {
    outline:none!important;
  }
  /* Do not hide the keyboard focus indication. */
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:focus-visible {
    outline:2px solid #161616!important;outline-offset:3px!important;
  }
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-facebook::before {background-image:url("hover/facebook.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-whatsapp::before {background-image:url("hover/whatsapp.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-telegram::before {background-image:url("hover/telegram.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-viber::before {background-image:url("hover/viber.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-pinterest::before {background-image:url("hover/pinterest.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-x::before {background-image:url("hover/x.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-linkedin::before {background-image:url("hover/linkedin.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-copy::before {background-image:url("hover/copy.png")!important;}
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit-native::before {background-image:url("hover/native.png")!important;}
}
@media (prefers-reduced-motion: reduce) {
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit,
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit::before {
    transition:none!important;
  }
  .de-story-actions .de-postcard-share.de-postcard-desktop .de-share-hit:hover {
    transform:translate(-50%,-50%)!important;
  }
}
