﻿#offerConfiguration {
    width: 100%;
    margin: 15px;
}

    #offerConfiguration .error-border, .offer-configuration-promo-code .error-border {
        border: 1px solid red;
    }

.offer-configuration {
    border-radius: 16px;
    background-color: #F2F2F2;
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

    .offer-configuration input[type="text"] {
        font-size: 1rem;
    }

    .offer-configuration.invite-form-offer-configuration {
        background-color: transparent;
        padding: 0px;
        margin-bottom: 16px;
    }

    .offer-configuration .offer-configuration-option {
        border-radius: 12px;
        background: #FFF;
        display: flex;
        padding: 14px 12px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

        .offer-configuration .offer-configuration-option label.switch:has(input[type="checkbox"]:checked) ~ span {
            color: #A36B00;
        }

    .offer-configuration .switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 20px;
        flex-shrink: 0;
    }

        .offer-configuration .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    .offer-configuration .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
    }

        .offer-configuration .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            -webkit-transition: .4s;
            transition: .4s;
        }

    .offer-configuration input[type="checkbox"]:checked ~ .slider {
        background-color: #A36B00;
    }

    .offer-configuration .bizz-club input[type="checkbox"]:checked ~ .slider {
        background-color: #A36B00;
    }

    .offer-configuration input[type="checkbox"]:focus ~ .slider {
        box-shadow: 0 0 1px #2196F3;
    }

    .offer-configuration input[type="checkbox"]:checked ~ .slider:before {
        -webkit-transform: translateX(20px);
        -ms-transform: translateX(20px);
        transform: translateX(20px);
    }

    .offer-configuration .slider.round {
        border-radius: 20px;
    }

        .offer-configuration .slider.round:before {
            border-radius: 50%;
        }

    .offer-configuration .add-client-button {
        background-color: #000;
        font-size: 14px;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        min-width: 120px;
        font-size: 12px;
        font-weight: 700;
        height: fit-content;
    }

.offer-configuration-clients {
    width: 100%;
}

    .offer-configuration-clients .client-list {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        width: 100%;
    }

        .offer-configuration-clients .client-list .client-item {
            display: none;
            gap: 4px;
            align-items: center;
            padding: 6px 8px;
            border-radius: 4px;
            border: 1px solid #666;
        }

            .offer-configuration-clients .client-list .client-item.client-item-visible {
                display: flex;
            }

            .offer-configuration-clients .client-list .client-item span {
                color: #212529;
                font-size: 10px;
                font-weight: 400;
                line-height: normal;
            }

            .offer-configuration-clients .client-list .client-item button {
                width: 12px;
                height: 12px;
                border: none;
                font-size: 8px;
                padding: 0px;
                color: black;
                background-color: transparent;
            }

    .offer-configuration-clients .clients-not-from-db {
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        padding: 8px;
        gap: 8px;
        border: 1px dashed #CED4DA;
        border-radius: 12px;
    }

    .offer-configuration-clients .clients-not-from-db-header {
        color: #212529;
        font-size: 12px;
    }

    .offer-configuration-clients .clients-not-from-db .client-list-add-form {
        display: flex;
        gap: 6px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

        .offer-configuration-clients .clients-not-from-db .client-list-add-form input {
            padding: 9px 12px;
            border-radius: 6px;
            border: 1px solid #CED4DA;
            background: #FFF;
            font-size: 14px;
            flex: 1;
            line-height: 1;
        }

@media screen and (max-width: 840px) {
    .offer-configuration-clients .clients-not-from-db .client-list-add-form {
        flex-direction: column;
        align-items: end;
    }

        .offer-configuration-clients .clients-not-from-db .client-list-add-form input {
            flex-grow: 1;
        }
}

.offer-configuration-clients .clients-not-from-db .client-list-add-form button {
    border-radius: 6px;
    background: #000;
    padding: 8px 12px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border: none;
    flex-shrink: 0;
}

    .offer-configuration-clients .clients-not-from-db .client-list-add-form button.not-valid-email {
        color: #CED4DA;
        background-color: #FFF;
        border: 1px solid #CED4DA;
    }

.offer-configuration-clients .client-list-not-from-db {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

    .offer-configuration-clients .client-list-not-from-db .client-item {
        display: flex;
        gap: 4px;
        align-items: center;
        padding: 6px 8px;
        border-radius: 4px;
        background: #B59764;
    }

        .offer-configuration-clients .client-list-not-from-db .client-item span {
            color: #212529;
            font-size: 10px;
            font-weight: 400;
            line-height: normal;
            color: white;
        }

        .offer-configuration-clients .client-list-not-from-db .client-item button {
            width: 12px;
            height: 12px;
            border: none;
            font-size: 8px;
            padding: 0px;
            color: white;
            background-color: transparent;
        }

.offer-configuration .no-clients-message {
    color: #666666;
    font-size: 10px;
    font-weight: 400;
}

.offer-configuration .client-list:has(div.client-item-visible) ~ .no-clients-message {
    display: none;
}

#clients-modal {
    padding-right: 0 !important;
}

    #clients-modal .modal-content {
        border-radius: 16px;
        overflow: hidden;
    }

    #clients-modal .modal-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        background-color: #000;
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        line-height: 33.6px;
        letter-spacing: 1px;
        text-align: left;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        width: 100%;
        min-height: 82px;
        padding: 24px;
    }

    #clients-modal .modal-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    #clients-modal .select-client-button {
        border-radius: 6px;
        background: #A36B00;
        padding: 8px 12px;
        border: none;
        color: white;
        font-weight: 700;
        font-size: 14px;
    }

    #clients-modal .client-list {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 16px;
    }

        #clients-modal .client-list label {
            width: 30%;
            display: flex;
            gap: 4px;
            align-items: flex-start;
            margin: 0;
        }

            #clients-modal .client-list label input[type="checkbox"] {
                width: 18px;
                height: 18px;
                accent-color: #A36B00;
                display: block;
            }

            #clients-modal .client-list label span {
                font-size: 12px;
                font-weight: 400;
                flex-grow: 1;
                display: block;
                width: 100%;
                word-break: break-all;
            }

#success-modal .modal-header, #success-promocode-modal .modal-header {
    padding: 20px;
}

#success-modal .modal-body, #success-promocode-modal .modal-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    #success-modal .modal-body img, #success-promocode-modal .modal-body img {
        width: 150px;
        height: 150px;
    }

    #success-modal .modal-body h3, #success-promocode-modal .modal-body h3 {
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
    }

    #success-modal .modal-body p, #success-promocode-modal .modal-body p {
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
    }

    #success-modal .modal-body button, #success-promocode-modal .modal-body button {
        border-radius: 8px;
        background: #000;
        border: none;
        color: white;
        padding: 16px 10px;
        width: 100%;
    }

#offer-details-modal {
    font-family: Inter;
    padding-right: 0 !important;
}

    #offer-details-modal .modal-content {
        border-radius: 16px;
        overflow: hidden;
    }

    #offer-details-modal .modal-dialog {
        max-width: 848px;
    }

    #offer-details-modal .modal-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        background-color: #000;
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        line-height: 33.6px;
        letter-spacing: 1px;
        text-align: left;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        width: 100%;
        min-height: 82px;
        padding: 24px;
    }

        #offer-details-modal .modal-header p {
            margin-bottom: 0;
        }

        #offer-details-modal .modal-header button.close {
            filter: invert(1);
        }

    #offer-details-modal .modal-body {
        background-color: #F2F2F2;
        padding: 24px;
    }

    #offer-details-modal .offer-details-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

        #offer-details-modal .offer-details-body .header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            width: 100%;
        }

            #offer-details-modal .offer-details-body .header .item {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding: 0 16px;
                width: 100%;
                gap: 4px;
            }

                #offer-details-modal .offer-details-body .header .item * {
                    text-align: center;
                    margin: 0;
                }

                #offer-details-modal .offer-details-body .header .item p {
                    font-family: Inter;
                    font-size: 20px;
                    font-weight: 700;
                    line-height: 24.2px;
                    text-align: center;
                    text-underline-position: from-font;
                    text-decoration-skip-ink: none;
                }

                #offer-details-modal .offer-details-body .header .item label {
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 16.94px;
                    text-align: center;
                    text-underline-position: from-font;
                    text-decoration-skip-ink: none;
                    color: #999999;
                }

            #offer-details-modal .offer-details-body .header > *:not(:last-child) {
                border-right: solid 1px #DEE2E6;
            }

        #offer-details-modal .offer-details-body .section {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

    #offer-details-modal .section h2.title {
        margin: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 16.94px;
        text-align: left;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #999999;
    }

    #offer-details-modal .section.products p.all-products-info {
        align-self: flex-start;
        padding: 8px 12px 8px 12px;
        border-radius: 4px;
        margin: 0;
        display: inline-block;
        background-color: #B59764;
        color: white;
        font-size: 14px;
        font-weight: 400;
        line-height: 16.94px;
        text-align: center;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
    }

    #offer-details-modal .section.products .products-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        #offer-details-modal .section.products .products-list .product-item {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
        }

            #offer-details-modal .section.products .products-list .product-item .photo {
                width: 36px;
                height: 36px;
                background-color: white;
                border: solid 1px #DEE2E6;
                border-radius: 6px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

                #offer-details-modal .section.products .products-list .product-item .photo img {
                    display: block;
                    width: 30px;
                    height: 30px;
                    object-fit: contain;
                    object-position: center;
                }

            #offer-details-modal .section.products .products-list .product-item .details {
                flex-grow: 1;
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

                #offer-details-modal .section.products .products-list .product-item .details .sku {
                    font-size: 10px;
                    font-weight: 400;
                    line-height: 14px;
                    text-align: left;
                    text-underline-position: from-font;
                    text-decoration-skip-ink: none;
                    color: #00000099;
                }

                #offer-details-modal .section.products .products-list .product-item .details .name {
                    font-size: 12px;
                    font-weight: 600;
                    line-height: 14.52px;
                    text-align: left;
                    text-underline-position: from-font;
                    text-decoration-skip-ink: none;
                    color: #0D0D0D;
                }

            #offer-details-modal .section.products .products-list .product-item .price-group {
            }

                #offer-details-modal .section.products .products-list .product-item .price-group .wrapper {
                    padding: 6px 8px 6px 8px;
                    border-radius: 4px;
                    background-color: #B59764;
                    color: white;
                    font-size: 10px;
                    font-weight: 400;
                    line-height: 12.1px;
                    text-align: center;
                    text-underline-position: from-font;
                    text-decoration-skip-ink: none;
                    white-space: nowrap;
                }

    #offer-details-modal .section.clients .clients-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

        #offer-details-modal .section.clients .clients-list .client-item {
            padding: 6px 8px 6px 8px;
            border-radius: 4px;
            background-color: white;
            font-size: 10px;
            font-weight: 400;
            line-height: 12.1px;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            color: #212529;
            white-space: nowrap;
        }

    #offer-details-modal .section.footer {
    }

        #offer-details-modal .section.footer p {
            margin: 0;
            font-size: 10px;
            font-weight: 400;
            line-height: 12.1px;
            text-align: right;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
            color: #999999;
        }

#PromoCodeConfiguration, #PrivilegedConditionsConfiguration {
    min-width: 320px;
    width: 320px;
}

@media screen and (max-width: 389.95px) {
    #PromoCodeConfiguration, #PrivilegedConditionsConfiguration {
        min-width: unset;
        width: 100%;
    }

    #clients-modal .client-list label {
        width: 100%;
    }
}

@media screen and (min-width: 390px) and (max-width: 839.98px) {
    #clients-modal .client-list label {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    #offer-details-modal .offer-details-body .header {
        flex-wrap: wrap;
        row-gap: 16px;
    }

        #offer-details-modal .offer-details-body .header .item {
            flex: 0 0 50%;
            border-right: 0;
        }

            #offer-details-modal .offer-details-body .header .item p {
                font-size: 15px;
            }

            #offer-details-modal .offer-details-body .header .item label {
                font-size: 12px;
            }
}

@media screen and (max-width: 425px) {
    #offer-details-modal .offer-details-body .header .item {
        flex: 0 0 100%;
    }
}
