/* =============================================
   Profile Completion Points v1.1 — pcp-style.css
   Compatible Blocksy theme
   ============================================= */

.pcp-wrap {
    max-width: 100%;
    width: 100%;
    font-family: inherit;
}

.pcp-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ── Barre de progression ── */
.pcp-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.pcp-progress-title {
    font-size: 15px;
    font-weight: 600;
}
.pcp-percent {
    font-size: 15px;
    font-weight: 600;
    color: #1D9E75;
}
.pcp-bar-track {
    height: 8px;
    background: #f0f0f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}
.pcp-bar-fill {
    height: 100%;
    background: #1D9E75;
    border-radius: 99px;
    transition: width 0.6s ease;
}
.pcp-progress-hint {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ── Compteurs ── */
.pcp-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.pcp-points-box {
    text-align: center;
    padding: 1rem;
    margin-bottom: 0;
}
.pcp-points-number {
    display: block;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}
.pcp-points-muted {
    color: #aaa;
}
.pcp-points-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ── Liste des champs ── */
.pcp-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.pcp-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s, border-color 0.15s;
}
.pcp-field--todo {
    cursor: pointer;
}
.pcp-field--todo:hover {
    background: #f5fdf9;
    border-color: #9FE1CB;
}
.pcp-field--done {
    border-color: #9FE1CB;
    background: #f4fcf9;
}

.pcp-field-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcp-field-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: #1D9E75;
}
.pcp-field--todo .pcp-field-icon {
    color: #bbb;
}
.pcp-field-pts {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}

/* ── Badges ── */
.pcp-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    line-height: 1.6;
}
.pcp-badge--done {
    background: #E1F5EE;
    color: #0F6E56;
}
.pcp-badge--missing {
    background: #FFF8EC;
    color: #854F0B;
}

/* ── Dark mode (Blocksy) ── */
@media (prefers-color-scheme: dark) {
    .pcp-card {
        background: #1e1e1e;
        border-color: #333;
    }
    .pcp-field {
        border-color: #333;
    }
    .pcp-field--done,
    .pcp-field--todo:hover {
        background: #0d2b22;
        border-color: #1D9E75;
    }
    .pcp-bar-track { background: #333; }
    .pcp-badge--done    { background: #0d2b22; }
    .pcp-badge--missing { background: #2b1e09; }
}

/* ═══════════════════════════════════════════
   Avatar upload — formulaire Account details
   ═══════════════════════════════════════════ */

.pcp-avatar-row {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}

.pcp-avatar-row label:first-child {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcp-pts-hint {
    font-size: 12px;
    font-weight: 500;
    background: #E1F5EE;
    color: #0F6E56;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Cercle avatar */
.pcp-avatar-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #E1F5EE;
    border: 2px solid #9FE1CB;
    flex-shrink: 0;
}

.pcp-avatar-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.pcp-avatar-initials {
    font-size: 24px;
    font-weight: 600;
    color: #0F6E56;
    line-height: 1;
}

/* Actions */
.pcp-avatar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pcp-btn-upload {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #1D9E75;
    color: #1D9E75 !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pcp-btn-upload:hover {
    background: #1D9E75;
    color: #ffffff !important;
}

.pcp-avatar-actions label:not(.pcp-btn-upload) {
    font-size: 13px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcp-avatar-filename {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .pcp-avatar-preview {
        background: #0d2b22;
        border-color: #1D9E75;
    }
    .pcp-btn-upload {
        background: transparent;
        border-color: #1D9E75;
    }
    .pcp-btn-upload:hover {
        background: #1D9E75;
    }
}

/* ═══════════════════════════════════════════
   Avis — boutons sur page commande
   ═══════════════════════════════════════════ */

.pcp-review-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.pcp-review-products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.pcp-review-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
}

.pcp-review-product-name {
    font-size: 14px;
    font-weight: 500;
}

.pcp-btn-review {
    display: inline-block;
    padding: 8px 16px;
    background: #1D9E75;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}
.pcp-btn-review:hover {
    background: #0F6E56;
}

.pcp-review-done {
    font-size: 13px;
    color: #0F6E56;
    background: #E1F5EE;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .pcp-review-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ═══════════════════════════════════════════
   Loyalty — onglet Mon Compte
   ═══════════════════════════════════════════ */

.pcp-loyalty-wrap {
    max-width: 100%;
}

/* ── Hero solde + niveau ── */
.pcp-loyalty-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 2px solid;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    background: #fff;
}

.pcp-loyalty-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
}

.pcp-loyalty-badge-icon {
    font-size: 20px;
}

.pcp-loyalty-badge-label {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.pcp-loyalty-balance {
    text-align: right;
}

.pcp-loyalty-pts-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.pcp-loyalty-pts-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* ── Progress card ── */
.pcp-loyalty-progress-card {
    margin-bottom: 1.5rem;
}

.pcp-loyalty-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

/* ── Titre niveaux ── */
.pcp-loyalty-levels-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

/* ── Grid niveaux ── */
.pcp-loyalty-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pcp-loyalty-level-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.pcp-level--active {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pcp-level-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 4px;
    position: relative;
}

.pcp-level-star {
    font-size: 24px;
}

.pcp-level-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pcp-level-current-badge {
    font-size: 11px;
    background: rgba(0,0,0,0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.pcp-level-range {
    font-size: 12px;
    color: #888;
}

.pcp-level-perks {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pcp-level-perks li {
    font-size: 13px;
    color: #555;
}

/* Mobile */
@media (max-width: 680px) {
    .pcp-loyalty-levels {
        grid-template-columns: 1fr;
    }
    .pcp-loyalty-hero {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .pcp-loyalty-balance {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════
   Subscribe & Save — Modal
   ═══════════════════════════════════════════ */

.pcp-sub-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pcp-sub-box {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.pcp-sub-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 0;
}
.pcp-sub-close:hover { color: #333; }

/* Produit header */
.pcp-sub-product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.pcp-sub-thumb {
    width: 56px !important;
    height: 56px !important;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.pcp-sub-product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* Titre */
.pcp-sub-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 1rem;
}

/* Options */
.pcp-sub-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.pcp-sub-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.pcp-sub-option:hover {
    border-color: #9FE1CB;
    background: #f9fefe;
}
.pcp-sub-option--active {
    border-color: #1D9E75 !important;
    background: #f4fcf9 !important;
}

/* Radio */
.pcp-sub-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}
.pcp-sub-option--active .pcp-sub-radio {
    border-color: #1D9E75;
}
.pcp-sub-option--active .pcp-sub-radio::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #1D9E75;
}

/* Content */
.pcp-sub-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.pcp-sub-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcp-sub-option-title {
    font-size: 14px;
    font-weight: 600;
}
.pcp-sub-option-price {
    font-size: 15px;
    font-weight: 700;
}
.pcp-sub-green { color: #1D9E75; }
.pcp-sub-period {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}
.pcp-sub-cancel-note {
    font-size: 12px;
    color: #888;
}
.pcp-sub-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: #1D9E75;
    color: #fff;
}

/* Bouton confirmer */
.pcp-sub-confirm {
    width: 100%;
    padding: 13px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}
.pcp-sub-confirm:hover { background: #333; }

@media (max-width: 480px) {
    .pcp-sub-box { padding: 1.25rem; }
}

/* ═══════════════════════════════════════════
   #60 — Add to next delivery
   ═══════════════════════════════════════════ */

.pcp-otd-wrap { max-width: 100%; }

.pcp-otd-header { margin-bottom: 1.25rem; }

.pcp-otd-next-date {
    font-size: 15px;
    margin: 0 0 6px;
}

.pcp-otd-note {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.pcp-otd-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.pcp-otd-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pcp-otd-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
}

.pcp-otd-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.pcp-otd-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pcp-otd-product-name {
    font-size: 14px;
    font-weight: 500;
}

.pcp-otd-product-price {
    font-size: 13px;
    color: #1D9E75;
    font-weight: 600;
}

.pcp-btn-otd {
    padding: 8px 16px;
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.pcp-btn-otd:hover { background: #0F6E56; }

@media (max-width: 600px) {
    .pcp-otd-product {
        flex-wrap: wrap;
    }
    .pcp-btn-otd { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════
   Returns & Exchanges
   ═══════════════════════════════════════════ */

.pcp-returns-wrap { max-width: 100%; }

/* Tabs nav */
.pcp-tabs-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 0;
}
.pcp-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.pcp-tab:hover { color: #333; }
.pcp-tab--active {
    color: #1D9E75 !important;
    border-bottom-color: #1D9E75;
}

/* Policy */
.pcp-returns-policy h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 1rem;
}
.pcp-policy-yes, .pcp-policy-no {
    font-size: 14px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 8px;
}
.pcp-policy-yes { background: #f4fcf9; color: #0F6E56; }
.pcp-policy-no  { background: #fff5f5; color: #C0392B; }
.pcp-policy-contact {
    font-size: 13px;
    color: #888;
    margin: 1rem 0 0;
}
.pcp-policy-contact a { color: #1D9E75; }

/* Return items */
.pcp-return-item { margin-bottom: 10px; }
.pcp-return-item--ineligible { opacity: 0.7; }

.pcp-return-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pcp-return-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.pcp-return-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}
.pcp-return-order-ref {
    font-size: 12px;
    color: #888;
}

/* Badges éligibilité */
.pcp-eligible-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #E1F5EE;
    color: #0F6E56;
    font-weight: 500;
    white-space: nowrap;
}
.pcp-ineligible-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #FFE8E8;
    color: #C0392B;
    font-weight: 500;
    white-space: nowrap;
}
.pcp-ineligible-reason {
    font-size: 12px;
    color: #C0392B;
    margin: 8px 0 0;
}

/* Formulaire retour */
.pcp-return-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}
.pcp-return-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.pcp-btn-toggle-form {
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #1D9E75;
    color: #1D9E75;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pcp-btn-toggle-form:hover {
    background: #1D9E75;
    color: #fff;
}
.pcp-returns-hint {
    font-size: 13px;
    color: #888;
    margin: 0 0 1rem;
}

/* Historique */
.pcp-return-history-item { margin-bottom: 10px; }
.pcp-return-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.pcp-return-history-header strong {
    display: block;
    font-size: 14px;
}
.pcp-return-meta {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
}
.pcp-return-reason-preview {
    font-size: 13px;
    color: #666;
    margin: 8px 0 0;
    font-style: italic;
}

/* Status badges */
.pcp-return-status-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}
.pcp-status--pending  { background: #FFF8EC; color: #854F0B; }
.pcp-status--approved { background: #E1F5EE; color: #0F6E56; }
.pcp-status--rejected { background: #FFE8E8; color: #C0392B; }

@media (max-width: 600px) {
    .pcp-tabs-nav { overflow-x: auto; }
    .pcp-return-item-header { flex-wrap: wrap; }
    .pcp-return-history-header { flex-direction: column; }
}

/* ═══════════════════════════════════════════
   Skin Tracker
   ═══════════════════════════════════════════ */

.pcp-tracker-wrap { max-width: 100%; }

.pcp-tabs-nav button.pcp-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.pcp-tracker-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 1rem;
}

.pcp-tracker-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin: 1rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pcp-tracker-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.pcp-form-group--checkbox {
    justify-content: flex-end;
    padding-top: 1.5rem;
}

/* Sliders */
.pcp-metric-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pcp-metric-label {
    width: 160px;
    font-size: 14px;
    flex-shrink: 0;
}
.pcp-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.pcp-slider-wrap input[type="range"] {
    flex: 1;
    height: 6px;
    cursor: pointer;
}
.pcp-slider-val {
    font-size: 14px;
    font-weight: 600;
    width: 28px;
    text-align: center;
}

/* Feedback */
.pcp-st-feedback {
    margin-left: 12px;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
}

/* History */
.pcp-hist-entry { margin-bottom: 10px; }
.pcp-hist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pcp-hist-header strong { font-size: 14px; }
.pcp-hist-time {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
    text-transform: capitalize;
}
.pcp-hist-delete {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}
.pcp-hist-delete:hover { color: #E74C3C; }

.pcp-hist-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.pcp-hist-metric-label {
    width: 100px;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}
.pcp-hist-metric-val {
    font-size: 12px;
    color: #888;
    width: 30px;
    text-align: right;
}

/* Mini bars */
.pcp-mini-bar-track {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 99px;
    overflow: hidden;
}
.pcp-mini-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.pcp-hist-habits {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.pcp-hist-habits span {
    font-size: 12px;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 6px;
    color: #555;
}
.pcp-hist-notes {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin: 6px 0 0;
}

/* Insights */
.pcp-insights-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pcp-insight-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 1rem;
}
.pcp-insight-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pcp-insight-label {
    width: 100px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}
.pcp-insight-avg {
    font-size: 13px;
    font-weight: 600;
    width: 35px;
    text-align: right;
}
.pcp-insight-trend {
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.pcp-corr-item {
    font-size: 14px;
    color: #444;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 0 0 8px;
}
.pcp-tracker-empty {
    font-size: 14px;
    color: #888;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 600px) {
    .pcp-metric-label { width: 110px; }
    .pcp-tracker-row { flex-direction: column; gap: 8px; }
}

/* ── Save Entry button fix ── */
#st-save {
    margin-top: 1.25rem;
    padding: 12px 28px;
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    display: inline-block;
}
#st-save:hover {
    background: #0F6E56;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29,158,117,0.3);
}
#st-save:active {
    transform: translateY(0);
    box-shadow: none;
}
#st-save:disabled {
    background: #aaa;
    cursor: default;
    transform: none;
}

/* ═══════════════════════════════════════════
   Gifting — page produit
   ═══════════════════════════════════════════ */

.pcp-gift-wrap {
    margin: 1.25rem 0;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Toggle row */
.pcp-gift-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
}

.pcp-gift-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pcp-gift-icon { font-size: 18px; }

/* Toggle switch */
.pcp-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.pcp-switch input { display: none; }
.pcp-switch-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 99px;
    cursor: pointer;
    transition: background 0.2s;
}
.pcp-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.pcp-switch input:checked + .pcp-switch-slider {
    background: #1D9E75;
}
.pcp-switch input:checked + .pcp-switch-slider::before {
    transform: translateX(20px);
}

/* Fields */
.pcp-gift-fields {
    padding: 0 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.pcp-gift-optional {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
    margin-left: 4px;
}

.pcp-char-count {
    font-size: 12px;
    color: #aaa;
    display: block;
    margin-top: 4px;
    text-align: right;
}

/* Confirmation (#33) */
.pcp-gift-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #f4fcf9;
    border: 1px solid #9FE1CB;
    border-radius: 8px;
    font-size: 13px;
    color: #0F6E56;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pcp-gift-confirm-icon {
    font-weight: 700;
    flex-shrink: 0;
}

/* Email notice (#35) */
#pcp-gift-email-notice {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #1D9E75;
    margin-top: 4px;
}
