.cpl-lots-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.cpl-lot-card {
    border: 2px solid #ececec;
    border-radius: 20px;
    overflow: hidden;
    transition: .3s ease;
    background: #fff;
}

.cpl-lot-card.active {
    border-color: #000;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.cpl-lot-image img {
    width: 100%;
    display: block;
}

.cpl-lot-content {
    padding: 20px;
}

.cpl-lot-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.cpl-lot-description {
    margin-bottom: 20px;
    color: #666;
}

.cpl-lot-products {
    margin-bottom: 20px;
}

.cpl-lot-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cpl-product-thumb img {
    border-radius: 10px;
}

.cpl-product-info {
    display: flex;
    flex-direction: column;
}

.cpl-lot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cpl-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cpl-price strong {
    font-size: 24px;
}

.cpl-price del {
    color: #999;
}

.cpl-select-lot {
    padding: 12px 20px !important;
    border-radius: 12px !important;
}

.cpl-lot-card {
    border: 2px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cpl-lot-card.active {
    border-color: #007cba; /* Bleu WordPress */
    background-color: #f0f8ff;
}

.cpl-select-lot {
    display: block;
    margin-top: 10px;
}
.cpl-offer-container,
.cpl-lots-container {
  width: 100%;
}

.cpl-savings {
    color: #2d2d2d;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 500;
}

.cpl-gift-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9em;
}

.cpl-plus { font-weight: bold; color: #d68c45; }

.cpl-gift-name { font-weight: 600; }

.cpl-lot-row { border: 1px solid #ddd; margin-bottom: 20px; border-radius: 8px; position: relative; cursor: pointer; }
.cpl-lot-row.active { border: 2px solid #d68c45; background-color: #fffcf9; }

.cpl-image img { 
    width: 60px; 
    height: 60px; 
    object-fit: contain; 
    display: block; 
}

.cpl-savings { 
    color: #444; 
    font-size: 0.9em; 
    margin-top: 5px; 
    font-weight: 500; 
}


.cpl-check { 
    background: #d68c45; 
    color: white; 
    border-radius: 4px; 
    padding: 0 4px; 
    font-size: 10px; 
}


/* Container de détails */
.cpl-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne tout à gauche */
    padding: 0 15px;
}

/* Ligne du produit offert */
.cpl-gift-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Titre à gauche, prix à droite */
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}


.cpl-gift-text {
    font-size: 0.95em;
    color: #333;
}

.cpl-gift-pricing {
    font-size: 0.9em;
    text-align: right;
}

.cpl-gift-pricing del {
    color: #aaa;
    display: block;
    line-height: 1;
}

/* Alignement prix principal */
.cpl-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 90px;
}

/* Container global de la ligne */
.cpl-lot-row {
    display: flex;
    flex-direction: column; /* Permet d'empiler le contenu et le cadeau */
    border: 1px solid #ddd;
    margin-bottom: 25px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    background: #fff;
    overflow: hidden;
}

.cpl-lot-row.active {
    border: 2px solid #d68c45;
    background: #fffcf9;
}

/* Partie haute */
.cpl-lot-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

/* Partie basse (Produit offert) */
.cpl-gift-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0; /* Ligne de séparation comme sur l'image */
    margin-left: 0; /* Prend toute la largeur */
}

/* Aligner le contenu du cadeau avec l'image du dessus */
.cpl-gift-left {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 5px; /* Petit décalage pour s'aligner sous le bouton radio/image */
}

.cpl-gift-image img {
    border-radius: 4px;
    border: 1px solid #eee;
    background: #fff;
}


.cpl-check-box {
    background: #d68c45;
    color: #fff;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 10px;
    flex-shrink: 0;
}

.cpl-gift-right {
    text-align: right;
}

.cpl-gift-amount {
    display: block;
    font-size: 0.95em;
    font-weight: 500;
}

.cpl-gift-old-amount {
    display: block;
    font-size: 0.85em;
    color: #aaa;
    text-decoration: line-through;
}

.cpl-gift-row {
    display: none !important;
}

.cpl-lot-row.active .cpl-gift-row {
    display: flex !important;
}

/* Style du bouton toggle */
.cpl-toggle-bundle {
    display: block;
    font-size: 14px;
    color: #666;
    text-decoration: none !important;
    margin: 5px 0;
}

/* Container des produits */
.cpl-bundle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #444;
}

.cpl-bundle-item img {
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Badge du lot */
.cpl-cart-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f1f1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    color: #555;
}

.cpl-cart-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 5px;
}