/* ----------------------------------------------------------------
   ap_productcarriers
   Encart "Modes de livraison disponibles" sur la PDP.
   Style aligne sur .ap-fs-notice (module ap_freeshipping).
   ---------------------------------------------------------------- */

.ap-pc-notice {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: var(--color-lightgray);
    border-radius: var(--border-radius);
    color: var(--color-darkgreen);
}
.ap-pc-notice-summary {
    display: flex;
    align-items: center;
    gap: 0;
}
.ap-pc-icon {
    flex-shrink: 0;
    font-size: 1.8em;
    padding: 0 0.5rem;
    opacity: 0.8;
}
.ap-pc-notice-content {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.ap-pc-info {
    cursor: pointer;
    opacity: 0.5;
}
.ap-pc-info:hover,
.ap-pc-info:focus {
    outline: none;
}

/* Restyle du tooltip jQuery UI specifique a ap_productcarriers (fond sombre,
   fleche en haut puisque le tooltip s'affiche sous l'icone). La classe
   .ap-pc-tip est ajoutee via option tooltipClass dans front.js. */
.ui-tooltip.ap-pc-tip {
    max-width: 260px;
    padding: 6px 10px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1070;
}
.ui-tooltip.ap-pc-tip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #000;
    border-top: 0;
}
.ui-tooltip.ap-pc-tip .ui-tooltip-content {
    background: transparent;
    color: inherit;
    padding: 0;
}
.ui-tooltip.ap-pc-tip a,
.ui-tooltip.ap-pc-tip a:hover,
.ui-tooltip.ap-pc-tip a:focus {
    color: #fff;
    text-decoration: underline;
}
.ap-pc-notice-title {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.ap-pc-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ap-pc-logo-item {
    margin: 0;
    padding: 0;
    min-width: 0;
    flex: 0 1 auto;
}
.ap-pc-logo {
    max-height: 17px;
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
}
.ap-pc-logo-fallback {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.85rem;
    color: var(--color-darkgreen);
}

@media (max-width: 575px) {
    .ap-pc-notice {
        padding: 0.75rem;
    }
}
