.abo-checkout-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
.abo-checkout-form fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
}
.abo-checkout-form label { display: block; margin-bottom: 8px; }
.abo-checkout-form input[type="text"],
.abo-checkout-form input[type="email"],
.abo-checkout-form input[type="tel"],
.abo-checkout-form input[type="date"],
.abo-checkout-form input[type="number"],
.abo-checkout-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.abo-submit-btn {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
}
.abo-form-message { margin-top: 10px; font-weight: 600; }
.abo-simple-price { font-size: 16px; font-weight: 600; margin: 0 0 15px; }
.abo-postal-code-field { max-width: 120px; }
.abo-city-suggestions { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.abo-address-autocomplete { position: relative; }
.abo-address-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
}
.abo-address-suggestions li {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}
.abo-address-suggestions li:hover { background: #eef2ff; }

.abo-dynamic-fields { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.abo-required-star { color: #c00; font-weight: 700; }
.abo-field { flex: 1 1 100%; min-width: 0; }
.abo-field.abo-width-three-quarter { flex: 1 1 calc(75% - 15px); min-width: 200px; }
.abo-field.abo-width-two-third { flex: 1 1 calc(66.66% - 14px); min-width: 200px; }
.abo-field.abo-width-half { flex: 1 1 calc(50% - 10px); min-width: 160px; }
.abo-field.abo-width-third { flex: 1 1 calc(33.33% - 14px); min-width: 140px; }
.abo-field.abo-width-quarter { flex: 1 1 calc(25% - 15px); min-width: 120px; }

.abo-doc-group { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.abo-doc-item { flex: 1 1 100%; margin: 0; min-width: 0; }
.abo-doc-item.abo-width-three-quarter { flex: 1 1 calc(75% - 15px); min-width: 200px; }
.abo-doc-item.abo-width-two-third { flex: 1 1 calc(66.66% - 14px); min-width: 200px; }
.abo-doc-item.abo-width-half { flex: 1 1 calc(50% - 10px); min-width: 160px; }
.abo-doc-item.abo-width-third { flex: 1 1 calc(33.33% - 14px); min-width: 140px; }
.abo-doc-item.abo-width-quarter { flex: 1 1 calc(25% - 15px); min-width: 120px; }

.abo-checkout-form legend { font-weight: 600; padding: 0 6px; }
.abo-mensuel-months { display: none; }
.abo-mensuel-months.abo-visible { display: inline-flex !important; align-items: center; gap: 8px; }
.abo-mensuel-months select { padding: 4px 8px; width: auto !important; display: inline-block !important; }

.abo-payment-options label { margin-bottom: 2px; }
.abo-prelevement-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.abo-prelevement-row label { margin-bottom: 0; }
.abo-prelevement-day-inline select { padding: 4px 8px; }

@media (max-width: 600px) {
    .abo-prelevement-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.abo-date-hint { font-size: 13px; color: #666; margin: 6px 0 0; }

/* Calendrier de date personnalisé */
.abo-date-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.abo-datepicker { position: relative; max-width: 260px; flex: 1 1 260px; }
.abo-date-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: border-color .15s ease;
}
.abo-date-display:hover, .abo-date-display:focus {
    border-color: #1d4ed8;
    outline: none;
}
.abo-date-display-icon { font-size: 16px; opacity: .7; }

.abo-date-calendar {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    padding: 16px;
    width: 280px;
}
.abo-date-calendar.abo-date-cal-open { display: block; }

.abo-date-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.abo-date-cal-title { font-weight: 600; font-size: 14px; text-transform: capitalize; }
.abo-date-nav {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    color: #333;
}
.abo-date-nav:hover:not(:disabled) { background: #f0f0f0; }
.abo-date-nav:disabled { opacity: .3; cursor: default; }

.abo-date-month-select, .abo-date-year-select {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.abo-date-month-select { flex: 1.4; margin-right: 6px; }

.abo-date-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}
.abo-date-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.abo-date-cal-empty { display: block; }
.abo-date-cal-day {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    color: #222;
    transition: background .1s ease;
}
.abo-date-cal-day:hover:not(:disabled) { background: #eef2ff; }
.abo-date-cal-day.abo-date-cal-selected {
    background: var(--abo-shop-btn-bg, #1d4ed8);
    color: #fff;
    font-weight: 600;
}
.abo-date-cal-day.abo-date-cal-disabled { color: #ccc; cursor: not-allowed; }

.abo-date-confirm {
    display: block;
    max-width: 200px;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 10px 16px;
    background: var(--abo-shop-btn-bg, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-start;
}
.abo-date-confirm:hover { opacity: .92; }

@media (max-width: 600px) {
    .abo-date-row { flex-direction: column; }
    .abo-date-confirm { max-width: 260px; width: 100%; margin-top: 10px; }
}

@media (max-width: 600px) {
    .abo-checkout-form { padding: 12px; }
}

/* Grille boutique */
.abo-shop-rubrique-title {
    margin: 30px 0 15px;
    font-size: 22px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}
.abo-shop-rubrique-title:first-child { margin-top: 0; }

.abo-shop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}
.abo-shop-card {
    display: flex;
    flex-direction: column;
    width: var(--abo-shop-card-size, 266px);
    flex: 0 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease;
}
.abo-shop-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.abo-shop-card-image { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f3f3; border-radius: 10px 10px 0 0; }
.abo-shop-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abo-shop-card-noimage {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 13px;
}
.abo-shop-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px;
    border-radius: 0 0 10px 10px;
    overflow: visible;
}
.abo-shop-card-body h3 { margin: 0 0 6px; font-size: 17px; }
.abo-shop-card-price { margin: auto 0 10px; font-size: 16px; }
.abo-shop-card-btn-row { display: flex; justify-content: var(--abo-shop-btn-align, flex-start); width: 100%; }
.abo-shop-card-btn-wrapper { position: relative; display: inline-block; }
.abo-shop-card-btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--abo-shop-btn-bg, #1d4ed8);
    color: var(--abo-shop-btn-color, #fff);
    border-radius: 6px;
    font-size: 13px;
}
/* Info-bulle de description, sous le bouton, avec support des listes à puces */
.abo-shop-card-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #222;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
    width: 240px;
    text-align: left;
    z-index: 30;
    pointer-events: none;
}
.abo-shop-card-tooltip p { margin: 0; }
.abo-shop-card-tooltip ul { margin: 0; padding-left: 18px; }
.abo-shop-card-tooltip li { margin-bottom: 4px; }
.abo-shop-card-tooltip li:last-child { margin-bottom: 0; }
.abo-shop-card-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #222;
}
.abo-shop-card-btn-wrapper:hover .abo-shop-card-tooltip { display: block; }

@media (max-width: 480px) {
    .abo-shop-card { width: 100% !important; }
}

/* Image sur la fiche produit, réduite de 50% par rapport à la largeur du contenu */
.abo-product-image {
    max-width: 50%;
    margin: 0 0 20px;
}
.abo-product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.abo-product-description {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Pop-up produit ouverte depuis la boutique */
.abo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483647;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 75px 16px 40px;
    overflow-y: auto;
}
.abo-modal-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: var(--abo-modal-width, 640px);
    width: 100%;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.abo-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}
.abo-modal-close:hover { color: #000; }
.abo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.abo-modal-header-image {
    flex: 0 0 auto;
    max-width: 160px;
    max-height: 140px;
}
.abo-modal-header-image img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}
.abo-modal-product-title { margin: 0; font-size: 22px; flex: 1; text-align: right; }
body.abo-modal-open { overflow: hidden; }

@media (max-width: 480px) {
    .abo-modal-header { flex-direction: column; align-items: flex-start; }
    .abo-modal-header-image { max-width: 100%; }
    .abo-modal-product-title { text-align: left; }
}

@media (max-width: 600px) {
    .abo-modal-box { padding: 20px; }
    .abo-modal-overlay { padding: 75px 0 0; align-items: stretch; }
    .abo-modal-box { border-radius: 0; max-width: none; min-height: calc(100% - 75px); }
}

@media (max-width: 600px) {
    .abo-product-image { max-width: 70%; }
}

/*
 * Réduction de 50% de l'image mise en avant affichée nativement par le thème
 * "Ycéo Mobilité V29" sur la fiche produit. On cible la classe "wp-post-image",
 * ajoutée automatiquement par WordPress à toute image de thumbnail générée via
 * the_post_thumbnail()/get_the_post_thumbnail() — quel que soit le thème utilisé.
 * Si l'image n'est pas affichée via ces fonctions standards, cette règle n'aura
 * pas d'effet : il faudra alors le sélecteur CSS exact utilisé par ce thème
 * (visible via "Afficher le code source" de la page produit dans le navigateur).
 */
body.single-abo_produit img.wp-post-image {
    max-width: 50% !important;
    height: auto !important;
}
