/**
 * PrestaHU
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact info@presta.hu
 *
 * @author    PrestaHU <info@presta.hu>
 * @copyright PrestaHU
 * @license   commercial
 */

/*
 * Storefront popup. Own classes only (no theme buttons or fields), drawn from the custom properties of one root
 * (.pshupopup-skin). Neutral light default below; the shop's own values arrive inline on .pshupopup-wrap from the
 * render model (skin). Font family and size come from the theme. Motion: opacity and transform transitions only.
 *
 * Custom properties: --pshupopup-bg, -text, -accent, -accent-text, -overlay, -radius, -overlay-opacity (the render
 * model skin gives these); optional: -focus, -error, -border, -shadow, -dur, -ease, -vh, -vt, -offset-bottom.
 */
.pshupopup-skin {
    --pshupopup-bg: #ffffff;
    --pshupopup-text: #1a1a1a;
    --pshupopup-accent: #0b57d0;
    --pshupopup-accent-text: #ffffff;
    --pshupopup-overlay: #000000;
    --pshupopup-radius: 12px;
    --pshupopup-overlay-opacity: 0.5;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.45;
}

html.pshupopup-lock {
    overflow: hidden;
    padding-right: var(--pshupopup-sbw, 0);
}

html.pshupopup-lock body {
    overflow: hidden;
}

html.pshupopup-push-top body {
    padding-top: var(--pshupopup-bar-h, 0);
}

html.pshupopup-push-bottom body {
    padding-bottom: var(--pshupopup-bar-h, 0);
}

.pshupopup-wrap {
    --pshupopup-focus: var(--pshupopup-text);
    --pshupopup-error: #b3261e;
    --pshupopup-dur: 200ms;
    --pshupopup-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: fixed;
    z-index: 2147482000;
    box-sizing: border-box;
    color: var(--pshupopup-text);
    font-family: inherit;
    font-size: inherit;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
}

.pshupopup-wrap *,
.pshupopup-wrap *::before,
.pshupopup-wrap *::after {
    box-sizing: border-box;
}

.pshupopup-wrap [hidden] {
    display: none !important;
}

/* ---- modal and fullscreen ---- */
.pshupopup-form-modal,
.pshupopup-form-fullscreen {
    top: var(--pshupopup-vt, 0);
    left: 0;
    right: 0;
    height: var(--pshupopup-vh, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pshupopup-align-top {
    align-items: flex-start;
}

.pshupopup-align-bottom {
    align-items: flex-end;
}

.pshupopup-form-modal.pshupopup-align-left {
    justify-content: flex-start;
}

.pshupopup-form-modal.pshupopup-align-right {
    justify-content: flex-end;
}

.pshupopup-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--pshupopup-overlay);
    opacity: 0;
    transition: opacity var(--pshupopup-dur) var(--pshupopup-ease);
}

.pshupopup-wrap.is-open .pshupopup-overlay {
    opacity: var(--pshupopup-overlay-opacity);
}

.pshupopup-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--pshupopup-text);
    background: var(--pshupopup-bg);
    border-radius: var(--pshupopup-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--pshupopup-dur) var(--pshupopup-ease), transform var(--pshupopup-dur) var(--pshupopup-ease);
}

.pshupopup-wrap.is-open .pshupopup-box {
    opacity: 1;
    transform: none;
}

.pshupopup-box:focus {
    outline: none;
}

.pshupopup-size-sm .pshupopup-box {
    max-width: 360px;
}

.pshupopup-size-lg .pshupopup-box {
    max-width: 760px;
}

.pshupopup-form-fullscreen {
    padding: 0;
}

.pshupopup-form-fullscreen .pshupopup-box {
    max-width: none;
    height: 100%;
    border-radius: 0;
}

.pshupopup-form-fullscreen .pshupopup-inner {
    max-width: 680px;
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pshupopup-inner {
    display: block;
}

.pshupopup-content {
    padding: 28px 24px 24px;
}

.pshupopup-media {
    margin: 0;
}

.pshupopup-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
}

.pshupopup-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--pshupopup-text);
    background: var(--pshupopup-bg);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.92;
    transition: opacity var(--pshupopup-dur) var(--pshupopup-ease);
}

.pshupopup-close:hover {
    opacity: 1;
}

.pshupopup-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.pshupopup-title {
    margin: 0 0 0.5em;
    padding: 0 32px 0 0;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

.pshupopup-body {
    margin: 0 0 1em;
}

.pshupopup-body > :first-child {
    margin-top: 0;
}

.pshupopup-body > :last-child {
    margin-bottom: 0;
}

.pshupopup-body a,
.pshupopup-legal a,
.pshupopup-check-text a,
.pshupopup-link {
    color: inherit;
    text-decoration: underline;
}

.pshupopup-legal {
    margin-top: 14px;
    font-size: 0.82em;
    opacity: 0.85;
}

.pshupopup-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pshupopup-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- sheet on small screens ---- */
@media (max-width: 767px) {
    .pshupopup-form-modal.pshupopup-align-bottom {
        padding: 0;
    }

    .pshupopup-form-modal.pshupopup-align-bottom .pshupopup-box {
        max-width: none;
        max-height: 92%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateY(24px);
    }

    .pshupopup-form-modal.pshupopup-align-bottom.is-open .pshupopup-box {
        transform: none;
    }

    .pshupopup-form-modal.pshupopup-align-bottom .pshupopup-content {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .pshupopup-size-lg.pshupopup-has-media.pshupopup-form-modal .pshupopup-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: stretch;
    }

    .pshupopup-size-lg.pshupopup-has-media.pshupopup-form-modal .pshupopup-image {
        height: 100%;
        max-height: none;
    }
}

/* ---- bar ---- */
.pshupopup-form-bar {
    left: 0;
    right: 0;
}

.pshupopup-bar-top {
    top: 0;
}

.pshupopup-bar-bottom {
    bottom: var(--pshupopup-offset-bottom, 0);
}

.pshupopup-form-bar .pshupopup-box {
    max-width: none;
    border-radius: 0;
    overflow: visible;
    transform: translateY(-100%);
}

.pshupopup-bar-bottom .pshupopup-box {
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pshupopup-form-bar .pshupopup-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.pshupopup-form-bar .pshupopup-media {
    display: none;
}

.pshupopup-form-bar .pshupopup-content {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 10px 60px 10px 16px;
}

.pshupopup-form-bar .pshupopup-title {
    margin: 0;
    padding: 0;
    font-size: 1em;
}

.pshupopup-form-bar .pshupopup-body {
    margin: 0;
}

.pshupopup-form-bar .pshupopup-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
}

.pshupopup-form-bar .pshupopup-form .pshupopup-field {
    flex: 1 1 220px;
    margin: 0;
}

.pshupopup-form-bar .pshupopup-actions {
    margin: 0;
}

.pshupopup-form-bar .pshupopup-close {
    top: 50%;
    margin-top: -22px;
}

/* ---- corner and toast ---- */
.pshupopup-form-corner,
.pshupopup-form-toast {
    width: 360px;
    max-width: calc(100% - 32px);
}

.pshupopup-form-toast {
    width: 340px;
}

.pshupopup-corner-br {
    right: 16px;
    bottom: calc(16px + var(--pshupopup-offset-bottom, 0px));
}

.pshupopup-corner-bl {
    left: 16px;
    bottom: calc(16px + var(--pshupopup-offset-bottom, 0px));
}

.pshupopup-corner-tr {
    right: 16px;
    top: 16px;
}

.pshupopup-corner-tl {
    left: 16px;
    top: 16px;
}

.pshupopup-form-corner .pshupopup-box,
.pshupopup-form-toast .pshupopup-box {
    max-width: none;
    max-height: calc(100vh - 32px);
}

.pshupopup-form-toast .pshupopup-content {
    padding: 16px 56px 16px 16px;
}

.pshupopup-form-toast .pshupopup-title {
    font-size: 1.05em;
}

.pshupopup-form-toast .pshupopup-media {
    display: none;
}

.pshupopup-pause {
    display: block;
    width: fit-content;
    margin: 0 16px 12px auto;
    min-width: 32px;
    min-height: 32px;
    padding: 0 10px;
    font: inherit;
    font-size: 0.8em;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 16px;
    cursor: pointer;
}

.pshupopup-pause[aria-pressed="true"] {
    background: var(--pshupopup-text);
    color: var(--pshupopup-bg);
}

@media (max-width: 479px) {
    .pshupopup-form-corner,
    .pshupopup-form-toast {
        width: auto;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* ---- buttons, fields ---- */
.pshupopup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 20px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: var(--pshupopup-text);
    background: transparent;
    border: 2px solid var(--pshupopup-text);
    border-radius: calc(var(--pshupopup-radius) / 2);
    cursor: pointer;
    transition: opacity var(--pshupopup-dur) var(--pshupopup-ease);
}

.pshupopup-btn:hover {
    opacity: 0.9;
}

.pshupopup-btn-primary {
    color: var(--pshupopup-accent-text);
    background: var(--pshupopup-accent);
    border-color: var(--pshupopup-accent);
}

.pshupopup-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

.pshupopup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 16px;
}

.pshupopup-actions-cta:empty {
    display: none;
}

.pshupopup-form .pshupopup-actions .pshupopup-btn {
    width: 100%;
}

.pshupopup-form-bar .pshupopup-form .pshupopup-actions .pshupopup-btn {
    width: auto;
}

.pshupopup-field {
    margin: 0 0 12px;
}

.pshupopup-label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.95em;
    font-weight: 600;
}

.pshupopup-input {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
    font-size: max(16px, 1em);
    line-height: 1.3;
    color: var(--pshupopup-text);
    background: var(--pshupopup-bg);
    border: 1px solid var(--pshupopup-text);
    border-radius: calc(var(--pshupopup-radius) / 2);
}

textarea.pshupopup-input {
    min-height: 88px;
    resize: vertical;
}

.pshupopup-input::placeholder {
    color: var(--pshupopup-text);
    opacity: 0.62;
}

.pshupopup-input[aria-invalid="true"] {
    border-color: var(--pshupopup-error);
    box-shadow: 0 0 0 1px var(--pshupopup-error);
}

.pshupopup-field-error,
.pshupopup-error {
    margin: 4px 0 0;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--pshupopup-error);
}

.pshupopup-error {
    margin: 8px 0 0;
}

.pshupopup-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    cursor: pointer;
}

.pshupopup-checkbox {
    flex: none;
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: var(--pshupopup-accent);
}

.pshupopup-phone-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 8px;
    align-items: end;
    margin: 0 0 12px;
}

.pshupopup-phone-row .pshupopup-field {
    margin: 0;
}

.pshupopup-phone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pshupopup-phone-link {
    display: inline-block;
    min-height: 44px;
    font-size: 1.6em;
    font-weight: 700;
    line-height: 44px;
    color: inherit;
    text-decoration: underline;
}

.pshupopup-captcha {
    margin: 0 0 12px;
}

.pshupopup-result {
    margin-top: 4px;
}

.pshupopup-result:focus {
    outline: none;
}

.pshupopup-result-text > :first-child {
    margin-top: 0;
}

/* ---- focus ---- */
.pshupopup-wrap a:focus-visible,
.pshupopup-wrap button:focus-visible,
.pshupopup-wrap input:focus-visible,
.pshupopup-wrap select:focus-visible,
.pshupopup-wrap textarea:focus-visible,
.pshupopup-wrap iframe:focus-visible,
.pshupopup-wrap [tabindex]:focus-visible:not(.pshupopup-box):not(.pshupopup-result) {
    outline: 3px solid var(--pshupopup-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--pshupopup-bg);
}

/* ---- coupon ---- */
.pshupopup-coupon {
    margin: 12px 0 0;
    padding: 16px;
    text-align: center;
    border: 2px dashed var(--pshupopup-text);
    border-radius: calc(var(--pshupopup-radius) / 2);
}

.pshupopup-coupon-code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pshupopup-coupon-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.08em;
    -webkit-user-select: all;
    user-select: all;
    overflow-wrap: anywhere;
}

.pshupopup-coupon-meta {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.92em;
}

.pshupopup-coupon-value {
    font-weight: 700;
}

.pshupopup-coupon .pshupopup-btn-primary {
    margin-top: 12px;
    width: 100%;
}

/* ---- countdown ---- */
.pshupopup-countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin: 12px 0;
}

.pshupopup-cd-seg {
    min-width: 56px;
    text-align: center;
}

.pshupopup-cd-num {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.pshupopup-cd-label {
    display: block;
    font-size: 0.78em;
}

.pshupopup-countdown-ended {
    width: 100%;
    margin: 0;
    text-align: center;
    font-weight: 700;
}

/* ---- video ---- */
.pshupopup-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--pshupopup-text);
}

.pshupopup-video-poster,
.pshupopup-video-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.pshupopup-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pshupopup-accent-text);
    background: var(--pshupopup-accent);
    border: 2px solid var(--pshupopup-bg);
    border-radius: 50%;
    cursor: pointer;
}

.pshupopup-icon-play {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.pshupopup-icon-play path {
    fill: currentColor;
}

/* ---- recommendations ---- */
.pshupopup-recs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.pshupopup-rec {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pshupopup-rec-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.pshupopup-rec-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.pshupopup-rec-name {
    display: block;
    font-size: 0.92em;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.pshupopup-rec-price {
    font-weight: 700;
}

.pshupopup-rec .pshupopup-btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.9em;
}

.pshupopup-rec-msg {
    font-size: 0.85em;
}

/* ---- games ---- */
.pshupopup-game {
    margin: 8px 0 12px;
}

.pshupopup-odds {
    margin: 0 0 12px;
    font-size: 0.85em;
    opacity: 0.9;
}

.pshupopup-wheel {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 2px auto 8px;
    padding-top: 12px;
    overflow: hidden;
}

.pshupopup-wheel-rotor {
    transition: transform 4.6s cubic-bezier(0.12, 0.68, 0.16, 1);
    will-change: transform;
}

.pshupopup-wheel-rotor.is-instant {
    transition: none;
}

.pshupopup-wheel-svg {
    display: block;
    width: 100%;
    height: auto;
}

.pshupopup-wheel-seg {
    stroke: var(--pshupopup-text);
    stroke-width: 1;
}

.pshupopup-wheel-seg-a {
    fill: var(--pshupopup-accent);
}

.pshupopup-wheel-seg-b {
    fill: var(--pshupopup-bg);
}

.pshupopup-wheel-label {
    font-family: inherit;
    font-weight: 700;
}

.pshupopup-wheel-label-a {
    fill: var(--pshupopup-accent-text);
}

.pshupopup-wheel-label-b {
    fill: var(--pshupopup-text);
}

.pshupopup-wheel-hub {
    fill: var(--pshupopup-bg);
    stroke: var(--pshupopup-text);
    stroke-width: 2;
}

.pshupopup-wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-left: -15px;
}

.pshupopup-wheel-pointer-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pshupopup-wheel-pointer-shape {
    fill: var(--pshupopup-text);
    stroke: var(--pshupopup-bg);
    stroke-width: 1.5;
}

.pshupopup-scratch {
    width: 100%;
    max-width: 320px;
    margin: 8px auto;
}

.pshupopup-scratch-card {
    position: relative;
    border-radius: calc(var(--pshupopup-radius) / 2);
    overflow: hidden;
}

.pshupopup-scratch-prize {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 1.4em;
    font-weight: 700;
    text-align: center;
    color: var(--pshupopup-text);
    background: var(--pshupopup-bg);
    border: 2px solid var(--pshupopup-text);
    border-radius: calc(var(--pshupopup-radius) / 2);
}

.pshupopup-scratch-cover {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    transition: opacity var(--pshupopup-dur) var(--pshupopup-ease);
}

.pshupopup-scratch-cover.is-active {
    cursor: pointer;
    touch-action: none;
}

.pshupopup-scratch-cover.is-revealed {
    opacity: 0;
    pointer-events: none;
}

.pshupopup-scratch-hint {
    margin: 8px 0 0;
    font-size: 0.9em;
    text-align: center;
}

.pshupopup-scratch-reveal {
    display: flex;
    margin: 8px auto 0;
}

.pshupopup-gift {
    width: 100%;
    max-width: 200px;
    margin: 8px auto;
    text-align: center;
}

.pshupopup-gift-svg {
    display: block;
    width: 100%;
    height: auto;
}

.pshupopup-gift-body {
    fill: var(--pshupopup-accent);
    stroke: var(--pshupopup-text);
    stroke-width: 2;
}

.pshupopup-gift-cap {
    fill: var(--pshupopup-accent);
    stroke: var(--pshupopup-text);
    stroke-width: 2;
}

.pshupopup-gift-ribbon {
    fill: var(--pshupopup-bg);
}

.pshupopup-gift-bow {
    fill: var(--pshupopup-bg);
    stroke: var(--pshupopup-text);
    stroke-width: 2;
}

.pshupopup-gift-lid {
    transform-origin: 80px 70px;
    transition: transform 0.56s var(--pshupopup-ease);
}

.pshupopup-gift.is-open .pshupopup-gift-lid {
    transform: translateY(-30px) rotate(-14deg);
}

.pshupopup-gift-prize {
    min-height: 1.5em;
    margin: 6px 0 0;
    font-size: 1.2em;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--pshupopup-dur) var(--pshupopup-ease) 0.2s, transform var(--pshupopup-dur) var(--pshupopup-ease) 0.2s;
}

.pshupopup-gift.is-open .pshupopup-gift-prize {
    opacity: 1;
    transform: none;
}

.pshupopup-gift.is-instant .pshupopup-gift-lid,
.pshupopup-gift.is-instant .pshupopup-gift-prize {
    transition: none;
}

/* ---- motion, contrast, print ---- */
@media (prefers-reduced-motion: reduce) {
    .pshupopup-wrap,
    .pshupopup-wrap *,
    .pshupopup-wrap *::before,
    .pshupopup-wrap *::after {
        transition: none !important;
    }

    .pshupopup-box {
        opacity: 1;
        transform: none;
    }

    .pshupopup-overlay {
        opacity: var(--pshupopup-overlay-opacity);
    }
}

@media (forced-colors: active) {
    .pshupopup-box,
    .pshupopup-input,
    .pshupopup-btn,
    .pshupopup-coupon {
        border: 2px solid CanvasText;
    }

    .pshupopup-overlay {
        opacity: 0.6;
    }
}

@media print {
    .pshupopup-skin,
    .pshupopup-wrap {
        display: none !important;
    }
}
