:root { --pm-zindex: 999999; --pm-btn-color: #ff6600; }
.pm-overlay { position: fixed; inset: 0; z-index: var(--pm-zindex); display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pm-overlay[hidden], .pm-coupon[hidden], .pm-extra[hidden] { display: none !important; }
.pm-modal, .pm-modal * { box-sizing: border-box; }
.pm-modal { position: relative; display: flex; flex-direction: column; width: min(var(--pm-max-width-desktop, 620px), 92vw); max-width: 100%; max-height: 90vh; background: transparent; border: none; padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.45); color: #fff; font-family: Arial, sans-serif; animation: pm-enter .3s ease-out both; }
.pm-picture { display: flex; min-height: 0; flex: 0 1 auto; overflow: hidden; background: #111320; }
.pm-picture img { display: block; width: 100%; height: auto; max-height: var(--pm-img-max-height, 75vh); min-height: 0; object-fit: var(--pm-img-fit, contain); }
.pm-close { position: absolute; z-index: 1; right: 12px; top: 12px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(15,16,24,.88); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.pm-coupon { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #171923; }
.pm-code { font-size: 1.05rem; font-weight: 800; letter-spacing: .1em; }
.pm-copy { border: 0; border-radius: 8px; padding: 12px 15px; background: var(--pm-btn-color); color: #fff; font-weight: 700; cursor: pointer; }
.pm-extra { flex: 0 0 auto; padding: 0 18px 14px; background: #171923; color: #d5d6df; font-size: .8rem; line-height: 1.4; }
.pm-extra p { margin: 0; }
.pm-close:focus-visible, .pm-copy:focus-visible { outline: 3px solid white; outline-offset: -3px; }
@keyframes pm-enter { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 380px) { .pm-coupon { padding: 10px 12px; gap: 6px; } .pm-copy { padding: 10px; font-size: .75rem; } .pm-code { font-size: .9rem; } .pm-extra { padding: 0 12px 10px; } }
@media (max-width: 767px) { .pm-modal { width: var(--pm-width-mobile, 92%); } }
@media (prefers-reduced-motion: reduce) { .pm-modal { animation: none; } }
.pm-image-link { display: flex; flex: 0 1 auto; min-height: 0; overflow: hidden; }
.pm-image-link .pm-picture { width: 100%; }
.pm-modal[hidden] { display: none !important; }
