@keyframes wpPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wpPopupFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes wpPopupZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes wpPopupZoomOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.85); }
}

@keyframes wpPopupSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wpPopupSlideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wpPopupSlideLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes wpPopupSlideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes wpPopupBounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes wpPopupFlipIn {
    from { opacity: 0; transform: perspective(400px) rotateY(90deg); }
    to { opacity: 1; transform: perspective(400px) rotateY(0); }
}

@keyframes wpPopupDotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes wpPopupShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.wp-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wp-popup-overlay.active {
    display: flex;
}

.wp-popup-pos--center { align-items: center; justify-content: center; }
.wp-popup-pos--top { align-items: flex-start; justify-content: center; padding-top: 40px; }
.wp-popup-pos--bottom { align-items: flex-end; justify-content: center; padding-bottom: 40px; }
.wp-popup-pos--left { align-items: center; justify-content: flex-start; padding-left: 40px; }
.wp-popup-pos--right { align-items: center; justify-content: flex-end; padding-right: 40px; }
.wp-popup-pos--top_left { align-items: flex-start; justify-content: flex-start; padding: 40px; }
.wp-popup-pos--top_right { align-items: flex-start; justify-content: flex-end; padding: 40px; }
.wp-popup-pos--bottom_left { align-items: flex-end; justify-content: flex-start; padding: 40px; }
.wp-popup-pos--bottom_right { align-items: flex-end; justify-content: flex-end; padding: 40px; }

.wp-popup-overlay.closing {
    pointer-events: none;
}

.wp-popup-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wp-popup-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    opacity: 0;
}

.wp-popup-overlay.active .wp-popup-container {
    opacity: 1;
}

.wp-popup-overlay.closing .wp-popup-container {
    opacity: 0;
}

.wp-popup--fade .wp-popup-container { animation: wpPopupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.wp-popup--fade.closing .wp-popup-container { animation: wpPopupFadeOut 0.25s ease forwards; }
.wp-popup--fade.closing .wp-popup-backdrop { animation: wpPopupFadeOut 0.25s ease forwards; }

.wp-popup--zoom .wp-popup-container { animation: wpPopupZoomIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.wp-popup--zoom.closing .wp-popup-container { animation: wpPopupZoomOut 0.25s ease forwards; }

.wp-popup--slide_up .wp-popup-container { animation: wpPopupSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.wp-popup--slide_down .wp-popup-container { animation: wpPopupSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.wp-popup--slide_left .wp-popup-container { animation: wpPopupSlideLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.wp-popup--slide_right .wp-popup-container { animation: wpPopupSlideRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.wp-popup--bounce .wp-popup-container { animation: wpPopupBounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.wp-popup--flip .wp-popup-container { animation: wpPopupFlipIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.wp-popup-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 9999 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #ffffff !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    flex-shrink: 0 !important;
}

.wp-popup-close:hover {
    transform: scale(1.12) rotate(90deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    border-color: #ffffff !important;
    filter: brightness(1.1) !important;
}

.wp-popup-close:active {
    transform: scale(0.94) !important;
}

.wp-popup-close:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
}

.wp-popup-close svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    margin: auto !important;
    padding: 0 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.wp-popup-inner {
    position: relative;
    display: flex;
    flex-direction: column;
}

.wp-popup-layout--left .wp-popup-inner {
    flex-direction: row;
}

.wp-popup-layout--right .wp-popup-inner {
    flex-direction: row-reverse;
}

.wp-popup-layout--left .wp-popup-media,
.wp-popup-layout--right .wp-popup-media {
    flex: 0 0 45%;
    max-height: 100%;
}

.wp-popup-layout--left .wp-popup-body,
.wp-popup-layout--right .wp-popup-body {
    flex: 1;
}

.wp-popup-layout--bg .wp-popup-inner {
    position: relative;
    min-height: 350px;
}

.wp-popup-media {
    position: relative;
    overflow: hidden;
}

.wp-popup-layout--top .wp-popup-media {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wp-popup-slide {
    display: none;
}

.wp-popup-slide.active {
    display: block;
    animation: wpPopupFadeIn 0.3s ease;
}

.wp-popup-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.wp-popup-layout--left .wp-popup-slide img,
.wp-popup-layout--right .wp-popup-slide img {
    height: 100%;
    min-height: 300px;
}

.wp-popup-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.wp-popup-body {
    position: relative;
}

.wp-popup-text-slide {
    display: none;
}

.wp-popup-text-slide.active {
    display: block;
    animation: wpPopupFadeIn 0.3s ease;
}

.wp-popup-heading {
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.wp-popup-desc {
    line-height: 1.65;
    margin: 0 0 20px 0;
    opacity: 0.85;
}

.wp-popup-desc p {
    margin: 0 0 10px 0;
}

.wp-popup-desc p:last-child {
    margin-bottom: 0;
}

.wp-popup-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.wp-popup-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: wpPopupShimmer 3s infinite;
}

.wp-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.wp-popup-cta:active {
    transform: translateY(0);
}

.wp-popup-cta svg {
    transition: transform 0.2s ease;
}

.wp-popup-cta:hover svg {
    transform: translateX(4px);
}

.wp-popup-slide-counter {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: inherit;
    opacity: 0.65;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.wp-popup-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 50 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #1a1a2e !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.85 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.wp-popup-container:hover .wp-popup-nav,
.wp-popup-media:hover .wp-popup-nav {
    opacity: 1 !important;
}

.wp-popup-nav:hover {
    background: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28) !important;
}

.wp-popup-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.wp-popup-nav svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    stroke: #1a1a2e !important;
    fill: none !important;
    margin: auto !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.wp-popup-nav--prev {
    left: 12px !important;
}

.wp-popup-nav--next {
    right: 12px !important;
}

.wp-popup-dots {
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 50 !important;
    padding: 6px 12px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 20px !important;
}

.wp-popup-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    max-width: 24px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    border: none !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.wp-popup-dot.active {
    background: #ffffff !important;
    width: 22px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.wp-popup-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.85) !important;
}

.wp-popup-type--toast {
    pointer-events: none;
}

.wp-popup-type--toast .wp-popup-backdrop {
    display: none !important;
}

.wp-popup-type--toast .wp-popup-container {
    pointer-events: auto;
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    top: auto;
    width: auto;
    max-width: 380px;
}

.wp-popup-type--slide_in .wp-popup-container {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    border-radius: 0 !important;
    transform: translateX(100%);
    opacity: 1;
}

.wp-popup-type--slide_in.wp-popup-overlay.active .wp-popup-container {
    animation: wpPopupSlideRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-name: wpPopupSlideInRight;
}

@keyframes wpPopupSlideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.wp-popup-type--slide_in.closing .wp-popup-container {
    animation: wpPopupSlideLeft 0.3s ease forwards;
    animation-name: wpPopupSlideOutRight;
}

@keyframes wpPopupSlideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

.wp-popup-type--fullscreen .wp-popup-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0 !important;
}

.wp-popup-type--fullscreen .wp-popup-inner {
    height: 100%;
}

@media (max-width: 768px) {
    .wp-popup-layout--left .wp-popup-inner,
    .wp-popup-layout--right .wp-popup-inner {
        flex-direction: column;
    }

    .wp-popup-layout--left .wp-popup-media,
    .wp-popup-layout--right .wp-popup-media {
        flex: none;
        width: 100%;
    }

    .wp-popup-layout--left .wp-popup-slide img,
    .wp-popup-layout--right .wp-popup-slide img {
        height: auto;
        min-height: auto;
    }

    .wp-popup-container {
        width: 92%;
        margin: 16px auto;
    }

    .wp-popup-type--toast .wp-popup-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .wp-popup-type--slide_in .wp-popup-container {
        width: 100%;
        max-width: 100%;
    }

    .wp-popup-heading {
        font-size: 22px !important;
    }

    .wp-popup-close {
        top: 10px !important;
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .wp-popup-nav {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        opacity: 0.9 !important;
    }

    .wp-popup-nav svg {
        width: 16px !important;
        height: 16px !important;
    }
}

.wp-popup-overlay * {
    box-sizing: border-box;
}
