/**
 * WTP Heart — Styles de la modale et du bouton.
 * Adapté du CSS embarqué dans wtp-front.js (module PrestaShop).
 */

/* ──────────────────────────────────────────────
   BOUTON "PERSONNALISER" sur la fiche produit
   ────────────────────────────────────────────── */
.wtp-customize-wrapper {
    margin: 16px 0;
}

.wtp-customize-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(196, 69, 105, 0.3);
}

.wtp-customize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196, 69, 105, 0.4);
}

.wtp-customize-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ──────────────────────────────────────────────
   MODALE OVERLAY
   ────────────────────────────────────────────── */
#wtp-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

#wtp-modal-inner {
    background: #fff;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    #wtp-modal-overlay {
        padding: 20px;
    }
    #wtp-modal-inner {
        max-height: calc(100vh - 40px);
        border-radius: 12px;
    }
}

#wtp-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8f9fc;
    border-bottom: 1px solid #e5e7eb;
}

#wtp-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

#wtp-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 8px;
    transition: color .15s;
}

#wtp-modal-close:hover {
    color: #111827;
}

#wtp-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    background: #fff;
}

#wtp-template-container {
    width: 100%;
    min-height: 100%;
}

/* ──────────────────────────────────────────────
   PANIER : vignette personnalisée
   ────────────────────────────────────────────── */
.wtp-cart-thumb {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eee;
}
