.phpup-open { overflow: hidden !important; }
.phpup-popup[hidden] { display: none !important; }
.phpup-popup, .phpup-popup *, .phpup-popup *::before, .phpup-popup *::after { box-sizing: border-box; }
.phpup-popup { align-items: center; display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 2147483647; }
.phpup-popup__backdrop { background: rgba(17, 17, 17, .78); inset: 0; position: absolute; }
.phpup-popup__dialog { background: #fff; border-top: 6px solid var(--phpup-primary, #2271b1); box-shadow: 0 24px 70px rgba(0, 0, 0, .32); color: #1f2328; font-family: inherit; margin: auto; max-height: calc(100dvh - 48px); max-width: 760px; position: relative; width: 100%; }
.phpup-popup__scroll { max-height: calc(100dvh - 54px); overflow-y: auto; overscroll-behavior: contain; padding: 48px 52px 40px; text-align: center; -webkit-overflow-scrolling: touch; }
.phpup-popup__icon-close { align-items: center; appearance: none; background: #fff; border: 0; color: #3c434a; cursor: pointer; display: flex; font-family: Arial, sans-serif; font-size: 32px; height: 44px; justify-content: center; line-height: 1; padding: 0; position: absolute; right: 8px; top: 8px; width: 44px; z-index: 2; }
.phpup-popup__icon-close:hover { color: var(--phpup-primary, #2271b1); }
.phpup-popup__icon-close:focus-visible, .phpup-popup__button:focus-visible, .phpup-popup a:focus-visible { outline: 3px solid var(--phpup-primary, #2271b1); outline-offset: 3px; }
.phpup-popup__custom-html { max-width: 100%; overflow-wrap: anywhere; text-align: initial; }
.phpup-popup__custom-html > :first-child, .phpup-popup__message > :first-child { margin-top: 0; }
.phpup-popup__custom-html > :last-child, .phpup-popup__message > :last-child { margin-bottom: 0; }
.phpup-popup__custom-html img, .phpup-popup__custom-html video, .phpup-popup__custom-html iframe { height: auto; max-width: 100%; }
.phpup-popup__custom-html iframe { aspect-ratio: 16 / 9; width: 100%; }
.phpup-popup__dialog--html { background: transparent; border: 0; box-shadow: none; max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px); width: auto; }
.phpup-popup__dialog--html .phpup-popup__scroll { max-height: calc(100dvh - 24px); overflow: visible; padding: 0; }
.phpup-popup__dialog--html .phpup-popup__custom-html a { display: block; line-height: 0; }
.phpup-popup__dialog--html .phpup-popup__custom-html img { display: block !important; height: auto !important; margin: 0 !important; max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px); object-fit: contain; width: auto !important; }
.phpup-popup__dialog--html .phpup-popup__icon-close { background: rgba(255, 255, 255, .92); border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.phpup-popup__dialog--html .phpup-popup__button { display: block; line-height: 1.2; margin: 12px auto 0; }
.phpup-popup__image { display: block; height: auto; margin: 0 auto 24px; max-height: 180px; max-width: 100%; object-fit: contain; }
.phpup-popup__title { color: #16191d; font-family: inherit; font-size: 34px; font-weight: 750; letter-spacing: 0; line-height: 1.18; margin: 0 36px 20px; overflow-wrap: anywhere; text-transform: none; }
.phpup-popup__message { color: #343a40; font-size: 18px; line-height: 1.6; margin: 0 auto; max-width: 620px; overflow-wrap: anywhere; }
.phpup-popup__note { border-left: 4px solid var(--phpup-primary, #2271b1); color: #50575e; font-size: 15px; line-height: 1.5; margin: 24px auto 0; max-width: 620px; padding: 10px 14px; text-align: left; }
.phpup-popup__button { appearance: none; background: var(--phpup-primary, #2271b1); border: 2px solid var(--phpup-primary, #2271b1); border-radius: 3px; color: #fff; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; margin-top: 32px; min-height: 50px; min-width: 150px; padding: 13px 26px; text-align: center; transition: filter 160ms ease, transform 160ms ease; }
.phpup-popup__button:hover { filter: brightness(.88); transform: translateY(-1px); }

@media (max-width: 640px) {
	.phpup-popup { align-items: center; padding: 6px; }
	.phpup-popup__dialog { max-height: calc(100dvh - 12px); max-width: none; }
	.phpup-popup__scroll { max-height: calc(100dvh - 18px); padding: 48px 22px 24px; }
	.phpup-popup__dialog--html { max-height: calc(100dvh - 12px); max-width: calc(100vw - 12px); }
	.phpup-popup__dialog--html .phpup-popup__scroll { max-height: calc(100dvh - 12px); padding: 0; }
	.phpup-popup__dialog--html .phpup-popup__custom-html img { max-height: calc(100dvh - 12px); max-width: calc(100vw - 12px); }
	.phpup-popup__dialog--html .phpup-popup__icon-close { right: 4px; top: 4px; }
	.phpup-popup__title { font-size: 27px; margin-left: 20px; margin-right: 20px; }
	.phpup-popup__message { font-size: 16px; line-height: 1.55; }
	.phpup-popup__button { min-width: 0; width: 100%; }
}

@media (max-height: 520px) and (orientation: landscape) {
	.phpup-popup { padding: 8px; }
	.phpup-popup__dialog, .phpup-popup__scroll { max-height: calc(100dvh - 16px); }
	.phpup-popup__scroll { padding-bottom: 20px; padding-top: 42px; }
	.phpup-popup__dialog--html, .phpup-popup__dialog--html .phpup-popup__scroll { max-height: calc(100dvh - 16px); }
	.phpup-popup__dialog--html .phpup-popup__scroll { padding: 0; }
}

@media (prefers-reduced-motion: reduce) { .phpup-popup__button { transition: none; } }
