/* input(136,7): run-time error CSS1035: Expected colon, found '{'
input(206,29): run-time error CSS1035: Expected colon, found '{' */
.custom-offcanvas-product-calculator .offcanvas-end {
    width: 778px;
    overflow-y: auto;
    padding: 40px 32px;
    gap: 24px;
}

.custom-offcanvas-product-calculator .offcanvas-header {
    padding: 0;
    justify-content: space-between
}

.custom-offcanvas-product-calculator .btn-close {
    margin: unset;
    padding: unset;
    width: 48px;
    height: 48px;
    opacity: 1;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1.55em auto no-repeat;
}

.custom-offcanvas-product-calculator .offcanvas-title {
    color: var(--secondary-color);
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: 0.64px;
}

.offcanvas-header .btn-close:focus {
    box-shadow: unset;
}

.offcanvas-description {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

.custom-offcanvas-product-calculator .offcanvas-body {
    flex-grow: unset;
    padding: unset;
    overflow-y: unset;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 8px;
}

.offcanvas-body .disclaimer {
    padding: 8px 0px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    border-top: 1px solid #e3e3e3;
}

.product-calculator-form-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 0;
}

.offcanvas-body .fields-container {
    display: flex;
    gap: 24px;
}

.fields-container .input-container {
    display: flex;
    gap: 8px;
    flex-direction: column;
    width: 50%;
}

.input-label {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
}

.input-container .input-box {
    padding: 16px;
    border: 1px solid #9C9C9C;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    border-radius: 4px;
    height: 48px;
}

.input-container .input-box:focus-visible {
    outline: none;
}

.input-container .input-box::placeholder {
    color: var(--primary-color);
}

.input-container small {
    color: #AD151C;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
}

.coat-selection-disclaimer {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    line-height: 150%;
    margin-top: 4px;
    margin-bottom: 16px;
}

.coat-items-container {
    display: flex;
    gap: 24px;
}

.coat-item {
    width: 129px;
    height: 48px;
    text-align: left;
    padding-left: 16px;
    border-radius: 4px;
    border: 1px solid #9C9C9C;
    background-color: white;

    p {
        margin-bottom: 0;
        line-height: 150%;
        color: var(--primary-color);

        &:first-child {
            font-size: 16px;
            font-weight: 400;
        }

        &:nth-child(2) {
            font-size: 12px;
            font-weight: 500;
        }
    }

    &.disabled {
        cursor: not-allowed;
        pointer-events: none;
        background-color: #EDECE6;
        border: none;

        p {
            color: #ACACAC;
        }
    }

    &.selected {
        background-color: var(--primary-color);
        border: 1.5px solid var(--primary-color);

        p {
            color: var(--white-color);
        }
    }
}

.calculate-button,
.calculate-again-button {
    display: flex;
    max-width: 282px;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
    background-color: var(--primary-color);
    border: none;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: -0.32px;
}

.calculate-button:hover,
.calculate-again-button:hover {
    text-decoration: underline;
}

.calculated-result-container {
    color: white;
    padding: 56px 36px;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
    display: none;
    border-radius: 8px;

    .calculate-again-button {
        background-color: var(--white-color );
        color: var(--primary-color);
    }

    .title {
        font-family: var(--font-family-heading);
        font-size: 32px;
        font-weight: 700;
        line-height: 120%;
        letter-spacing: 0.64px;
        text-wrap-mode: nowrap;

        span {
            text-decoration: underline;
            text-underline-offset: 12px;
            text-decoration-color: var(--white-color);
            text-decoration-thickness: 4px;
        }
    }

    .result-container {
        display: flex;
        flex-direction: column;
        gap: 4px;

        .result-label {
            font-size: 16px;
            font-weight: 500;
            line-height: 150%;
        }

        .result-value {
            font-family: var(--font-family-heading);
            font-size: 20px;
            font-weight: 700;
            line-height: 120%;
            letter-spacing: 0.4px;

            &.amount {
                display: flex;
                gap: 8px;
            }

            span {
                color: var(--white-color);
            }
        }
    }
}

.product-selection-section-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-selection-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.product-selection-card {
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    height: 100%;
}

.product-selection-card.selected {
    border: 1px solid var(--secondary-color);
}

/* CAROUSEL */

.product-calculator-carousel-wrapper {
    width: 100%;
}

.product-calculator-carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    -webkit-overflow-scrolling: touch;
}

.product-calculator-carousel-track {
    display: flex;
    width: 100%;
}

.product-calculator-carousel-item {
    flex: 0 0 50%;
    /* 2 items per full width */
    scroll-snap-align: start;
    padding: 0 0.5rem 0 0.5rem;
    box-sizing: border-box;
}

.product-calculator-carousel-item:first-child {
    padding: 0 0.5rem 0 0;
}

.product-calculator-carousel-item:last-child {
    padding: 0 0 0 0.5rem;
}

/* Hide native scrollbar ONLY when we use custom one */
.hide-native-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-native-scrollbar {
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Custom scrollbar */
.custom-scrollbar {
    position: relative;
    height: 3px;
    background-color: rgba(0, 19, 37, 0.205);
    border-radius: 9999px;
    margin-top: 6px;
    overflow: hidden;
}

.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #0a0b09;
    border-radius: 9999px;
    transition: left 0.1s linear;
}

.product-calculator-carousel-wrapper .carousel-indicator {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    line-height: 150%;
}

@media (max-width: 768px) {
    .custom-offcanvas-product-calculator .offcanvas-end {
        padding: 40px 16px;
    }

    .custom-offcanvas-product-calculator .offcanvas-header {
        align-items: start;
    }

    .custom-offcanvas-product-calculator .offcanvas-title {
        font-size: 24px;
        line-height: 150%;
        letter-spacing: 0.48px;
    }

    .custom-offcanvas-product-calculator .btn-close {
        width: 32px;
        height: 32px;
        background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    }

    .offcanvas-body .fields-container {
        flex-direction: column;
    }

    .fields-container .input-container {
        width: 100%;
    }

    .coat-items-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .coat-item {
        width: unset;
    }

    .calculate-button,
    .calculate-again-button {
        max-width: unset;
    }

    .calculated-result-container {
        padding: 36px;
    }

    .calculated-result-container .title {
        font-size: 24px;
        letter-spacing: 0.48px;
        line-height: 150%;
    }

    .result-container .result-value.amount {
        flex-direction: column;
        gap: unset;
    }
}

