/* Storefront popup (Modules/PageBuilder/Resources/views/popups/card.blade.php), also used by the admin preview */
.gz-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 20, 30, .55);
    opacity: 0;
    transition: opacity .2s ease;
}
.gz-popup-overlay[hidden] { display: none; }
.gz-popup-overlay.is-open { opacity: 1; }

.gz-popup {
    --gz-popup-bg: #fff7f2;
    --gz-popup-accent: #f26b3a;
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 20px;
    background: var(--gz-popup-bg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    text-align: center;
    direction: rtl;
    transform: translateY(16px) scale(.97);
    transition: transform .25s ease;
}
.gz-popup-overlay.is-open .gz-popup { transform: none; }

.gz-popup-close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #333;
    font-size: 22px;
    line-height: 32px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.gz-popup-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}
.gz-popup-img[hidden] { display: none; }

.gz-popup-body { padding: 22px 22px 24px; }
.gz-popup-heading {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f1f2b;
    line-height: 1.6;
}
.gz-popup-text {
    margin: 0 0 16px;
    font-size: .95rem;
    color: #555;
    line-height: 1.9;
    white-space: pre-line;
}
.gz-popup-text:empty { display: none; }

.gz-popup-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border: 2px dashed var(--gz-popup-accent);
    border-radius: 14px;
    background: #fff;
}
.gz-popup-code-value {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--gz-popup-accent);
    text-align: center;
    direction: ltr;
}
.gz-popup-copy {
    flex-shrink: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--gz-popup-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.gz-popup-copy.is-copied { background: #28a745; }
.gz-popup-note {
    display: block;
    margin-top: 8px;
    font-size: .8rem;
    color: #888;
}

.gz-popup-link {
    display: block;
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #1f1f2b;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}
