/* Pop-up promo JUBIN : front + prévisualisation admin */

.jubin-popup {
    --jp-orange: #e8722a;
    --jp-orange-hover: #d4631f;
    --jp-text: #1a1a1a;
    --jp-muted: #6b7280;
    --jp-line: #e5e7eb;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jubin-popup:not(.jubin-popup--preview) {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jubin-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.58);
}

.jubin-popup__card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(88vh, 720px);
    overflow: auto;
    background: #fff;
    color: var(--jp-text);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.jubin-popup--preview {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 420px;
    padding: 28px 18px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.45)),
        #f3f4f6;
    border-radius: 14px;
}

.jubin-popup--preview .jubin-popup__overlay {
    border-radius: 14px;
}

.jubin-popup--preview .jubin-popup__card {
    max-height: 360px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.jubin-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.jubin-popup__close:hover {
    background: #fff;
    color: #111827;
}

.jubin-popup__image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f4f6;
}

.jubin-popup--preview .jubin-popup__image {
    height: 120px;
}

.jubin-popup__body {
    padding: 22px 24px 24px;
}

.jubin-popup__title {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--jp-text);
}

.jubin-popup--preview .jubin-popup__title {
    font-size: 20px;
}

.jubin-popup__text {
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.jubin-popup__text p,
.jubin-popup__text ul,
.jubin-popup__text ol {
    margin: 0 0 10px;
}

.jubin-popup__text p:last-child,
.jubin-popup__text ul:last-child,
.jubin-popup__text ol:last-child {
    margin-bottom: 0;
}

.jubin-popup__text a {
    color: var(--jp-orange);
    text-decoration: underline;
}

.jubin-popup__cta {
    display: none;
    margin-top: 18px;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--jp-orange);
    color: #fff;
    font: 600 15px/1.2 Inter, sans-serif;
    text-align: center;
    cursor: pointer;
}

.jubin-popup__cta:hover {
    background: var(--jp-orange-hover);
    color: #fff;
}

.jubin-popup__cta.is-visible {
    display: block;
}

.jubin-popup__empty {
    padding: 48px 24px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

body.jubin-popup-open {
    overflow: hidden;
}

body.jubin-popup-open #devis-panier {
    visibility: hidden;
}

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