/**
 * Aratice Quote Builder - Summary Sidebar
 * Design moderne inspiré de l'image fournie
 */

:root {
    --aqb-secondary-text-color: #636262;

    --aqb-border-color: rgba(0, 0, 0, 0.08);
}

/* === Sidebar Récapitulatif === */
.aqb-quote-summary {

    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: max-content;
}

/* === Header === */
.aqb-summary-header {
    padding: 16px;
    border-bottom: 1px solid var(--aqb-border-color);
}

.aqb-summary-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aqb-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aqb-header-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aqb-header-icon-title svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.aqb-summary-title {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: bold;
    margin: 0;
    color: black;
    letter-spacing: -0.5px;
}

.aqb-user-discount-badge {
    margin-top: 6px;
    padding: 4px 12px;
    background: #e4f4dc;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    color: black;
    white-space: nowrap;
    width: fit-content;
}

/* Logo République Française */
.aqb-header-right {
    color: #2B4B7C;
    font-size: 16px;
    font-weight: 700;
}

.aqb-header-total {
    padding: 4px 8px;
    background-color: #EAF7FA;
    border-radius: 8px;
}

.aqb-header-total-label {
    margin-right: 4px;
    color: black;
}

.aqb-header-total-label,
.aqb-header-total-value {
    font-size: clamp(12px, 3vw, 14px);
}

.aqb-rf-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* === Liste des items === */
.aqb-summary-items {
    flex: 1;
    padding: 10px 8px;

}

/* Scrollbar personnalisée */
.aqb-summary-items::-webkit-scrollbar {
    width: 6px;
}

.aqb-summary-items::-webkit-scrollbar-track {
    background: transparent;
}

.aqb-summary-items::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.aqb-summary-items::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.aqb-summary-empty {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.aqb-summary-empty svg {
    width: 42px;
    height: 42px;
    opacity: 0.6;
}

/* === Loader === */
.aqb-summary-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 0;
}

.aqb-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8ecf1;
    border-top: 3px solid #2B4B7C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* === Item produit === */
.aqb-summary-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    transition: box-shadow 0.4s ease;
    animation: fadeInUp 0.3s ease-out;
    overflow: hidden;
}

.aqb-summary-item:last-child {
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aqb-summary-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.aqb-summary-item-image-wrapper {
    flex-shrink: 0;
}

.aqb-summary-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: block;
    transition: opacity 0.2s ease;
}

.aqb-summary-item-image:hover {
    opacity: 0.8;
}

.aqb-summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.aqb-summary-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.aqb-summary-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aqb-summary-item-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aqb-summary-item-title a:hover {
    color: #2B4B7C;
}

/* Variations du produit */
.aqb-summary-item-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.aqb-variation-attribute {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 4px;
}

.aqb-variation-label {
    color: #718096;
    font-weight: 500;
}

.aqb-variation-value {
    color: #2d3748;
    font-weight: 600;
}

/* Container bottom : quantité + prix sur la même ligne */
.aqb-summary-item-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Contrôles de quantité */
.aqb-quantity-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.aqb-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e8ecf1;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 18px;
    color: #4a5568;
    font-weight: 500;
    padding: 0;
}

.aqb-qty-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.aqb-qty-value {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    min-width: 32px;
    text-align: center;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.aqb-qty-value:hover {
    background: #f7fafc;
}

/* Input de quantité éditable */
.aqb-qty-input {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    min-width: 32px;
    width: 50px;
    text-align: center;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 4px 6px;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.aqb-qty-input:focus {
    border-color: #2B4B7C;
    box-shadow: 0 0 0 2px rgba(43, 75, 124, 0.1);
}

/* Animation pour les changements de quantité */
.aqb-qty-value.updating {
    transform: scale(1.1);
    color: #2B4B7C;
}

/* Prix du produit */
.aqb-summary-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.aqb-summary-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #2B4B7C;
    white-space: nowrap;
}

.aqb-summary-item-price-ttc {
    font-size: 11px;
    color: #a0aec0;
    white-space: nowrap;
}

/* Bouton supprimer - Toujours visible */
.aqb-summary-item-remove {
    position: absolute;
    top: -4px;
    right: -10px;
    background: transparent;
    color: #e53e3e !important;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 1 !important;
    z-index: 10;
}

.aqb-summary-item-remove:hover {
    color: #c53030 !important;
    transform: scale(1.15);
}

.aqb-summary-item-remove svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
}

.aqb-summary-item-remove svg path {
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* === Wrapper === */
.aqb-summary-wrapper {
    margin-inline: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--aqb-border-color);
}

.aqb-summary-wrapper-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-inline: 8px;
    margin-top: 4px;
}

/* === Code promo === */
.aqb-promo-code {
    display: flex;
    gap: 10px;
}

.aqb-promo-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #f7fafc !important;
    background: #f3f8fc;
    border-radius: 8px !important;
    font-size: 15px;
    color: #252d3c;
    outline: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.aqb-promo-input::placeholder {
    color: #a0aec0;
}

.aqb-promo-input:focus {
    border: 1px solid var(--aqb-border-color) !important;
}

/* Message d'erreur code promo */
.aqb-promo-error {
    margin-top: -2px;
    margin-bottom: -12px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
}

.aqb-promo-apply {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--aqb-border-color) !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.aqb-promo-apply:hover {
    background: #f7fafc;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aqb-promo-apply svg {
    width: 20px;
    height: 20px;
    stroke: #4a5568;
}

/* === Totaux === */

.aqb-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.aqb-summary-totals bdi {
    display: flex;
    color: #2B4B7C;
}

.aqb-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4a5568;
}

.aqb-summary-line span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Ligne de réduction (code promo) */
.aqb-discount-line {
    color: #7EAD53;
    font-weight: 600;
    font-size: 12px;
}

.aqb-discount-line .aqb-coupon-code {
    font-weight: 700;
    text-transform: uppercase;
}

.aqb-remove-coupon {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    margin-left: 6px;
    cursor: pointer;
    transition: all 0.2s;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.aqb-remove-coupon:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

.aqb-shipping-line svg {
    width: 18px;
    height: 18px;
    stroke: #4a5568;
}

.aqb-summary-note {
    font-size: 13px;
    color: var(--aqb-secondary-text-color);
}

.aqb-total-line {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--aqb-border-color);
    font-size: 18px;
    font-weight: 700;
    color: #2B4B7C;
}

.aqb-total {
    font-size: 18px;
}

/* === Disclaimer === */
.aqb-summary-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--aqb-secondary-text-color);
    line-height: 1.6;
}

/* === Bouton Demander un devis === */
.aqb-request-quote {
    width: 100%;
    padding: 16px 24px;
    background: #2B4B7C;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(43, 75, 124, 0.25);
}

.aqb-request-quote:hover:not(:disabled) {
    background: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 75, 124, 0.35);
}

.aqb-request-quote:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.aqb-request-quote svg {
    width: 20px;
    height: 20px;
}

/* === Message 24H === */
.aqb-response-time {
    margin-top: -2px;
    text-align: center;
    font-size: 13px;
    color: var(--aqb-secondary-text-color);
}

/* === Indicateur de sauvegarde === */
.aqb-save-indicator {
    position: absolute;
    bottom: 20px;
    right: 24px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aqb-save-spinner {
    animation: spin 1s linear infinite;
}

/* === Drag & Drop (Zone de drop du summary) === */

/* Zone de drop (récapitulatif devis) */
.aqb-drop-zone {
    position: relative;
    margin-inline: 4px;
}

/* État actif de la zone de drop */
.aqb-drop-zone-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px dashed #3b82f6 !important;
    border-radius: 12px;
}

.aqb-drop-zone-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: dropZonePulse 2s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes dropZonePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Animation du message vide quand zone active */
.aqb-drop-zone-active .aqb-summary-empty {
    color: #3b82f6;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.aqb-drop-zone-active .aqb-summary-empty svg {
    opacity: 1;
    animation: bounceUpDown 1s ease-in-out infinite;
}

@keyframes bounceUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Spinner pour le bouton d'ajout */
.apg-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinBtn 0.6s linear infinite;
}

@keyframes spinBtn {
    to {
        transform: rotate(360deg);
    }
}

/* === Responsive pour drag & drop === */
@media (max-width: 768px) {
    .aqb-drop-zone-active .aqb-summary-empty {
        font-size: 13px;
        padding: 30px 15px;
    }

    .aqb-summary-empty svg {
        width: 40px;
        height: 40px;
    }
}

/* === Suggestions de produits liés === */
.aqb-suggestions {
    display: none;
    margin-bottom: 14px;
    padding: 10px 8px;
    background: #EFF4FF;
    border-radius: 12px;
}

.aqb-suggestions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.aqb-suggestions-header svg {
    width: 20px;
    height: 20px;
    fill: none;
}

.aqb-suggestions-title {
    font-size: 16px;
    font-weight: 700;
    color: #2B4B7C;
    margin: 0;
}

.aqb-suggestions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.aqb-suggestion-item {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.aqb-suggestion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Partie supérieure : Image + Titre + Description en row */
.aqb-suggestion-top {
    display: flex;
    gap: 12px;
}

.aqb-suggestion-image-wrapper {
    flex-shrink: 0;
}

.aqb-suggestion-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: block;
    transition: opacity 0.2s ease;
}

.aqb-suggestion-image:hover {
    opacity: 0.8;
}

.aqb-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

/* Zone info : Titre + Description */
.aqb-suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.aqb-suggestion-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aqb-suggestion-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aqb-suggestion-title a:hover {
    color: #2B4B7C;
}

/* Recommandation ACF */
.aqb-suggestion-recommandation {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: #163c79;
    font-weight: 500;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.aqb-suggestion-recommandation svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.aqb-suggestion-description-wrapper {
    margin: 0;
}

.aqb-suggestion-description {
    font-size: 12px;
    color: var(--aqb-secondary-text-color);
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.aqb-suggestion-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
}

.aqb-suggestion-more {
    font-size: 11px;
    color: #2B4B7C;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease;
}

.aqb-suggestion-more:hover {
    color: #1a2f4d;
    text-decoration: underline;
}

.aqb-suggestion-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.aqb-suggestion-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aqb-suggestion-price-ht {
    font-size: 14px;
    font-weight: 700;
    color: #2B4B7C;
}

.aqb-suggestion-price-ttc {
    font-size: 12px;
    color: #a0aec0;
}

/* Prix avec réduction personnalisée */
.aqb-suggestion-price-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aqb-suggestion-price-with-discount {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aqb-suggestion-price-original {
    font-size: 12px;
    color: #a0aec0;
    text-decoration: line-through;
}

.aqb-suggestion-price-original-HT {
    text-decoration: line-through;
}

.aqb-suggestion-price-original-HT,
.aqb-price-label {
    color: #163C79;
}


.aqb-price-label-TTC {
    color: #a0aec0;
}

/* Prix réduits en vert comme sur les cartes produits */
.aqb-suggestion-price-ht.aqb-price-discounted {
    color: #7AC143;
}

.aqb-suggestion-price-ttc.aqb-price-discounted {
    color: #7AC143;
}

.aqb-suggestion-add,
.aqb-suggestion-view-options {
    padding: 5px;
    background: #2B4B7C;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

.aqb-suggestion-add svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    margin-right: 2px;
}

.aqb-suggestion-view-options svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    margin-right: 4px;
}


.aqb-suggestion-add:hover:not(:disabled),
.aqb-suggestion-view-options:hover:not(:disabled) {
    background: #1e3a5f;
}

.aqb-suggestion-add:disabled,
.aqb-suggestion-view-options:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.aqb-suggestion-add.added {
    background: #10b981;
}

/* Loader des suggestions */
.aqb-suggestions-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 12px;
}

.aqb-suggestions-loader .aqb-loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8ecf1;
    border-top: 3px solid #2B4B7C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.aqb-suggestions-loader p {
    margin: 0;
    font-size: 14px;
    color: var(--aqb-secondary-text-color);
    font-weight: 500;
}

/* === Responsive === */

@media (max-width: 992px) {
    .aqb-summary-item-title {
        font-size: 12px;
        max-width: 180px;
    }

    .aqb-quote-summary {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .aqb-summary-header {
        padding: 16px 12px;
        position: relative;
    }

    .aqb-summary-header-inner {
        flex-direction: row;
        gap: 12px;
    }

    .aqb-header-left {
        flex: 1;
        min-width: 0;
        justify-content: space-between;
    }

    .aqb-header-right {
        position: static;
        flex-shrink: 0;
        max-width: 140px;
    }

    .aqb-rf-logo {
        max-width: 120px;
        width: 120px;
    }

    .aqb-rf-badge {
        align-items: center;
        text-align: center;
    }

    .aqb-drop-zone {
        margin-inline: 0;
    }

    .aqb-summary-items {
        padding: 10px 8px;
    }



    .aqb-summary-item-image {
        width: 70px;
        height: 70px;
    }

    .aqb-promo-code,
    .aqb-summary-totals,
    .aqb-summary-disclaimer,
    .aqb-request-quote {
        padding-left: 16px;
        padding-right: 16px;
    }

    .aqb-help {
        padding: 16px;
    }

    .aqb-header-total {
        display: flex;
    }

    .aqb-summary-wrapper {
        margin-inline: 8px;
    }

    .aqb-summary-totals,
    .aqb-promo-code {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Responsive suggestions */

    .aqb-suggestions {
        padding: 10px 8px;
    }

    .aqb-suggestions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .aqb-suggestion-item {
        padding: 10px;
        gap: 10px;
    }

    .aqb-suggestion-image {
        width: 70px;
        height: 70px;
    }

    .aqb-summary-item-title {
        max-width: 240px;
    }

    .aqb-suggestion-title {
        font-size: 13px;

    }

    .aqb-suggestion-price-ht {
        font-size: 13px;
    }

    .aqb-suggestion-price-ttc {
        font-size: 11px;
    }

    .aqb-suggestion-add,
    .aqb-suggestion-view-options {
        width: 100%;
    }

    .aqb-suggestion-add svg {
        width: 16px;
        height: 16px;
    }
}


@media (max-width: 480px) {
    .aqb-summary-item-title {
        max-width: 180px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 360px) {
    .aqb-summary-item-title {
        max-width: 140px;
    }
}

/* === Sticky CTA (visible quand le bouton principal sort de la vue) === */
.aqb-sticky-cta {
    position: fixed;
    bottom: 24px;
    /* Aligné avec le container de 1400px : right = marge du container + padding interne */
    right: calc((100vw - 1400px) / 2);
    width: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                visibility 0.3s ease;
}

.aqb-sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Masquer le label scroll-to-top quand le sticky CTA est visible */
body:has(.aqb-sticky-cta) .scroll-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Images des produits empilées */
.aqb-sticky-cta-products {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.aqb-sticky-cta-products:empty {
    display: none;
}

.aqb-sticky-cta-product-img {
    width: 36px;
    height: 36px!important;
    border-radius: 50%!important;
    border: 1px solid #ebe9e9 !important;;
    object-fit: cover;
    background: #f8f9fa;
    margin-left: -6px;
    position: relative;
    transition: transform 0.2s ease;
}

.aqb-sticky-cta-product-img:first-child {
    margin-left: 0;
}

.aqb-sticky-cta-product-img:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Badge "+X" pour les produits supplémentaires */
.aqb-sticky-cta-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: #2B4B7C;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    position: relative;
}

.aqb-sticky-cta-total {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.aqb-sticky-cta-label {
    font-size: 14px;
    color: #636262;
    font-weight: 500;
}

.aqb-sticky-cta-value {
    font-size: 18px;
    font-weight: 700;
    color: #2B4B7C;
}

.aqb-sticky-cta-btn {
    flex: 1;
    padding: 12px 20px;
    background: #2B4B7C;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(43, 75, 124, 0.25);
}

.aqb-sticky-cta-btn:hover:not(:disabled) {
    background: #1e3a5f;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(43, 75, 124, 0.35);
}

.aqb-sticky-cta-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.aqb-sticky-cta-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Écrans entre 1400px et 1432px (container + marges) */
@media (max-width: 1432px) {
    .aqb-sticky-cta {
        right: 16px;
    }
}

/* Responsive pour le sticky CTA */
@media (max-width: 1120px) {
    .aqb-sticky-cta {
        right: 16px;
        padding: 10px 14px;
        gap: 12px;
    }

    .aqb-sticky-cta-product-img {
        width: 32px;
        height: 32px !important;
    }

    .aqb-sticky-cta-more {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .aqb-sticky-cta-label {
        font-size: 12px;
    }

    .aqb-sticky-cta-value {
        font-size: 16px;
    }

    .aqb-sticky-cta-btn {
        padding: 10px 16px;
        font-size: 14px;
        gap: 8px;
    }

    .aqb-sticky-cta-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 992px) {
    .aqb-sticky-cta {
        padding: 10px 12px;
        gap: 10px;
    }

    .aqb-sticky-cta-products {
        display: none;
    }

    .aqb-sticky-cta-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Masquer le sticky CTA sur mobile */
@media (max-width: 767px) {
    .aqb-sticky-cta {
        display: none !important;
    }
}