/**
 * Parenthese Ceramique Gift Cards - Frontend Styles
 * Version: 2.0.0
 * Design premium ceramique artisanale
 *
 * Palette:
 *   Argile       #DCC9B6
 *   Terracotta   #C17763
 *   Blanc casse  #F5F2EC
 *   Vert sauge   #9CA89D
 *   Noir doux    #333333
 *   Border       #E8DFD6
 *
 * @package Parenthese_Ceramique_Gift_Cards
 */

/* ==========================================================================
1. CUSTOM PROPERTIES
========================================================================== */

:root {
    --pgc-argile: #DCC9B6;
    --pgc-terracotta: #C17763;
    --pgc-terracotta-dark: #A8604F;
    --pgc-terracotta-light: rgba(193, 119, 99, 0.08);
    --pgc-blanc-casse: #F5F2EC;
    --pgc-vert-sauge: #9CA89D;
    --pgc-vert-sauge-dark: #859087;
    --pgc-noir-doux: #333333;
    --pgc-border: #E8DFD6;
    --pgc-white: #FFFFFF;
    --pgc-error: #C75050;
    --pgc-success: #5B9A6B;
    --pgc-radius-sm: 6px;
    --pgc-radius-md: 10px;
    --pgc-radius-lg: 14px;
    --pgc-shadow-soft: 0 2px 8px rgba(51, 51, 51, 0.06);
    --pgc-shadow-md: 0 4px 16px rgba(51, 51, 51, 0.08);
    --pgc-shadow-lg: 0 8px 30px rgba(51, 51, 51, 0.10);
    --pgc-shadow-terracotta: 0 4px 14px rgba(193, 119, 99, 0.25);
    --pgc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pgc-font-base: inherit;
}

/* ==========================================================================
1b. ISOLATION FROM THEME / ELEMENTOR / WOOCOMMERCE GLOBAL STYLES
Elementor "Site Settings > Buttons / Form Fields", Hello Elementor's reset and
WooCommerce style <button>, <input>, headings and links GLOBALLY (selectors up
to 0,4,1). Every rule of this file is prefixed with .pgc-scope (the component
root carries that class); this block gives controls a clean baseline first,
component rules below re-apply the plugin design.
========================================================================== */

.pgc-scope :is(button, [type="button"], [type="submit"], [type="reset"]) {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    min-width: 0;
    min-height: 0;
    background: none;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    line-height: inherit;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* The HTML [hidden] attribute must win over component display rules. */
.pgc-scope [hidden] {
    display: none !important;
}

/* ==========================================================================
2. SCREEN READER ONLY
========================================================================== */

.pgc-scope .pgc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
3. WOOCOMMERCE PRODUCT PAGE OVERRIDES
========================================================================== */

/* Masquer les elements WooCommerce inutiles pour les cartes cadeaux */

body.single-product.product-type-pgc_gift_card .quantity,
body.single-product.product-type-pgc_gift_card .single_add_to_cart_button:not(.pgc-btn-submit) {
    display: none !important;
}

/* Passer le layout produit en pleine largeur (pas 2 colonnes image + summary) */
body.single-product.product-type-pgc_gift_card .woocommerce div.product,
body.single-product.product-type-pgc_gift_card .pgc-product-page,
body.single-product.product-type-pgc_gift_card div.product {
    max-width: 1200px;
    margin: 0 auto;
}

/* Fiche « épurée » = une seule colonne. Les thèmes réservent souvent une barre latérale (parfois VIDE, ou à gauche) à côté
   du contenu des pages WooCommerce : le configurateur se retrouvait alors poussé d'un côté avec un grand blanc de l'autre.
   Barres latérales masquées et colonne de contenu en pleine largeur (identifiants usuels : #secondary, aside.widget-area,
   #sidebar, #primary / .content-area). Sans effet sur les thèmes à blocs et sur les gabarits Elementor Pro (pas de classe
   pgc-clean-page). Pour garder la barre latérale : add_filter( 'pgc_clean_product_page', '__return_false' ). */
body.single-product.pgc-clean-page #secondary,
body.single-product.pgc-clean-page aside.widget-area,
body.single-product.pgc-clean-page aside#sidebar,
body.single-product.pgc-clean-page #left-sidebar,
body.single-product.pgc-clean-page #right-sidebar {
    display: none !important;
}

body.single-product.pgc-clean-page #primary.content-area,
body.single-product.pgc-clean-page #primary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 100% !important;
}

/* Gabarit autonome du plugin (templates/single-gift-card.php) : aucune classe « product » / « summary » de WooCommerce,
   donc aucune règle de mise en page du thème (2 colonnes, flottants, grille) ne s'y applique. */
body.single-product.product-type-pgc_gift_card .pgc-product-page {
    display: block;
    float: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    clear: both;
}
body.single-product.pgc-clean-page div.product .woocommerce-product-gallery,
body.single-product.pgc-clean-page .pgc-product-page .woocommerce-product-gallery {
    display: none;
}
body.single-product.product-type-pgc_gift_card div.product div.summary,
body.single-product.product-type-pgc_gift_card .pgc-product-page .pgc-product-summary {
    width: 100%;
    float: none;
}

/* Titre du produit */
body.single-product.product-type-pgc_gift_card div.product .product_title,
body.single-product.product-type-pgc_gift_card .pgc-product-page .product_title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pgc-noir-doux, #333);
    text-align: center;
    margin-bottom: 8px;
}

/* Styliser le prix "De X a Y" comme un badge */
body.single-product.product-type-pgc_gift_card div.product p.price,
body.single-product.product-type-pgc_gift_card .pgc-product-page p.price,
body.single-product.product-type-pgc_gift_card .elementor-widget-woocommerce-product-price p.price {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}
body.single-product.product-type-pgc_gift_card div.product p.price,
body.single-product.product-type-pgc_gift_card .pgc-product-page p.price,
body.single-product.product-type-pgc_gift_card .elementor-widget-woocommerce-product-price p.price {
    /* bloc centré à la largeur du texte (et non « inline-block ») : un thème ou Elementor qui passe .price en flex
       supprimait les espaces autour des montants (« De10,00 €à500,00 € »). */
    display: block !important;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 8px;
    white-space: normal;
    background: var(--pgc-terracotta-light, rgba(193, 119, 99, 0.08));
    border: 1px solid rgba(193, 119, 99, 0.15);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pgc-terracotta, #C17763);
}
body.single-product.product-type-pgc_gift_card div.product p.price .woocommerce-Price-amount,
body.single-product.product-type-pgc_gift_card .pgc-product-page p.price .woocommerce-Price-amount {
    color: var(--pgc-terracotta, #C17763);
    font-weight: 700;
}

/* Description courte centree */
body.single-product.product-type-pgc_gift_card div.product .woocommerce-product-details__short-description,
body.single-product.product-type-pgc_gift_card .pgc-product-page .woocommerce-product-details__short-description {
    text-align: center;
    font-size: 15px;
    color: #777;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Masquer les meta inutiles (SKU, categories) */
body.single-product.product-type-pgc_gift_card div.product .product_meta,
body.single-product.product-type-pgc_gift_card .pgc-product-page .product_meta {
    display: none;
}

/* Separateur avant le configurateur — remplacé par le ::before décoratif ci-dessous */
body.single-product.product-type-pgc_gift_card div.product .pgc-configurator-form,
body.single-product.product-type-pgc_gift_card .pgc-product-page .pgc-configurator-form {
    clear: both;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* ==========================================================================
3b. CONFIGURATOR FORM WRAPPER
========================================================================== */

/* Le formulaire garde la classe « cart » (compatibilité WooCommerce). Plusieurs thèmes — et le widget « Ajouter au panier »
   d'Elementor Pro — font de form.cart une ligne flex : les étapes se retrouvaient côte à côte, écrasées. La disposition est
   verrouillée : bloc pleine largeur, quel que soit le style du thème. */
form.cart.pgc-configurator-form.pgc-scope,
.pgc-configurator-form.pgc-scope {
    display: block !important;
    float: none !important;
    flex: 0 0 100% !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pgc-configurator-form.pgc-scope {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: var(--pgc-font-base);
    color: var(--pgc-noir-doux);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
3c. PRODUCT PAGE VISUAL ENHANCEMENTS
========================================================================== */

/* Fond crème subtil sur la page produit carte cadeau */

body.single-product.pgc-clean-page {
    background-color: var(--pgc-blanc-casse);
}

/* Zone summary : centrage et espacement généreux */
body.single-product.product-type-pgc_gift_card div.product div.summary,
body.single-product.product-type-pgc_gift_card .pgc-product-page .pgc-product-summary {
    padding: 0 0 48px;
}

/* Petite étiquette décorative "CARTE CADEAU" au-dessus du titre */
body.single-product.product-type-pgc_gift_card div.product .product_title::before,
body.single-product.product-type-pgc_gift_card .pgc-product-page .product_title::before {
    content: '✦  Carte Cadeau  ✦';
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--pgc-terracotta);
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.75;
}

/* Titre produit : élégant et bien espacé */
body.single-product.product-type-pgc_gift_card div.product .product_title,
body.single-product.product-type-pgc_gift_card .pgc-product-page .product_title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* Trait décoratif terracotta sous le titre */
body.single-product.product-type-pgc_gift_card div.product .product_title::after,
body.single-product.product-type-pgc_gift_card .pgc-product-page .product_title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--pgc-terracotta), var(--pgc-argile));
    border-radius: 2px;
    margin: 14px auto 0;
}

/* Description courte : meilleur espacement */
body.single-product.product-type-pgc_gift_card div.product .woocommerce-product-details__short-description,
body.single-product.product-type-pgc_gift_card .pgc-product-page .woocommerce-product-details__short-description {
    margin-bottom: 24px;
}

/* Séparateur décoratif avant le configurateur
Remplace le border-top simple par un label centré avec lignes */
body.single-product.product-type-pgc_gift_card div.product .pgc-configurator-form::before,
body.single-product.product-type-pgc_gift_card .pgc-product-page .pgc-configurator-form::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(
    to right,
    transparent,
    var(--pgc-border) 20%,
    var(--pgc-argile) 50%,
    var(--pgc-border) 80%,
    transparent
    );
    margin: 0 0 40px;
}

/* Fond blanc légèrement surélevé pour les étapes du formulaire sur desktop */

/* Responsive : enlever le card-style sur mobile */

/* Tablette : titre un peu plus grand */

@media (min-width: 768px) {
    body.single-product.product-type-pgc_gift_card div.product .product_title,
    body.single-product.product-type-pgc_gift_card .pgc-product-page .product_title {
        font-size: 36px;
    }
}

/* ==========================================================================
4. PROGRESS BAR
========================================================================== */

.pgc-scope .pgc-progress {
    margin-bottom: 40px;
    padding: 0 8px;
}

.pgc-scope .pgc-progress-track {
    position: relative;
    height: 4px;
    background: var(--pgc-border);
    border-radius: 2px;
    overflow: hidden;
}

.pgc-scope .pgc-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: var(--pgc-terracotta);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pgc-scope .pgc-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    position: relative;
}

.pgc-scope .pgc-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.pgc-scope .pgc-dot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pgc-blanc-casse);
    border: 2px solid var(--pgc-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--pgc-argile);
    transition: all var(--pgc-transition);
}

.pgc-scope .pgc-step-dot.active .pgc-dot-number,
.pgc-scope .pgc-step-dot.completed .pgc-dot-number {
    background: var(--pgc-terracotta);
    border-color: var(--pgc-terracotta);
    color: var(--pgc-white);
}

.pgc-scope .pgc-step-dot.completed .pgc-dot-number {
    background: var(--pgc-vert-sauge);
    border-color: var(--pgc-vert-sauge);
}

.pgc-scope .pgc-dot-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pgc-argile);
    transition: color var(--pgc-transition);
}

.pgc-scope .pgc-step-dot.active .pgc-dot-label {
    color: var(--pgc-terracotta);
}

.pgc-scope .pgc-step-dot.completed .pgc-dot-label {
    color: var(--pgc-vert-sauge);
}

.pgc-scope .pgc-step-dot:focus-visible .pgc-dot-number {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

/* ==========================================================================
5. TWO-COLUMN LAYOUT
========================================================================== */

.pgc-scope .pgc-configurator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

/* ==========================================================================
6. STEPS
========================================================================== */

.pgc-scope .pgc-step {
    animation: pgcFadeIn 0.4s ease both;
}

.pgc-scope .pgc-step-header {
    margin-bottom: 24px;
}

.pgc-scope .pgc-step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pgc-noir-doux);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pgc-scope .pgc-step-subtitle {
    font-size: 14px;
    color: var(--pgc-vert-sauge-dark);
    margin: 0;
    line-height: 1.5;
}

@keyframes pgcFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
7. TEMPLATE GRID
========================================================================== */

.pgc-scope .pgc-templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* Hide radio inputs inside cards */

.pgc-scope .pgc-template-card input[type="radio"],
.pgc-scope .pgc-amount-card input[type="radio"],
.pgc-scope .pgc-delivery-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pgc-scope .pgc-template-card {
    position: relative;
    display: block;
    border: 2px solid var(--pgc-border);
    border-radius: var(--pgc-radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--pgc-white);
    transition: all var(--pgc-transition);
    box-shadow: var(--pgc-shadow-soft);
    -webkit-tap-highlight-color: transparent;
}

.pgc-scope .pgc-template-card:hover {
    border-color: var(--pgc-argile);
    transform: translateY(-3px);
    box-shadow: var(--pgc-shadow-md);
}

.pgc-scope .pgc-template-card.pgc-selected {
    border-color: var(--pgc-terracotta);
    box-shadow: 0 0 0 1px var(--pgc-terracotta), var(--pgc-shadow-md);
}

.pgc-scope .pgc-template-card:focus-visible {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

/* .pgc-template-accent kept for backward compat */

.pgc-scope .pgc-template-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.pgc-scope .pgc-template-layout-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pgc-noir-doux);
}

.pgc-scope .pgc-template-info {
    padding: 12px 14px;
}

.pgc-scope .pgc-template-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--pgc-noir-doux);
}

/* Checkmark */

.pgc-scope .pgc-template-checkmark {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pgc-terracotta);
    color: var(--pgc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 2;
}

.pgc-scope .pgc-template-card.pgc-selected .pgc-template-checkmark {
    opacity: 1;
    transform: scale(1);
}

/* Template description */

.pgc-scope .pgc-template-desc {
    font-size: 11px;
    color: #888;
    margin: 4px 0 0;
    line-height: 1.4;
    font-style: italic;
}

/* Template color swatches */

.pgc-scope .pgc-template-colors {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.pgc-scope .pgc-mini-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-block;
}

/* Mini card preview elements */

.pgc-scope .pgc-template-preview {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    border-radius: var(--pgc-radius-lg, 12px) var(--pgc-radius-lg, 12px) 0 0;
}

.pgc-scope .pgc-mini-title {
    font-size: 8px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.pgc-scope .pgc-mini-amount {
    font-size: 18px;
    font-weight: 700;
    display: block;
    text-align: center;
    margin: 2px 0;
}

.pgc-scope .pgc-mini-amount-lg {
    font-size: 22px;
}

.pgc-scope .pgc-mini-text {
    font-size: 9px;
    display: block;
    opacity: 0.6;
}

.pgc-scope .pgc-mini-divider {
    width: 24px;
    height: 1.5px;
    margin: 4px auto;
    border-radius: 1px;
}

.pgc-scope .pgc-mini-ornament {
    font-size: 8px;
    display: block;
    text-align: center;
    letter-spacing: 2px;
    margin: 2px 0;
}

/* Mini split layout */

.pgc-scope .pgc-mini-split .pgc-template-preview,
.pgc-scope .pgc-template-preview.pgc-mini-split {
    flex-direction: row;
    padding: 0;
}

.pgc-scope .pgc-mini-split-left {
    width: 42%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: var(--pgc-radius-lg, 12px) 0 0 0;
}

.pgc-scope .pgc-mini-split-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* Mini minimal layout */

.pgc-scope .pgc-template-preview.pgc-mini-minimal {
    padding: 0;
}

.pgc-scope .pgc-mini-bar-top,
.pgc-scope .pgc-mini-bar-bottom {
    width: 100%;
    height: 3px;
    flex-shrink: 0;
}

.pgc-scope .pgc-mini-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini bordered layout */

.pgc-scope .pgc-template-preview.pgc-mini-bordered {
    padding: 8px;
}

.pgc-scope .pgc-mini-frame {
    border: 1.5px solid;
    border-radius: 4px;
    padding: 8px 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
8. AMOUNT GRID
========================================================================== */

.pgc-scope .pgc-amounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.pgc-scope .pgc-amount-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border: 2px solid var(--pgc-border);
    border-radius: var(--pgc-radius-md);
    background: var(--pgc-white);
    cursor: pointer;
    transition: all var(--pgc-transition);
    text-align: center;
    box-shadow: var(--pgc-shadow-soft);
    -webkit-tap-highlight-color: transparent;
}

.pgc-scope .pgc-amount-card:hover {
    border-color: var(--pgc-argile);
    background: var(--pgc-blanc-casse);
    transform: translateY(-2px);
    box-shadow: var(--pgc-shadow-md);
}

.pgc-scope .pgc-amount-card.pgc-selected {
    border-color: var(--pgc-terracotta);
    background: var(--pgc-terracotta-light);
    transform: scale(1.04);
    box-shadow: 0 0 0 1px var(--pgc-terracotta), var(--pgc-shadow-terracotta);
}

.pgc-scope .pgc-amount-card:focus-visible {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

.pgc-scope .pgc-amount-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--pgc-noir-doux);
    line-height: 1;
    transition: color var(--pgc-transition);
}

.pgc-scope .pgc-amount-card.pgc-selected .pgc-amount-value {
    color: var(--pgc-terracotta);
}

.pgc-scope .pgc-amount-currency {
    font-size: 12px;
    font-weight: 600;
    color: var(--pgc-vert-sauge);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pgc-scope .pgc-amount-checkmark {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pgc-terracotta);
    color: var(--pgc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.pgc-scope .pgc-amount-card.pgc-selected .pgc-amount-checkmark {
    opacity: 1;
    transform: scale(1);
}

/* Custom amount label */

.pgc-scope .pgc-custom-label {
    font-size: 16px;
    font-weight: 600;
}

/* Custom amount field */

.pgc-scope .pgc-custom-amount-field {
    margin-top: 16px;
    padding: 16px;
    background: var(--pgc-blanc-casse);
    border-radius: var(--pgc-radius-md);
    border: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.pgc-scope .pgc-input-with-unit .pgc-input {
    padding-right: 44px;
}

.pgc-scope .pgc-input-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 700;
    color: var(--pgc-terracotta);
    pointer-events: none;
}

.pgc-scope .pgc-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--pgc-vert-sauge-dark);
    font-style: italic;
}

/* ==========================================================================
9. FORM FIELDS
========================================================================== */

.pgc-scope .pgc-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pgc-scope .pgc-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.pgc-scope .pgc-form-group {
    display: flex;
    flex-direction: column;
}

.pgc-scope .pgc-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pgc-noir-doux);
    letter-spacing: 0.2px;
}

.pgc-scope .pgc-required {
    color: var(--pgc-terracotta);
    font-weight: 700;
}

.pgc-scope .pgc-char-counter {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    color: var(--pgc-vert-sauge);
}

.pgc-scope .pgc-char-current {
    font-weight: 600;
    transition: color var(--pgc-transition);
}

.pgc-scope .pgc-char-current.warning {
    color: var(--pgc-error);
}

.pgc-scope .pgc-input,
.pgc-scope .pgc-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--pgc-border);
    border-radius: var(--pgc-radius-sm);
    font-size: 14px;
    font-family: var(--pgc-font-base);
    color: var(--pgc-noir-doux);
    background: var(--pgc-white);
    transition: border-color var(--pgc-transition), box-shadow var(--pgc-transition);
    box-sizing: border-box;
}

.pgc-scope .pgc-input::placeholder,
.pgc-scope .pgc-textarea::placeholder {
    color: var(--pgc-argile);
}

.pgc-scope .pgc-input:hover,
.pgc-scope .pgc-textarea:hover {
    border-color: var(--pgc-argile);
}

.pgc-scope .pgc-input:focus,
.pgc-scope .pgc-textarea:focus {
    outline: none;
    border-color: var(--pgc-terracotta);
    box-shadow: 0 0 0 3px rgba(193, 119, 99, 0.1);
}

.pgc-scope .pgc-input:focus-visible,
.pgc-scope .pgc-textarea:focus-visible {
    outline: none;
    border-color: var(--pgc-terracotta);
    box-shadow: 0 0 0 3px rgba(193, 119, 99, 0.15);
}

.pgc-scope .pgc-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.pgc-scope .pgc-field-error {
    display: block;
    min-height: 0;
    font-size: 12px;
    color: var(--pgc-error);
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--pgc-transition);
}

.pgc-scope .pgc-field-error:not(:empty) {
    opacity: 1;
    transform: translateY(0);
    min-height: 18px;
}

/* Error state on input */

.pgc-scope .pgc-form-group.has-error .pgc-input,
.pgc-scope .pgc-form-group.has-error .pgc-textarea {
    border-color: var(--pgc-error);
    box-shadow: 0 0 0 3px rgba(199, 80, 80, 0.08);
}

/* ==========================================================================
10. DELIVERY OPTIONS
========================================================================== */

.pgc-scope .pgc-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pgc-scope .pgc-delivery-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--pgc-border);
    border-radius: var(--pgc-radius-md);
    background: var(--pgc-white);
    cursor: pointer;
    transition: all var(--pgc-transition);
    -webkit-tap-highlight-color: transparent;
}

.pgc-scope .pgc-delivery-option:hover {
    border-color: var(--pgc-argile);
    background: var(--pgc-blanc-casse);
}

.pgc-scope .pgc-delivery-option.pgc-selected {
    border-color: var(--pgc-terracotta);
    background: var(--pgc-terracotta-light);
}

.pgc-scope .pgc-delivery-option:focus-within {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

.pgc-scope .pgc-option-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.pgc-scope .pgc-option-icon {
    flex-shrink: 0;
    color: var(--pgc-argile);
    transition: color var(--pgc-transition);
}

.pgc-scope .pgc-delivery-option.pgc-selected .pgc-option-icon {
    color: var(--pgc-terracotta);
}

.pgc-scope .pgc-option-content div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pgc-scope .pgc-option-content strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--pgc-noir-doux);
}

.pgc-scope .pgc-option-content span {
    font-size: 13px;
    color: var(--pgc-vert-sauge-dark);
}

/* ==========================================================================
11. SCHEDULE / TOGGLE
========================================================================== */

.pgc-scope .pgc-schedule-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--pgc-noir-doux);
    -webkit-user-select: none;
    user-select: none;
}

/* Custom toggle switch */

.pgc-scope .pgc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.pgc-scope .pgc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.pgc-scope .pgc-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--pgc-border);
    border-radius: 12px;
    transition: background var(--pgc-transition);
    cursor: pointer;
}

.pgc-scope .pgc-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pgc-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform var(--pgc-transition);
}

.pgc-scope .pgc-toggle input:checked + .pgc-toggle-slider {
    background: var(--pgc-terracotta);
}

.pgc-scope .pgc-toggle input:checked + .pgc-toggle-slider::before {
    transform: translateX(20px);
}

.pgc-scope .pgc-toggle input:focus-visible + .pgc-toggle-slider {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

.pgc-scope .pgc-scheduled-date {
    margin-top: 14px;
    padding: 14px;
    background: var(--pgc-blanc-casse);
    border-radius: var(--pgc-radius-sm);
    animation: pgcFadeIn 0.3s ease both;
}

/* ==========================================================================
12. ORDER SUMMARY
========================================================================== */

.pgc-scope .pgc-order-summary {
    margin-top: 28px;
    padding: 20px;
    background: var(--pgc-blanc-casse);
    border: 1px solid var(--pgc-border);
    border-radius: var(--pgc-radius-md);
}

.pgc-scope .pgc-summary-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pgc-noir-doux);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pgc-scope .pgc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.pgc-scope .pgc-summary-label {
    font-size: 13px;
    color: var(--pgc-vert-sauge-dark);
}

.pgc-scope .pgc-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--pgc-noir-doux);
}

.pgc-scope .pgc-summary-highlight {
    padding: 8px 0;
    border-top: 1px dashed var(--pgc-border);
    border-bottom: 1px dashed var(--pgc-border);
    margin: 4px 0;
}

.pgc-scope .pgc-summary-highlight .pgc-summary-label {
    font-weight: 600;
    color: var(--pgc-noir-doux);
}

.pgc-scope .pgc-summary-highlight .pgc-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--pgc-terracotta);
}

/* ==========================================================================
13. NAVIGATION BUTTONS
========================================================================== */

.pgc-scope .pgc-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--pgc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--pgc-font-base);
    cursor: pointer;
    transition: all var(--pgc-transition);
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

.pgc-scope .pgc-btn:focus-visible {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

.pgc-scope .pgc-btn-next {
    background: var(--pgc-terracotta);
    color: var(--pgc-white);
    margin-left: auto;
}

.pgc-scope .pgc-btn-next:hover {
    background: var(--pgc-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--pgc-shadow-terracotta);
}

.pgc-scope .pgc-btn-next:active {
    transform: translateY(0);
}

.pgc-scope .pgc-btn-back {
    background: transparent;
    color: var(--pgc-vert-sauge-dark);
    padding-left: 12px;
}

.pgc-scope .pgc-btn-back:hover {
    color: var(--pgc-noir-doux);
    background: var(--pgc-blanc-casse);
}

.pgc-scope .pgc-btn-submit {
    background: var(--pgc-terracotta);
    color: var(--pgc-white);
    padding: 14px 28px;
    font-size: 15px;
    margin-left: auto;
}

.pgc-scope .pgc-btn-submit:hover {
    background: var(--pgc-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--pgc-shadow-terracotta);
}

.pgc-scope .pgc-btn-submit:active {
    transform: translateY(0);
}

.pgc-scope .pgc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
14. PREVIEW COLUMN
========================================================================== */

.pgc-scope .pgc-preview-column {
    display: none;
}

.pgc-scope .pgc-preview-sticky {
    position: relative;
}

.pgc-scope .pgc-preview-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pgc-vert-sauge-dark);
    background: var(--pgc-blanc-casse);
    border: 1px solid var(--pgc-border);
    border-radius: 20px;
}

.pgc-scope .pgc-preview-container {
    position: relative;
    background: var(--pgc-blanc-casse);
    border: 1px solid var(--pgc-border);
    border-radius: var(--pgc-radius-lg);
    padding: 28px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pgc-scope .pgc-preview-placeholder {
    text-align: center;
    color: var(--pgc-argile);
}

.pgc-scope .pgc-preview-placeholder svg {
    display: block;
    margin: 0 auto 12px;
    opacity: 0.5;
}

.pgc-scope .pgc-preview-placeholder p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.pgc-scope .pgc-preview-card {
    width: 100%;
    animation: pgcFadeIn 0.4s ease both;
}

.pgc-scope .pgc-preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 242, 236, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5;
}

/* ==========================================================================
15. SPINNER
========================================================================== */

.pgc-scope .pgc-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--pgc-border);
    border-top-color: var(--pgc-terracotta);
    border-radius: 50%;
    animation: pgcSpin 0.7s linear infinite;
}

@keyframes pgcSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
16. VALIDATION MESSAGES
========================================================================== */

.pgc-scope .pgc-validation-messages {
    margin-bottom: 16px;
}

.pgc-scope .pgc-validation-messages:empty {
    display: none;
}

.pgc-scope .pgc-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--pgc-radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    animation: pgcSlideDown 0.3s ease both;
}

.pgc-scope .pgc-message-error {
    background: rgba(199, 80, 80, 0.08);
    border: 1px solid rgba(199, 80, 80, 0.2);
    color: var(--pgc-error);
}

.pgc-scope .pgc-message-success {
    background: rgba(91, 154, 107, 0.08);
    border: 1px solid rgba(91, 154, 107, 0.2);
    color: var(--pgc-success);
}

@keyframes pgcSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
17. CHECK CARD SHORTCODE
========================================================================== */

.pgc-check-card-wrapper.pgc-scope {
    max-width: 520px;
    margin: 40px auto;
    padding: 36px;
    background: var(--pgc-white);
    border: 1px solid var(--pgc-border);
    border-radius: var(--pgc-radius-lg);
    box-shadow: var(--pgc-shadow-md);
}

.pgc-scope .pgc-check-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pgc-noir-doux);
    margin: 0 0 24px 0;
    text-align: center;
}

.pgc-scope .pgc-check-card-form {
    margin-bottom: 20px;
}

.pgc-scope .pgc-input-group {
    display: flex;
    gap: 10px;
}

.pgc-scope .pgc-input-code {
    flex: 1;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pgc-scope .pgc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--pgc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--pgc-font-base);
    cursor: pointer;
    transition: all var(--pgc-transition);
    white-space: nowrap;
}

.pgc-scope .pgc-button:focus-visible {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

.pgc-scope .pgc-button-check {
    background: var(--pgc-vert-sauge);
    color: var(--pgc-white);
}

.pgc-scope .pgc-button-check:hover {
    background: var(--pgc-vert-sauge-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156, 168, 157, 0.3);
}

.pgc-scope .pgc-button-check:active {
    transform: translateY(0);
}

.pgc-scope .pgc-check-result {
    padding: 20px;
    background: var(--pgc-blanc-casse);
    border: 1px solid var(--pgc-border);
    border-radius: var(--pgc-radius-md);
    animation: pgcFadeIn 0.4s ease both;
}

.pgc-scope .pgc-result-content {
    text-align: center;
    font-size: 14px;
    color: var(--pgc-noir-doux);
    line-height: 1.6;
}

.pgc-scope .pgc-check-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--pgc-vert-sauge-dark);
    font-size: 13px;
}

/* Card result display */

.pgc-scope .pgc-card-result {
    border-radius: var(--pgc-radius-md);
    overflow: hidden;
}

.pgc-scope .pgc-result-header {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgc-scope .pgc-card-valid .pgc-result-header {
    background: rgba(127, 165, 127, 0.12);
    color: #5a8a5a;
}

.pgc-scope .pgc-card-error .pgc-result-header {
    background: rgba(193, 119, 99, 0.1);
    color: var(--pgc-terracotta);
}

.pgc-scope .pgc-result-icon {
    font-size: 18px;
}

.pgc-scope .pgc-result-details {
    padding: 16px 20px;
}

.pgc-scope .pgc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-result-row:last-child {
    border-bottom: none;
}

.pgc-scope .pgc-result-label {
    font-size: 13px;
    color: #666;
}

.pgc-scope .pgc-result-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--pgc-noir-doux);
}

.pgc-scope .pgc-result-value code {
    font-family: 'Monaco', 'Consolas', monospace;
    letter-spacing: 1px;
    background: var(--pgc-blanc-casse);
    padding: 2px 8px;
    border-radius: 4px;
}

.pgc-scope .pgc-result-balance {
    font-size: 18px;
    color: var(--pgc-terracotta);
}

.pgc-scope .pgc-button-check:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ==========================================================================
18. NO-TEMPLATES FALLBACK
========================================================================== */

.pgc-scope .pgc-no-templates {
    text-align: center;
    padding: 32px;
    color: var(--pgc-vert-sauge-dark);
    font-style: italic;
}

/* ==========================================================================
19. RESPONSIVE - TABLET (768px+)
========================================================================== */

/* ==========================================================================
20. RESPONSIVE - DESKTOP (992px+)
========================================================================== */

/* ==========================================================================
21. RESPONSIVE - WIDE (1200px+)
========================================================================== */

/* ==========================================================================
22. REDUCED MOTION
========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .pgc-scope *,
    .pgc-scope *::before,
    .pgc-scope *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pgc-scope .pgc-progress-fill {
        transition: none;
    }

    .pgc-scope .pgc-template-card:hover,
    .pgc-scope .pgc-amount-card:hover,
    .pgc-scope .pgc-amount-card.pgc-selected,
    .pgc-scope .pgc-btn-next:hover,
    .pgc-scope .pgc-btn-submit:hover,
    .pgc-scope .pgc-button-check:hover {
        transform: none;
    }

}

/* ==========================================================================
23. RESERVATION PAYMENT WIDGET
========================================================================== */

.pgc-reservation-payment-wrapper.pgc-scope {
    max-width: 520px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--pgc-blanc-casse);
    border-radius: 12px;
    border: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-reservation-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgc-noir-doux);
    margin: 0 0 0.5rem;
    text-align: center;
}

.pgc-scope .pgc-reservation-description {
    font-size: 0.95rem;
    color: #777;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* Barre de progression reservation */

.pgc-scope .pgc-res-progress {
    margin-bottom: 32px;
    padding: 0 4px;
}

.pgc-scope .pgc-res-progress-track {
    position: relative;
    height: 3px;
    background: var(--pgc-border);
    border-radius: 2px;
    overflow: hidden;
}

.pgc-scope .pgc-res-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 33.33%;
    background: var(--pgc-terracotta);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pgc-scope .pgc-res-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.pgc-scope .pgc-res-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pgc-scope .pgc-res-dot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pgc-blanc-casse);
    border: 2px solid var(--pgc-border);
    font-size: 12px;
    font-weight: 700;
    color: var(--pgc-argile);
    transition: all var(--pgc-transition);
}

.pgc-scope .pgc-res-dot.active .pgc-res-dot-number {
    background: var(--pgc-terracotta);
    border-color: var(--pgc-terracotta);
    color: #fff;
}

.pgc-scope .pgc-res-dot.completed .pgc-res-dot-number {
    background: var(--pgc-vert-sauge);
    border-color: var(--pgc-vert-sauge);
    color: #fff;
}

.pgc-scope .pgc-res-dot-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--pgc-argile);
    transition: color var(--pgc-transition);
}

.pgc-scope .pgc-res-dot.active .pgc-res-dot-label {
    color: var(--pgc-terracotta);
}

.pgc-scope .pgc-res-dot.completed .pgc-res-dot-label {
    color: var(--pgc-vert-sauge);
}

/* Sections du formulaire */

.pgc-scope .pgc-res-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0ebe4;
}

.pgc-scope .pgc-res-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pgc-scope .pgc-res-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pgc-noir-doux);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgc-scope .pgc-res-section-title svg {
    flex-shrink: 0;
    color: var(--pgc-terracotta);
}

/* Grille 2 colonnes pour les champs client */

.pgc-scope .pgc-res-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Champ individuel */

.pgc-scope .pgc-res-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pgc-scope .pgc-res-field label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 3px;
}

.pgc-scope .pgc-res-field .required {
    color: var(--pgc-terracotta);
    font-weight: 600;
    font-size: 0.9rem;
}

.pgc-scope .pgc-res-field .pgc-input {
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid var(--pgc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--pgc-noir-doux);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.pgc-scope .pgc-res-field .pgc-input:focus {
    border-color: var(--pgc-terracotta);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 119, 99, 0.1);
}

.pgc-scope .pgc-res-field .pgc-input::placeholder {
    color: #bbb;
}

/* Required asterisk — scoped to reservation to avoid overriding configurator */

.pgc-reservation-payment-wrapper.pgc-scope .pgc-required {
    color: var(--pgc-terracotta);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Card section */

.pgc-scope .pgc-res-section--card {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Code input + verify button group */

.pgc-scope .pgc-res-code-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.pgc-scope .pgc-res-code-group .pgc-input-code {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--pgc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--pgc-noir-doux);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.pgc-scope .pgc-res-code-group .pgc-input-code:focus {
    border-color: var(--pgc-terracotta);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 119, 99, 0.1);
}

/* Verify button (reservation) */

.pgc-scope .pgc-btn-verify {
    background: var(--pgc-terracotta);
    color: #fff;
    white-space: nowrap;
    padding: 12px 20px;
}

.pgc-scope .pgc-btn-verify:hover {
    background: var(--pgc-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--pgc-shadow-terracotta);
}

.pgc-scope .pgc-btn-verify:active {
    transform: translateY(0);
}

.pgc-scope .pgc-btn-verify svg {
    flex-shrink: 0;
}

/* Client recap card (step 2) */

.pgc-scope .pgc-client-recap {
    margin-bottom: 1.5rem;
}

/* Email confirmation info (step 3) */

.pgc-scope .pgc-success-email-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(156, 168, 157, 0.1);
    border: 1px solid rgba(156, 168, 157, 0.25);
    color: #555;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1.25rem;
    line-height: 1.5;
}

.pgc-scope .pgc-success-email-info::before {
    content: '\2709';
    font-size: 1.1rem;
    color: var(--pgc-vert-sauge);
}

.pgc-scope .pgc-success-email-info strong {
    color: var(--pgc-noir-doux);
    font-weight: 600;
}

/* Formulaire verification */

.pgc-scope .pgc-reservation-form .pgc-input-group {
    display: flex;
    gap: 10px;
}

.pgc-scope .pgc-reservation-form .pgc-input-code {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--pgc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--pgc-noir-doux);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: border-color 0.2s;
}

.pgc-scope .pgc-reservation-form .pgc-input-code:focus {
    border-color: var(--pgc-terracotta);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 119, 99, 0.1);
}

.pgc-scope .pgc-button-verify {
    padding: 12px 24px;
    background: var(--pgc-terracotta);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.pgc-scope .pgc-button-verify:hover {
    background: var(--pgc-terracotta-dark);
}

.pgc-scope .pgc-button-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Card info (step 2) */

.pgc-scope .pgc-reservation-card-detail {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--pgc-border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pgc-scope .pgc-rcard-header {
    background: linear-gradient(135deg, var(--pgc-vert-sauge), var(--pgc-vert-sauge-dark));
    color: #fff;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgc-scope .pgc-rcard-header--client {
    background: linear-gradient(135deg, var(--pgc-terracotta), var(--pgc-terracotta-dark));
}

.pgc-scope .pgc-rcard-header svg {
    flex-shrink: 0;
}

.pgc-scope .pgc-rcard-icon {
    font-size: 1.2rem;
}

.pgc-scope .pgc-rcard-rows {
    padding: 8px 0;
}

.pgc-scope .pgc-rcard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f0ebe4;
}

.pgc-scope .pgc-rcard-row:last-child {
    border-bottom: none;
}

.pgc-scope .pgc-rcard-label {
    font-size: 0.9rem;
    color: #888;
}

.pgc-scope .pgc-rcard-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pgc-noir-doux);
}

.pgc-scope .pgc-rcard-balance {
    color: var(--pgc-vert-sauge-dark);
    font-size: 1.05rem;
}

.pgc-scope .pgc-rcard-row-amount {
    background: rgba(193, 119, 99, 0.05);
}

.pgc-scope .pgc-rcard-debit {
    color: var(--pgc-terracotta);
    font-size: 1.05rem;
}

.pgc-scope .pgc-rcard-warning {
    background: #FFF3CD;
}

.pgc-scope .pgc-rcard-warning .pgc-rcard-label,
.pgc-scope .pgc-rcard-warning .pgc-rcard-value {
    color: #856404;
}

/* Actions */

.pgc-scope .pgc-reservation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pgc-scope .pgc-button-back {
    padding: 12px 24px;
    background: transparent;
    color: var(--pgc-noir-doux);
    border: 1px solid var(--pgc-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pgc-scope .pgc-button-back:hover {
    background: #f5f0ea;
    border-color: #ccc;
}

.pgc-scope .pgc-button-pay {
    padding: 12px 32px;
    background: var(--pgc-vert-sauge);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pgc-scope .pgc-button-pay:hover {
    background: var(--pgc-vert-sauge-dark);
}

.pgc-scope .pgc-button-pay:disabled,
.pgc-scope .pgc-button-pay.pgc-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reservation-specific button overrides */

.pgc-scope .pgc-res-btn-back {
    border: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-res-btn-pay {
    background: var(--pgc-vert-sauge);
    color: #fff;
}

.pgc-scope .pgc-res-btn-pay:hover {
    background: var(--pgc-vert-sauge-dark);
    box-shadow: 0 4px 14px rgba(156, 168, 157, 0.3);
}

/* Button loading state */

.pgc-scope .pgc-btn--loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.pgc-scope .pgc-btn--loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pgcSpin 0.6s linear infinite;
}

/* Button disabled state */

.pgc-scope .pgc-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Success (step 3) */

.pgc-scope .pgc-reservation-success {
    text-align: center;
    padding: 1rem 0;
}

.pgc-scope .pgc-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    background: var(--pgc-vert-sauge);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.pgc-scope .pgc-reservation-success h4 {
    font-size: 1.3rem;
    color: var(--pgc-noir-doux);
    margin: 0 0 0.5rem;
}

.pgc-scope .pgc-success-message {
    color: #777;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.pgc-scope .pgc-success-rows {
    text-align: left;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--pgc-border);
    overflow: hidden;
}

.pgc-scope .pgc-success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0ebe4;
}

.pgc-scope .pgc-success-row:last-child {
    border-bottom: none;
}

.pgc-scope .pgc-success-row span {
    color: #888;
    font-size: 0.9rem;
}

.pgc-scope .pgc-success-row strong {
    color: var(--pgc-noir-doux);
    font-size: 0.95rem;
}

/* Loading & error */

.pgc-scope .pgc-reservation-loading {
    text-align: center;
    padding: 1.5rem;
}

.pgc-scope .pgc-reservation-error-msg {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgc-scope .pgc-error-icon {
    font-size: 1rem;
}

/* Responsive */

@media (max-width: 600px) {
    .pgc-reservation-payment-wrapper.pgc-scope {
        padding: 1.25rem;
        margin: 1rem;
    }

    .pgc-scope .pgc-res-progress {
        margin-bottom: 24px;
    }

    .pgc-scope .pgc-res-dot-label {
        font-size: 9px;
    }

    .pgc-scope .pgc-res-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pgc-scope .pgc-res-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .pgc-scope .pgc-res-code-group {
        flex-direction: column;
    }

    .pgc-scope .pgc-res-code-group .pgc-btn-verify {
        width: 100%;
        justify-content: center;
    }

    .pgc-scope .pgc-reservation-form .pgc-input-group {
        flex-direction: column;
    }

    .pgc-scope .pgc-button-verify {
        width: 100%;
    }

    .pgc-scope .pgc-reservation-actions {
        flex-direction: column;
    }

    .pgc-scope .pgc-button-back,
    .pgc-scope .pgc-button-pay,
    .pgc-scope .pgc-res-btn-back,
    .pgc-scope .pgc-res-btn-pay {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .pgc-scope .pgc-success-email-info {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

}

/* Reservation step containers (structural) */

.pgc-scope .pgc-reservation-step {
    animation: pgcFadeIn 0.3s ease;
}

.pgc-scope .pgc-reservation-card-info,
.pgc-scope .pgc-reservation-client-recap {
    margin-bottom: 1rem;
}

.pgc-scope .pgc-success-details {
    margin-bottom: 0.5rem;
}

/* Error container */

.pgc-scope .pgc-reservation-error {
    margin-top: 1rem;
}

/* Form row (check card) */

.pgc-scope .pgc-form-row {
    margin-bottom: 1rem;
}

/* Loading text */

.pgc-scope .pgc-loading-text {
    font-size: 0.9rem;
    color: #888;
    margin-left: 8px;
}

/* Step transitions */

@keyframes pgcSlideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pgcSlideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pgcSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-20px); }
}

@keyframes pgcSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(20px); }
}

.pgc-scope .pgc-slide-in-left {
    animation: pgcSlideInLeft 0.3s ease forwards;
}

.pgc-scope .pgc-slide-in-right {
    animation: pgcSlideInRight 0.3s ease forwards;
}

.pgc-scope .pgc-slide-out-left {
    animation: pgcSlideOutLeft 0.3s ease forwards;
}

.pgc-scope .pgc-slide-out-right {
    animation: pgcSlideOutRight 0.3s ease forwards;
}

/* Input error state */

.pgc-scope .pgc-input-error {
    border-color: #E74C3C !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Active step marker */

.pgc-scope .pgc-step-active {
    display: block;
}

/* Toast notifications */

.pgc-toast-container.pgc-scope {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.pgc-scope .pgc-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
    color: var(--pgc-noir-doux);
    transform: translateX(120%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.pgc-scope .pgc-toast--visible {
    transform: translateX(0);
    opacity: 1;
}

.pgc-scope .pgc-toast--hiding {
    transform: translateX(120%);
    opacity: 0;
}

.pgc-scope .pgc-toast--error {
    border-left: 4px solid #E74C3C;
}

.pgc-scope .pgc-toast--success {
    border-left: 4px solid var(--pgc-vert-sauge);
}

.pgc-scope .pgc-toast--info {
    border-left: 4px solid var(--pgc-terracotta);
}

.pgc-scope .pgc-toast__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pgc-scope .pgc-toast__text {
    flex: 1;
    line-height: 1.4;
}

.pgc-scope .pgc-toast__close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.pgc-scope .pgc-toast__close:hover {
    color: #555;
}

/* Character limit indicator */

.pgc-scope .pgc-char-limit {
    font-size: 0.8rem;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
}

/* ==========================================================================
24. MES CARTES CADEAUX
========================================================================== */

.pgc-my-cards-wrapper.pgc-scope {
    max-width: 680px;
    margin: 2rem auto;
}

.pgc-scope .pgc-my-cards-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pgc-noir-doux);
    margin: 0 0 1.5rem;
    text-align: center;
}

.pgc-scope .pgc-my-cards-login {
    text-align: center;
    font-size: 0.95rem;
    color: #777;
    padding: 2rem;
    background: var(--pgc-blanc-casse);
    border-radius: 12px;
    border: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-my-cards-login a {
    color: var(--pgc-terracotta);
    font-weight: 600;
    text-decoration: none;
}

.pgc-scope .pgc-my-cards-login a:hover {
    text-decoration: underline;
}

.pgc-scope .pgc-my-cards-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--pgc-blanc-casse);
    border-radius: 12px;
    border: 1px solid var(--pgc-border);
}

.pgc-scope .pgc-my-cards-empty p {
    color: #999;
    font-size: 0.95rem;
    margin: 0;
}

.pgc-scope .pgc-my-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual card */

.pgc-scope .pgc-my-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--pgc-border);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pgc-scope .pgc-my-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pgc-scope .pgc-my-card--expired,
.pgc-scope .pgc-my-card--used {
    opacity: 0.65;
}

.pgc-scope .pgc-my-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--pgc-terracotta), #A8604F);
}

.pgc-scope .pgc-my-card--used .pgc-my-card-header {
    background: linear-gradient(135deg, #999, #777);
}

.pgc-scope .pgc-my-card--expired .pgc-my-card-header {
    background: linear-gradient(135deg, #b5a89a, #9c8e80);
}

.pgc-scope .pgc-my-card-code {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace;
}

.pgc-scope .pgc-my-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pgc-scope .pgc-status--active {
    background: rgba(255, 255, 255, 0.25);
}

.pgc-scope .pgc-status--used {
    background: rgba(0, 0, 0, 0.15);
}

.pgc-scope .pgc-status--expired {
    background: rgba(0, 0, 0, 0.15);
}

.pgc-scope .pgc-my-card-body {
    padding: 12px 0;
}

.pgc-scope .pgc-my-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

.pgc-scope .pgc-my-card-label {
    font-size: 0.88rem;
    color: #888;
}

.pgc-scope .pgc-my-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pgc-noir-doux);
}

.pgc-scope .pgc-my-card-balance {
    font-size: 1.1rem;
    color: var(--pgc-vert-sauge-dark);
}

.pgc-scope .pgc-my-card-message {
    padding: 8px 20px 12px;
    font-size: 0.88rem;
    color: #888;
    line-height: 1.5;
}

.pgc-scope .pgc-my-card-footer {
    padding: 12px 20px 16px;
    text-align: center;
    border-top: 1px solid #f0ebe4;
}

.pgc-scope .pgc-button-use-card {
    display: inline-block;
    padding: 10px 24px;
    background: var(--pgc-vert-sauge);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.pgc-scope .pgc-button-use-card:hover {
    background: var(--pgc-vert-sauge-dark);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .pgc-my-cards-wrapper.pgc-scope {
        margin: 1rem;
    }

    .pgc-scope .pgc-my-card-code {
        font-size: 0.88rem;
    }

    .pgc-scope .pgc-my-card-row {
        padding: 8px 14px;
    }

    .pgc-scope .pgc-my-card-header {
        padding: 12px 14px;
    }

}

/* ==========================================================================
25. AJAX ADD-TO-CART STATES
========================================================================== */

/* Inline spinner for button loading state */

.pgc-scope .pgc-spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pgcSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* Success button state after add-to-cart */

.pgc-scope .pgc-btn-success {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: #fff !important;
    cursor: default !important;
    pointer-events: none;
    transition: background 0.3s ease;
}

.pgc-scope .pgc-btn-success svg {
    vertical-align: middle;
    margin-right: 4px;
}

/* ==========================================================================
26. PRODUCT PAGE — SINGLE GIFT CARD
Override WooCommerce elements for a clean, focused product page
========================================================================== */

/* Force full-width layout for our product type */

/* Clean title */

/* Price range badge */

/* Hide quantity selector for gift cards */

/* ==========================================================================
27. RESERVATION — AMOUNT FIELD WITH UNIT
Scoped under .pgc-reservation-payment-wrapper to avoid overriding
the configurator's .pgc-input-with-unit / .pgc-input-unit styles.
========================================================================== */

.pgc-reservation-payment-wrapper.pgc-scope .pgc-input-with-unit {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--pgc-argile, #DCC9B6);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    background: #fff;
}

.pgc-reservation-payment-wrapper.pgc-scope .pgc-input-with-unit:focus-within {
    border-color: var(--pgc-terracotta, #C17763);
}

.pgc-reservation-payment-wrapper.pgc-scope .pgc-input-with-unit .pgc-input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding: 12px 14px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.pgc-reservation-payment-wrapper.pgc-scope .pgc-input-with-unit .pgc-input:focus {
    box-shadow: none !important;
}

.pgc-reservation-payment-wrapper.pgc-scope .pgc-input-unit {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--pgc-cream, #F5F2EC);
    color: var(--pgc-terracotta, #C17763);
    font-weight: 700;
    font-size: 1.1rem;
    border-left: 2px solid var(--pgc-argile, #DCC9B6);
    user-select: none;
}

.pgc-reservation-payment-wrapper.pgc-scope .pgc-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--pgc-sage, #9CA89D);
    line-height: 1.4;
    font-style: italic;
}

/* ==========================================================================
29. COMPONENT ENHANCEMENTS (overrides prioritaires — positionnés en dernier)
========================================================================== */

/* En-tête d'étape : accent terracotta à gauche pour le repère visuel */

.pgc-scope .pgc-step-header {
    border-left: 3px solid var(--pgc-terracotta);
    padding-left: 14px;
}

/* Badge "Aperçu" : couleur terracotta au lieu du vert sauge */

.pgc-scope .pgc-preview-badge {
    color: var(--pgc-terracotta);
    border-color: rgba(193, 119, 99, 0.2);
    background: rgba(193, 119, 99, 0.06);
    letter-spacing: 1.5px;
}

/* Récap commande étape 4 : accent à gauche + dégradé subtil */

.pgc-scope .pgc-order-summary {
    border-left: 3px solid var(--pgc-terracotta);
    background: linear-gradient(135deg, var(--pgc-blanc-casse) 0%, var(--pgc-white) 100%);
}

/* Bouton submit : légère ombre et espacement lettres */

.pgc-scope .pgc-btn-submit {
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(193, 119, 99, 0.18);
}

.pgc-scope .pgc-btn-submit:hover {
    letter-spacing: 0.5px;
}

/* Bouton suivant et submit plus larges sur desktop */

/* ==========================================================================
28. MOBILE TOUCH TARGETS (min 44px WCAG 2.5.5)
========================================================================== */

@media (max-width: 768px) {
    .pgc-scope .pgc-btn-next,
    .pgc-scope .pgc-btn-back,
    .pgc-scope .pgc-btn-submit {
        min-height: 44px;
    }

}

/* ==========================================================================
29. PRINT
========================================================================== */

@media print {
    .pgc-scope .pgc-progress,
    .pgc-scope .pgc-step-nav,
    .pgc-scope .pgc-preview-column {
        display: none;
    }

    .pgc-scope .pgc-configurator-layout {
        grid-template-columns: 1fr;
    }

    .pgc-scope .pgc-template-card,
    .pgc-scope .pgc-amount-card,
    .pgc-scope .pgc-delivery-option {
        box-shadow: none;
        border: 1px solid #ccc;
    }

}

/* ==========================================================================
30. ADAPTIVE LAYER (container queries, theme isolation, touch)
========================================================================== */

/* --- 30.1 The configurator adapts to ITS OWN width ---------------------------------
Elementor column, popup, narrow theme sidebar… : breakpoints follow the width
available to the widget, not the browser window. */
.pgc-configurator-form.pgc-scope {
    container-type: inline-size;
    container-name: pgc-cfg;
    scroll-margin-top: 80px;
    width: 100%;
    box-sizing: border-box;
}

.pgc-scope .pgc-validation-messages {
    scroll-margin-top: 96px;
}

.pgc-scope .pgc-template-info h4,
.pgc-scope .pgc-template-desc {
    overflow-wrap: anywhere;
}

@container pgc-cfg (min-width: 540px) {
    .pgc-scope .pgc-amounts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgc-scope .pgc-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pgc-scope .pgc-step-title {
        font-size: 24px;
    }
}

@container pgc-cfg (min-width: 820px) {
    .pgc-scope .pgc-configurator-layout {
        grid-template-columns: 3fr 2fr;
        gap: 48px;
    }

    .pgc-scope .pgc-preview-column {
        display: block;
    }

    .pgc-scope .pgc-preview-sticky {
        position: sticky;
        top: 32px;
    }

    .pgc-scope .pgc-preview-container {
        box-shadow: var(--pgc-shadow-lg);
        min-height: 380px;
    }

    .pgc-scope .pgc-template-preview {
        height: 130px;
    }

    .pgc-scope .pgc-step {
        background: var(--pgc-white);
        border-radius: var(--pgc-radius-lg);
        padding: 28px;
        border: 1px solid var(--pgc-border);
        box-shadow: var(--pgc-shadow-soft);
    }

    .pgc-scope .pgc-progress {
        margin-bottom: 48px;
    }
}

@container pgc-cfg (min-width: 1100px) {
    .pgc-scope .pgc-amounts-grid,
    .pgc-scope .pgc-templates-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Narrow widget: the live preview is shown under the form on the steps where it matters. */
@container pgc-cfg (max-width: 819px) {
    .pgc-configurator-form.pgc-scope[data-step="3"] .pgc-preview-column,
    .pgc-configurator-form.pgc-scope[data-step="4"] .pgc-preview-column {
        display: block;
        margin-top: 8px;
    }

    .pgc-scope .pgc-preview-container {
        min-height: 0;
        padding: 16px;
    }
}

/* Very narrow widget (< 320px) */
@container pgc-cfg (max-width: 319px) {
    .pgc-scope .pgc-dot-label {
        display: none;
    }

    .pgc-scope .pgc-templates-grid {
        grid-template-columns: 1fr;
    }
}

/* Browsers without container queries: viewport-based fallback. */
@supports not (container-type: inline-size) {
    @media (min-width: 768px) {
        .pgc-scope .pgc-amounts-grid { grid-template-columns: repeat(3, 1fr); }
        .pgc-scope .pgc-form-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (min-width: 992px) {
        .pgc-scope .pgc-configurator-layout { grid-template-columns: 3fr 2fr; gap: 48px; }
        .pgc-scope .pgc-preview-column { display: block; }
        .pgc-scope .pgc-preview-sticky { position: sticky; top: 32px; }
    }

    @media (min-width: 1200px) {
        .pgc-scope .pgc-amounts-grid,
        .pgc-scope .pgc-templates-grid { grid-template-columns: repeat(4, 1fr); }
    }
}

/* --- 30.2 Controls keep the plugin design in EVERY state --------------------------------
Theme / Elementor rules such as  button:hover, button:focus  (specificity 0,2,1) would
otherwise repaint our buttons; these rules reach 0,4,0. */
.pgc-scope .pgc-btn-next:focus:not(:hover),
.pgc-scope .pgc-btn-next:active,
.pgc-scope .pgc-btn-submit:focus:not(:hover),
.pgc-scope .pgc-btn-submit:active {
    background: var(--pgc-terracotta);
    color: var(--pgc-white);
    border: 0;
}

.pgc-scope .pgc-btn-back:focus:not(:hover),
.pgc-scope .pgc-btn-back:active {
    background: transparent;
    color: var(--pgc-vert-sauge-dark);
    border: 0;
}

.pgc-scope .pgc-btn-success,
.pgc-scope .pgc-btn-success:hover,
.pgc-scope .pgc-btn-success:focus {
    background: var(--pgc-success);
    color: var(--pgc-white);
    border: 0;
}

.pgc-scope .pgc-step-dot,
.pgc-scope .pgc-step-dot:hover,
.pgc-scope .pgc-step-dot:focus,
.pgc-scope .pgc-step-dot:active {
    background: none;
    color: inherit;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.pgc-scope .pgc-remove-card:focus,
.pgc-scope .pgc-toast__close:focus,
.pgc-scope .pgc-toast__close:hover {
    background: transparent;
    box-shadow: none;
}

.pgc-scope .pgc-apply-gift-card:focus:not(:hover):not(:disabled),
.pgc-scope .pgc-apply-gift-card:active:not(:disabled),
.pgc-scope .pgc-button-check:focus:not(:hover):not(:disabled),
.pgc-scope .pgc-button-check:active:not(:disabled) {
    background: var(--pgc-terracotta);
    color: #fff;
    border: 0;
}

/* Text fields: Elementor "Form Fields" uses  input:not([type=button]):not([type=submit])  (0,3,1)
and its :focus variant (0,4,1). */
.pgc-scope input.pgc-input:not([type="button"]):not([type="submit"]),
.pgc-scope textarea.pgc-textarea,
.pgc-scope input.pgc-gift-card-code:not([type="button"]):not([type="submit"]) {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--pgc-border);
    border-radius: var(--pgc-radius-sm);
    font-size: 14px;
    font-family: var(--pgc-font-base);
    font-weight: 400;
    line-height: 1.4;
    color: var(--pgc-noir-doux);
    background: var(--pgc-white);
    box-shadow: none;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    letter-spacing: normal;
    text-transform: none;
}

.pgc-scope input.pgc-input:not([type="button"]):not([type="submit"]):focus,
.pgc-scope textarea.pgc-textarea:focus,
.pgc-scope input.pgc-gift-card-code:not([type="button"]):not([type="submit"]):focus {
    outline: none;
    border-color: var(--pgc-terracotta);
    background: var(--pgc-white);
    color: var(--pgc-noir-doux);
    box-shadow: 0 0 0 3px rgba(193, 119, 99, 0.15);
}

.pgc-scope input.pgc-input.pgc-input-error:not([type="button"]):not([type="submit"]) {
    border-color: var(--pgc-error);
    box-shadow: 0 0 0 3px rgba(199, 80, 80, 0.12);
}

/* Headings / links inside components: no inherited uppercase or tracking from global heading styles. */
.pgc-scope :is(.pgc-step-title, .pgc-step-subtitle, .pgc-summary-title, .pgc-template-info h4,
.pgc-check-card-title, .pgc-reservation-title, .pgc-my-cards-title, .pgc-gift-card-title,
.pgc-res-section-title, .pgc-success h4, .pgc-reservation-success h4) {
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
}

.pgc-scope a.pgc-button,
.pgc-scope a.pgc-button:hover,
.pgc-scope a.pgc-button:focus {
    text-decoration: none;
}

/* --- 30.3 Keyboard focus on selectable cards (the radio input is visually hidden) ----- */
.pgc-scope .pgc-template-card:focus-within,
.pgc-scope .pgc-amount-card:focus-within {
    outline: 2px solid var(--pgc-terracotta);
    outline-offset: 2px;
}

.pgc-scope .pgc-template-card:has(input:focus:not(:focus-visible)),
.pgc-scope .pgc-amount-card:has(input:focus:not(:focus-visible)),
.pgc-scope .pgc-delivery-option:has(input:focus:not(:focus-visible)) {
    outline: none;
}

/* --- 30.4 Touch screens ---------------------------------------------------------------- */
@media (pointer: coarse) {
    /* 16px minimum: iOS Safari zooms the page when a smaller field receives focus. */
    .pgc-scope input.pgc-input:not([type="button"]):not([type="submit"]),
    .pgc-scope textarea.pgc-textarea,
    .pgc-scope input.pgc-gift-card-code:not([type="button"]):not([type="submit"]),
    .pgc-scope select {
        font-size: 16px;
    }

    .pgc-scope .pgc-btn,
    .pgc-scope .pgc-apply-gift-card,
    .pgc-scope .pgc-button-check {
        min-height: 44px;
    }

    .pgc-scope .pgc-step-dot {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .pgc-scope .pgc-remove-card {
        width: 44px;
        height: 44px;
    }

    .pgc-scope .pgc-toast__close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Toasts: safe areas (notch) and full width on phones. */
.pgc-toast-container.pgc-scope {
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
}

@media (max-width: 480px) {
    .pgc-toast-container.pgc-scope {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* Visiteur connecté : la barre d'administration WordPress (32 px, 46 px sur mobile) n'est plus recouverte par les notifications. */
body.admin-bar .pgc-toast-container.pgc-scope {
    top: calc(44px + env(safe-area-inset-top, 0px));
}

@media (max-width: 782px) {
    body.admin-bar .pgc-toast-container.pgc-scope {
        top: calc(58px + env(safe-area-inset-top, 0px));
    }
}

/* Mobile: sticky submit area never hides the keyboard-safe bottom inset. */
@supports (padding: max(0px)) {
    .pgc-scope .pgc-step-nav {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* --- 30.5 Reduced motion: limited to the plugin components (never the whole site) --------- */
@media (prefers-reduced-motion: reduce) {
    .pgc-scope .pgc-step,
    .pgc-scope .pgc-message,
    .pgc-scope .pgc-toast,
    .pgc-scope .pgc-preview-card {
        animation: none !important;
        transition: none !important;
    }

    .pgc-scope .pgc-slide-in-left,
    .pgc-scope .pgc-slide-in-right,
    .pgc-scope .pgc-slide-out-left,
    .pgc-scope .pgc-slide-out-right {
        animation: none !important;
    }
}

/* --- 30.6 Product page (classic template managed by the plugin) --------------------------- */
body.single-product.pgc-clean-page div.product div.summary,
body.single-product.pgc-clean-page .pgc-product-page .pgc-product-summary {
    width: 100%;
    float: none;
    max-width: 100%;
}

/* ==========================================================================
31. CARD PREVIEW (markup of PGC_Template::render_preview)
The card keeps a bank-card proportion and scales its typography with its own width.
========================================================================== */

.pgc-scope .pgc-layout-centered,
.pgc-scope .pgc-layout-split,
.pgc-scope .pgc-layout-minimal,
.pgc-scope .pgc-layout-bordered {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.75 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--pgc-shadow-md);
    font-family: var(--pgc-font-base);
    font-size: 13px;
    line-height: 1.3;
    container-type: inline-size;
    box-sizing: border-box;
}

@supports (font-size: 1cqw) {
    .pgc-scope .pgc-layout-centered,
    .pgc-scope .pgc-layout-split,
    .pgc-scope .pgc-layout-minimal,
    .pgc-scope .pgc-layout-bordered {
        font-size: clamp(9px, 3.3cqw, 17px);
    }
}

.pgc-scope .pgc-preview-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.pgc-scope .pgc-preview-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
    padding: 4% 8%;
    text-align: center;
}

.pgc-scope .pgc-preview-logo {
    font-size: 0.72em;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.pgc-scope .pgc-preview-title,
.pgc-scope .pgc-layout-split h3,
.pgc-scope .pgc-layout-bordered h3 {
    margin: 0;
    padding: 0;
    font-size: 1.05em;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: none;
    line-height: 1.2;
}

.pgc-scope .pgc-preview-divider {
    width: 2.6em;
    height: 2px;
    margin: 0.2em auto;
    border-radius: 1px;
}

.pgc-scope .pgc-preview-amount {
    font-size: 2.1em;
    font-weight: 700;
    line-height: 1.1;
}

.pgc-scope .pgc-preview-recipient,
.pgc-scope .pgc-preview-message,
.pgc-scope .pgc-preview-code,
.pgc-scope .pgc-layout-split p {
    margin: 0;
    padding: 0;
}

.pgc-scope .pgc-preview-recipient {
    font-size: 0.95em;
}

.pgc-scope .pgc-preview-message {
    max-width: 92%;
    font-size: 0.8em;
    font-style: italic;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pgc-scope .pgc-preview-code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.68em;
    letter-spacing: 2px;
    opacity: 0.85;
}

.pgc-scope .pgc-layout-split {
    flex-direction: row;
    justify-content: stretch;
}

.pgc-scope .pgc-split-left {
    display: flex;
    flex: 0 0 42%;
    align-items: center;
    justify-content: center;
    padding: 3%;
    text-align: center;
}

.pgc-scope .pgc-split-right {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 3%;
    text-align: center;
}

.pgc-scope .pgc-split-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.pgc-scope .pgc-layout-minimal {
    justify-content: space-between;
}

.pgc-scope .pgc-minimal-bar {
    flex: none;
    width: 100%;
    height: 0.5em;
}

.pgc-scope .pgc-preview-footer-row {
    margin-top: 0.3em;
}

.pgc-scope .pgc-layout-bordered {
    padding: 3.5%;
}

.pgc-scope .pgc-bordered-frame {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    padding: 3px;
    border-radius: 2px;
}

.pgc-scope .pgc-bordered-inner {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.pgc-scope .pgc-ornament {
    font-size: 0.7em;
    letter-spacing: 2px;
    line-height: 1;
}

/* ==========================================================================
   32. CHECK-CARD WIDGET — adapts to its own width
   ========================================================================== */

.pgc-check-card-wrapper.pgc-scope {
    container-type: inline-size;
    container-name: pgc-chk;
}

@container pgc-chk (max-width: 360px) {
    .pgc-scope .pgc-input-group {
        flex-direction: column;
    }

    .pgc-scope .pgc-input-group .pgc-button-check {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pgc-check-card-wrapper.pgc-scope {
        padding: 24px 18px;
        margin: 24px auto;
    }
}

/* ==========================================================================
   33. BLOCK THEMES (Site Editor) — clean gift-card product page
   --------------------------------------------------------------------------
   The WooCommerce product template of block themes (Twenty Twenty-Five…) is
   made of blocks, so the classic remove_action() clean-up has no effect there:
   the (empty) gallery column stays and squeezes the configurator into half
   the page. Same clean page as on classic themes, written for the block
   markup. Applies only when body.pgc-clean-page is set (filter
   pgc_clean_product_page; never when an Elementor Theme Builder template
   manages the product page).
   ========================================================================== */

/* A gift card has no gallery: its column goes, the summary takes the full width
   (without :has() support the empty column remains, which is harmless). */
body.single-product.pgc-clean-page .wp-block-woocommerce-product-image-gallery,
body.single-product.pgc-clean-page .wp-block-column:has(> .wp-block-woocommerce-product-image-gallery) {
    display: none;
}

/* Title, price and configurator only (same content as the classic clean page) */
body.single-product.pgc-clean-page .wp-block-woocommerce-breadcrumbs,
body.single-product.pgc-clean-page .wp-block-column > .wp-block-post-excerpt,
body.single-product.pgc-clean-page .wp-block-woocommerce-product-meta,
body.single-product.pgc-clean-page .wp-block-woocommerce-product-details,
body.single-product.pgc-clean-page .wp-block-woocommerce-related-products {
    display: none;
}

body.single-product.pgc-clean-page .wp-block-post-title {
    text-align: center;
    margin-bottom: 8px;
}

/* Price range as a badge, like on classic themes (has-*-font-size utilities are !important) */
body.single-product.pgc-clean-page .wp-block-woocommerce-product-price {
    text-align: center;
    margin-bottom: 8px;
}

body.single-product.pgc-clean-page .wp-block-woocommerce-product-price .wc-block-components-product-price {
    display: inline-block;
    background: var(--pgc-terracotta-light, rgba(193, 119, 99, 0.08));
    border: 1px solid rgba(193, 119, 99, 0.15);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--pgc-terracotta, #C17763);
}

/* Bandeau fixe en bas d'écran (cookies…) : la hauteur mesurée par le script est réservée sous le formulaire pour que
   le bouton « Suivant » ne reste jamais caché derrière lui en fin de page. */
.pgc-configurator-form.pgc-has-bottom-overlay {
    margin-bottom: calc(var(--pgc-bottom-inset, 0px) + 12px) !important;
}
