.tresd-popup-backdrop[hidden] { display: none !important; }
.tresd-popup-backdrop { position: fixed; inset: 0; z-index: 2147483640; background: rgba(8,17,13,.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; overflow-y: auto; }
.tresd-popup-dialog { position: relative; max-width: min(560px,100%); width: 100%; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 18px; background: #14271f; color: #fff8e9; border: 1px solid rgba(226,191,119,.5); box-shadow: 0 18px 64px rgba(0,0,0,.5); text-align: center; font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; box-sizing: border-box; }
.tresd-popup-dialog.tresd-popup-image-layout { max-width: min(600px,100%); }
.tresd-popup-image { display: block; height: auto; width: 100%; max-height: 69dvh; object-fit: contain; background: #101c17; }
.tresd-popup-image-layout .tresd-popup-image { max-height: 76dvh; }
.tresd-popup-copy { padding: 21px 22px 24px; }
.tresd-popup-title { margin: 0 0 10px !important; font: 700 clamp(24px,4vw,32px)/1.2 Georgia,serif !important; color: #f6d78f !important; }
.tresd-popup-description { margin: 0 0 14px !important; white-space: pre-line; color: #fff9ec !important; font: 400 16px/1.5 system-ui,sans-serif !important; }
.tresd-popup-action { display: inline-block; padding: 13px 23px; border-radius: 9px; background: #e6c27e; color: #1c281b !important; text-decoration: none !important; font: 700 15px/1.2 system-ui,sans-serif; }
.tresd-popup-action:hover, .tresd-popup-action:focus-visible { background: #fff1bb; color: #1c281b !important; }
.tresd-popup-close { position: absolute; top: 10px; right: 10px; z-index: 2; height: 38px; width: 38px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; border: 1px solid #fff9; background: #101b16e6; color: #fff; font: 700 26px/1 Arial,sans-serif; }
.tresd-popup-close:hover,.tresd-popup-close:focus-visible { outline: 2px solid #f3d28c; outline-offset: 2px; }
@media (max-width: 500px) { .tresd-popup-backdrop { padding: 10px; } .tresd-popup-dialog { max-height: calc(100dvh - 20px); } .tresd-popup-image { max-height: 62dvh; } .tresd-popup-copy { padding: 18px 15px; } }
@media (prefers-reduced-motion: no-preference) { .tresd-popup-dialog { animation: tresd-popup-in .18s ease-out; } @keyframes tresd-popup-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } }
