/*
 * Colleague price list uses the promotion layout with light storefront colors.
 */

.colleague-layout { margin: 0; }
.colleague-content { min-width: 0; }

.special-offers-is-loading,
.colleague-page-is-loading { overflow: hidden; }

.special-offers-loading,
.colleague-page-loading {
    position: fixed;
    inset: 0;
    z-index: 2000000003;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, .76);
    cursor: wait;
    transition: opacity .18s ease, visibility .18s ease;
}

.special-offers-loading.is-visible,
.colleague-page-loading.is-visible {
    visibility: visible;
    opacity: 1;
}

.special-offers-loading__content,
.colleague-page-loading__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border: 1px solid #eee0e7;
    border-radius: 12px;
    background: #fff;
    color: #34343e;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 32px rgba(52, 52, 62, .12);
}

.special-offers-loading__spinner,
.colleague-page-loading__spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #f0ccdc;
    border-top-color: #d90268;
    border-radius: 50%;
    animation: special-offers-loading-spin .7s linear infinite;
}

@keyframes special-offers-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .special-offers-loading,
    .colleague-page-loading { transition: none; }
    .special-offers-loading__spinner,
    .colleague-page-loading__spinner { animation-duration: 1.4s; }
}

.colleague-offers .b2c-offers__panel {
    background-color: #343891;
}

.colleague-offers .b2c-offers__slide > .plp-card {
    border: 0;
}

.colleague-offers .b2c-offer-card__footer {
    padding-top: 8px;
    border-top: 0;
}

.colleague-offers .b2c-offer-card__actions .plp-card__action {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f4f5f9;
    color: #5c6677;
}

.colleague-offers .b2c-offer-card__actions .plp-card__action:hover {
    background: #fff0f6;
    color: #d90268;
}

.colleague-layout .colleague-filters .filter.colleague-filter-card {
    --plp-card: #fff;
    --plp-card-border: #dedee5;
    --plp-field: #f7f7fa;
    --plp-light: #34343e;
    --plp-quaternary: #656575;
    --plp-error: #b42350;
    --plp-dot: #d90268;
}

.colleague-layout .filter.colleague-filter-card .plp-option input:checked ~ .plp-option__control,
.colleague-layout .filter.colleague-filter-card .plp-option__link:is(.is-active, .active) .plp-option__dot {
    border-color: var(--plp-dot);
    background-color: var(--plp-dot);
}

.colleague-layout .filter.colleague-filter-card .plp-option:not(.plp-option--radio) input:checked ~ .plp-option__control::after,
.colleague-layout .filter.colleague-filter-card .plp-option__link:is(.is-active, .active) .plp-option__dot::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.colleague-layout .filter.colleague-filter-card .plp-options--scroll {
    scrollbar-color: var(--plp-dot) transparent;
}

.colleague-filter-card .colleague-search-form > .plp-search {
    margin-bottom: 16px;
}

.colleague-layout .filter.colleague-filter-card .plp-options--scroll::-webkit-scrollbar-thumb {
    background-color: var(--plp-dot);
}

.colleague-layout .filter.colleague-filter-card .plp-filter-apply,
.colleague-layout .plp-card .plp-card__action {
    border: 1px solid #f0ccdc;
    background: #fff2f7;
    color: #a8004d;
}

.colleague-layout .plp-card .plp-card__action {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
}

.colleague-layout .filter.colleague-filter-card .plp-filter-apply:hover,
.colleague-layout .plp-card .plp-card__action:hover {
    border-color: #e6a5c3;
    background: #ffe4ef;
    color: #a8004d;
}

.colleague-layout .plp-card .plp-card__action:focus-visible {
    outline-color: #ba0056;
}

.colleague-layout .filter.colleague-filter-card :is(.plp-option, .plp-option__link):hover .plp-option__label {
    color: var(--plp-light);
}

/* The old table lived inside a bordered white sheet; the cards bring their own surface. */
.order-content.colleague-page { padding: 0; border: 0; border-radius: 0; background: transparent; }
.colleague-content .order-box { background: transparent; }
.colleague-price-list-title { text-align: center; }
.colleague-page .colleague-price-list-title h3 { font-size: 20px; font-weight: 700; }

@media (min-width: 992px) {
    .colleague-price-list-title { text-align: right; }

    .colleague-layout {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .colleague-layout > .colleague-filters,
    .colleague-layout > .colleague-content {
        width: auto;
        max-width: none;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }

    .colleague-layout > .colleague-filters { top: 20px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .colleague-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
}

/* Mobile toolbar above the grid (search + filters toggle). */
.colleague-toolbar { align-items: stretch; }
.colleague-toolbar .colleague-filter-toggle { min-height: 42px; }

/* Slide-out filters: keep the sheet off-canvas until it is opened. */
@media (max-width: 991.98px) {
    .colleague-layout .colleague-filters { visibility: hidden; padding: 0; }
    .colleague-layout .colleague-filters.open { visibility: visible; }
}

/* Compact single-column card on phones (image + title side by side). */
@media (max-width: 575.98px) {
    .colleague-layout .plp-card-grid { grid-template-columns: minmax(0, 1fr); }

    .colleague-layout .plp-card {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas: "media title" "footer footer";
        gap: 8px;
    }

    .colleague-layout .plp-card__media { grid-area: media; width: 72px; height: 72px; }
    .colleague-layout .plp-card__title { grid-area: title; height: 32px; -webkit-line-clamp: 2; }
    .colleague-layout .plp-card__footer { grid-area: footer; }
    .colleague-layout .plp-card__action { width: 32px; height: 32px; }
}
