/* ============================================================
   Recommendation / Accessory Modal  —  carousel slide-in style
   Used on: shop/index, shop/show (implant products)
   ============================================================ */

.config-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.38);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 2000;
}

.config-modal.is-open {
    display: flex;
}

.config-modal__panel {
    background: #e1e1e1;
    border-radius: 15px;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.2);
    max-width: 1012px;
    overflow: hidden;
    padding: 30px;
    width: min(1012px, calc(100vw - 20px));
}

.config-modal__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.config-modal__mobile-topbar,
.config-modal__mobile-breadcrumbs {
    display: none;
}

.config-modal__mobile-topbar {
    align-items: center;
    justify-content: space-between;
}

.config-modal__mobile-back,
.config-modal__mobile-cart,
.config-modal__mobile-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #4d5c5a;
    display: inline-flex;
    padding: 0;
    text-decoration: none;
}

.config-modal__mobile-back {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    gap: 5px;
    line-height: 21px;
}

.config-modal__mobile-actions {
    align-items: center;
    display: inline-flex;
    gap: 14px;
}

.config-modal__mobile-cart,
.config-modal__mobile-close {
    font-size: 18px;
    justify-content: center;
    width: 19px;
}

.config-modal__mobile-breadcrumbs {
    flex-direction: column;
    gap: 5px;
}

.config-modal__mobile-breadcrumb {
    color: rgba(77, 92, 90, 0.82);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.config-modal__mobile-breadcrumb .arrow {
    color: #4d5c5a;
    font-size: 12px;
    margin-left: 4px;
}

.config-modal__title {
    background: linear-gradient(180deg, #029f8d 0%, #008777 63.462%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 50px;
    margin: 0;
}

.config-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #4d5c5a;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 20px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 20px;
}

.config-modal__carousel {
    align-items: center;
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.config-modal__nav {
    align-items: center;
    background: transparent;
    border: 0;
    color: #4d5c5a;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 39px;
    justify-content: center;
    opacity: 0.85;
    padding: 0;
    transition: opacity .15s ease;
    width: 20px;
}

.config-modal__nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.config-modal__nav[disabled] {
    opacity: 0.35;
    cursor: default;
}

.config-modal__track {
    align-items: stretch;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    gap: 15px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: auto;
}

.config-modal__track::-webkit-scrollbar {
    display: none;
}

.config-modal-card {
    align-items: center;
    backdrop-filter: blur(25px);
    border: 1px solid #4d5c5a;
    border-radius: 15px;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 284px;
    gap: 11px;
    max-width: 284px;
    min-height: 175px;
    padding: 20px;
}

.config-modal-card__image {
    align-items: center;
    display: flex;
    height: 112.73px;
    justify-content: center;
    width: 71.19px;
}

.config-modal-card__image img {
    display: block;
    height: 112.73px;
    object-fit: contain;
    width: 71.19px;
}

.config-modal-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-height: 135px;
    min-width: 0;
}

.config-modal-card__top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-modal-card__name {
    color: #4d5c5a;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 20px;
    margin: 0;
}

.config-modal-card__sku {
    color: rgba(77, 92, 90, 0.7);
    font-size: 10px;
    letter-spacing: -0.01em;
    line-height: 12px;
    margin: 0;
}

.config-modal-card__size {
    color: rgba(77, 92, 90, 0.9);
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    margin: 0;
}

.config-modal-card__controls {
    align-items: center;
    display: flex;
    gap: 10px;
    width: 155px;
}

.config-modal__qty {
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 100px;
    box-sizing: border-box;
    display: inline-flex;
    flex: 1;
    gap: 5px;
    height: 40px;
    justify-content: center;
    padding: 0 16px;
}

.config-modal__qty-btn {
    align-items: center;
    background: transparent;
    border: 0;
    color: #212121;
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    font-weight: 400;
    height: 20px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 20px;
}

.config-modal__qty-value {
    color: #212121;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    min-width: 30px;
    text-align: center;
}

.config-modal__add {
    align-items: center;
    background: linear-gradient(180deg, #029f8d 0%, #008777 63.462%);
    border: 0;
    border-radius: 100px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    height: 40px;
    justify-content: center;
    min-width: 40px;
    padding: 0;
    width: 40px;
}

.config-modal__add svg {
    display: block;
    flex-shrink: 0;
    height: 16px;
    width: 16px;
}

.config-modal__add i {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.config-modal__actions {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 0;
}

.config-modal__prev,
.config-modal__next {
    align-items: center;
    background: transparent;
    border: 0;
    color: #008777;
    cursor: default;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    justify-content: flex-start;
    line-height: 21px;
    min-width: 248px;
    padding: 0;
    white-space: nowrap;
}

.config-modal__prev {
    justify-content: flex-start;
}

.config-modal__next {
    justify-content: flex-end;
    text-align: right;
}

.config-modal__continue {
    align-items: center;
    background: linear-gradient(180deg, #029f8d 0%, #008777 63.462%);
    border: 0;
    border-radius: 100px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 15px;
    height: 45px;
    justify-content: center;
    min-width: 241px;
    padding: 0 38px;
    text-decoration: none;
}

.config-modal__next .arrow {
    font-size: 20px;
    line-height: 1;
}

.config-modal__prev .arrow {
    font-size: 20px;
    line-height: 1;
}

.config-modal__category-link.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@media (max-width: 760px) {
    .config-modal {
        align-items: flex-start;
        background: #e1e1e1;
        overflow-y: auto;
    }

    .config-modal__panel {
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        max-height: none;
        min-height: 100vh;
        overflow: visible;
        padding: 12px 5px 24px;
        width: 100vw;
    }

    .config-modal__mobile-topbar,
    .config-modal__mobile-breadcrumbs {
        display: flex;
    }

    .config-modal__mobile-topbar {
        margin-bottom: 16px;
        padding: 0 1px;
    }

    .config-modal__mobile-breadcrumbs {
        margin-bottom: 10px;
        padding: 0 1px;
    }

    .config-modal__title {
        font-size: 25px;
        line-height: 32px;
    }

    .config-modal__header {
        margin-bottom: 10px;
        order: 1;
        padding: 0 1px;
    }

    .config-modal__close {
        display: none;
    }

    .config-modal__carousel {
        display: block;
        margin-bottom: 0;
        order: 3;
    }

    .config-modal__nav {
        display: none;
    }

    .config-modal__track {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        overflow: visible;
        padding: 0 1px;
        width: 100%;
    }

    .config-modal__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        margin-bottom: 8px;
        order: 2;
        padding: 0 1px;
    }

    .config-modal__continue {
        height: 35px;
        min-width: 0;
        padding: 0 24px;
        width: 100%;
    }

    .config-modal__prev,
    .config-modal__next {
        display: none;
    }

    .config-modal-card {
        border-radius: 10px;
        flex: 0 0 auto;
        gap: 11px;
        max-width: none;
        min-height: 0;
        padding: 11px 14px 11px 10px;
        width: 100%;
    }

    .config-modal-card__image {
        height: 71px;
        width: 45px;
    }

    .config-modal-card__image img {
        height: 71px;
        width: 45px;
    }

    .config-modal-card__body {
        gap: 10px;
        justify-content: center;
        min-height: 0;
    }

    .config-modal-card__top {
        gap: 4px;
    }

    .config-modal-card__name {
        font-size: 12px;
        line-height: 16px;
    }

    .config-modal-card__sku {
        font-size: 8px;
        line-height: 10px;
    }

    .config-modal-card__size {
        font-size: 10px;
        line-height: 12px;
    }

    .config-modal-card__controls {
        align-items: center;
        gap: 8px;
        width: auto;
    }

    .config-modal__qty {
        flex: 0 0 auto;
        gap: 10px;
        height: 29px;
        min-width: 86px;
        padding: 7px 14px;
    }

    .config-modal__qty-btn {
        font-size: 20px;
        height: 12px;
        width: 12px;
    }

    .config-modal__qty-value {
        font-size: 12px;
        line-height: 14px;
        min-width: 12px;
    }

    .config-modal__add {
        font-size: 12px;
        height: 29px;
        min-width: 29px;
        width: 29px;
    }
}
