/* modal */
.modal .modal-content {
    border: none;
    border-radius: 4px;
    background-color: #ffffff;
}
#formModal .modal-body {
    padding: 50px;
    padding-top: 0;
}
#formModal .modal-body input {
    border: none;
    border-radius: 9px;
}
#formModal .modal-subtitle {
    font-size: 16px;
    color: #7d7d7d;
    line-height: 155%;
    margin-bottom: 10px;
    margin-top: -10px;
    font-weight: 600;
}
#formModal .form-modal-label {
    font-size: 20px !important;
    line-height: 1.55 !important;
}
#formModal .custom-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    cursor: pointer;
}
#formModal .custom-control-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
#formModal .custom-control-label {
    order: 2;
    cursor: pointer;
}
#formModal .custom-checkbox {
    position: relative;
    order: 1;
    flex: 0 0 22px;
    padding: 0 3px;
    width: 22px;
    height: 22px;
    border: 2px solid #040e26;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
#formModal .custom-checkbox::after {
    content: "";
    width: 12px;
    height: 6px;
    flex-grow: 1;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform-origin: center;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
#formModal .custom-control-input:checked ~ .custom-checkbox {
    border-color: #040e26;
}
#formModal .custom-control-input:checked ~ .custom-checkbox::after {
    border-color: #040e26;
    transform: rotate(-45deg) scale(1);
}
#formModal .custom-control-input:focus-visible ~ .custom-checkbox {
    box-shadow: 0 0 0 4px rgba(4, 14, 38, 0.2);
}
#formModal .custom-radio {
    border: 2px solid #040e26;
}
#formModal .custom-radio::after {
    background: #040e26;
}
#formModal .custom-control-label::before {
    left: 0;
    visibility: hidden;
    cursor: pointer;
}
#formModal .custom-control-label::after {
    cursor: pointer;
}
#formModal .modal-body .form-group label:not(.custom-file-label) {
    font-size: 16px;
    color: #040e26;
    line-height: 155%;
}
#formModal .modal-body .form-group label:not(.custom-file-label) a {
    color: rgb(125, 125, 125);
    border-bottom: 1px solid rgb(125, 125, 125);
}
#formModal .modal-body .form-group {
    margin-bottom: 25px;
}
#formModal .form-btn-wrap .btn {
    padding: 15px 36px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    transition: background-color 0.2s
    ease-in-out, color 0.2s
    ease-in-out, border-color 0.2s
    ease-in-out;
    box-shadow: 0px 9px 18px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
    width: 100%;
}
#formModal .modal-body .form-control {
    padding: 20px;
    height: auto;
}
#formModal .modal-content {
    border-radius: 27px;
}
.modal.modal-right {
    padding-right: 0 !important;
}
#formModal .modal-dialog {
    max-width: 580px;
}
.modal.modal-right .modal-dialog {
    margin: 0;
    float: right;
    width: 100%;
}
.modal.modal-right .modal-content {
    min-height: 100vh;
    border-radius: 0;
}
.modal.modal-right .modal-body {
    padding: 0 60px 60px 60px;
}
.modal .close {
    opacity: 1;
    outline: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal .close svg {
    height: 13px;
    width: 13px;
    stroke: #bbbbbb;
    text-shadow: none !important;
}

.modal .modal-title {
    font-weight: bold;
    font-size: 32px;
    line-height: 120%;
    color: #040e26;
    margin: 0;
}
.modal .modal-header {
    border-bottom: none;
    padding: 40px 45px 10px;
}
.modal ul,
.modal ol,
.modal dl {
    color: #666666;
    font-size: 15px;
    line-height: 24px;
    padding-left: 1.3em;
}

#agreementModal .modal-dialog {
    width: 100%;
    max-width: 800px;
}
#agreementModal .modal-header {
    border-bottom: none;
    padding: 0;
    margin-bottom: 30px;
}
#agreementModal .modal-content {
    padding: 50px;
}
#agreementModal .modal-body {
    padding: 0;
}

/* b24 modal */
.modal-form-b24 .modal-header {
    padding: 40px 0 0 0 !important;
}
.modal-form-b24 .modal-body {
    padding: 0 !important;
}
.modal-form-b24 .modal-title {
    display: none !important;
}
.b24-form-shadow {
    box-shadow: none !important;
}

/* card modal */
#cardModal .modal-dialog {
    width: 860px;
    max-width: 860px;
    justify-content: center;
}
#cardModal .modal-header {
    padding: 0;
}
#cardModal .modal-body {
    padding: 0;
}
#cardModal .modal-content {
    padding: 40px;
    overflow: hidden;
    max-width: 560px;
    background-color: #f3f3f3;
}
#cardModal .modal-footer {
    border-top: none;
    padding: 0;
    margin-top: 45px;
    justify-content: flex-start;
}
@media (max-width: 991px) {
    #cardModal .modal-dialog {
        width: auto;
    }
    #cardModal .modal-content {
        padding: 35px 30px;
    }
}
@media (max-width: 575px) {
    #cardModal .modal-content {
        padding: 35px 15px;
    }
    .modal .modal-header {
        padding: 20px 20px 10px;
    }
    #formModal .modal-body {
        padding: 20px;
    }
    .modal .modal-title {
        font-size: 24px;
    }
}


/* video modal */
#videoModal .modal-dialog {
    margin: 0;
    max-width: unset;
    height: 100%;
}

#videoModal .modal-content {
    border-radius: 0;
    width: 100%;
    height: 100%;
}

#videoModal .close {
    z-index: 1;
}

#videoModal .modal-body {
    display: flex;
    align-items: center;
}

.modal-card-back {
    position: relative;
    font-size: 15px;
    line-height: 24px;
    color: #333333;
    padding-left: 22px;
    display: block;
}
.modal-card-back-icon {
    position: absolute;
    left: 0;
    top: calc(50% - 6px);
    color: #333333;
    width: 7px;
    height: 12px;
}
.modal-card-back-icon svg {
    width: 7px;
    height: 12px;
    position: absolute;
    top: 0;
    left: 0;
}

/* mobile */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 0;
    }

    .modal .modal-content {
        border-radius: 0;
        min-height: 100vh;
        min-width: 100vw;
    }
}

/* BASKET */

.order-basket-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #00000033;
    border-bottom: 1px solid #00000033;
}
.order-basket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.order-basket-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 155%;
    color: #000;
}
.order-basket-item-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: .7;
}
.order-basket-item-counter {
    padding: 0 20px 0 10px;
}

.order-basket-item-info {
    display: grid;
    grid-template-columns: repeat(3, auto);
    align-items: center;
    gap: 15px;
}
.order-basket-item-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
}
order-basket-item-remove:focus-visible {
    outline: none;
}
.order-basket-item-remove:hover {
    background: #ff4444;
    color: white;
}
.order-basket-item-remove:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.counter{
    width: 70px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.counter-minus, .counter-plus {
    position: relative;
    cursor: pointer;
    opacity: .4;
}
.order-basket-item:hover .counter-minus, .order-basket-item:hover .counter-plus {
    opacity: 1;
}
.order-basket-total {
    text-align: end;
    margin-top: 30px;
    font-weight: 600;
}
.counter-minus svg,
.counter-plus svg {
    width: 20px;
    height: 20px;
}
.counter-value {
    font-size: 14px;
    line-height: 21px;
    color: #333;
    position: relative;
    top: 2px;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
}
.counter-value:focus-visible {
    outline: none;
}

@media (max-width: 575px) {
    .order-basket-item-info {
        grid-template-columns: repeat(2, auto);
    }
    .order-basket-item-title {
        grid-column: 1 / 3;
    }
    .order-basket-item-remove {
        align-self: baseline;
    }
}
