.modal-footer > * {
    margin: 0;
}

.header {
    background: var(--main-color);
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
}

.btn-social-login {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    text-decoration: none;
    line-height: 1;
    font-weight: 600;
    color: #000000;
    border: 1px solid #e1e4e6;
    border-radius: 5px;
    padding: 16px 5px;
    transition: all .3s;
}

.btn-social-login svg path {
    transition: all .3s;
}

.btn-google:hover {
    color: #fff;
    background-color: #F14336;
    border-color: #F14336;
    text-decoration: none;
}

.btn-apple:hover {
    color: #fff;
    background-color: #000000;
    border-color: #000000;
    text-decoration: none;
}

.btn-social-login:hover svg path {
    fill: #fff;
}

/* Form */
.form-label, .form-check-label {
    font-size: 14px;
}

.form-check-input:checked {
    background-color: var(--green-color);
    border-color: var(--green-color);
}

/* Shipping method */
.shipping-tab {
    column-gap: 15px;
    flex-wrap: nowrap;
}

.shipping-tab .nav-item {
    flex: 1 1 calc(33.3333% - 10px);
}

.shipping-tab .nav-link {
    color: var(--black-color);
    font-weight: 700;
    padding: 22px 20px;
    border: 1px solid var(--gray-color-90);
    width: 100%;
    height: 100%;
}

.checkout-badge {
    font-size: 12px;
    background-color: #30A90B;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
}

.shipping-tab .nav-link:hover, .shipping-tab .nav-link.active {
    color: #fff;
    background-color: var(--main-color);
    border-color: var(--main-color);
}

/* Modal BRT */
.modal-BRT {
    padding: 0;
}

.modal-BRT:before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.60);
}

.modal-BRT .modal-content {
    box-shadow: none;
    border: none;
    border-radius: 15px !important;
}

.modal-BRT .modal-dialog {
    width: 971px;
}

.modal-BRT .modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E1E4E6;
}

.modal-BRT .modal-header:before, .modal-BRT .modal-header:after {
    content: initial;
}

.modal-BRT .modal-header h3 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    color: black;
}

.modal-BRT .modal-body {
    padding: 30px 40px;
}

.modal-BRT .modal-body h4 {
    font-size: 18px;
    line-height: 25px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    margin: 0;
}

.search-punto-BRT {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}

.search-punto-BRT .form-group {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.search-punto-BRT .form-group .btn {
    font-size: 14px;
    line-height: 1.42857;
    padding: 11px 30px;
}

.search-punto-BRT .form-group label {
    font-weight: 400;
    color: #000000;
}

.search-punto-BRT .form-group > div {
    width: 100%;
}

.search-punto-BRT .km-field {
    width: 15%;
}

.search-punto-BRT .cap-field {
    width: 38%;
}

.search-punto-BRT .indirizzo-field {
    width: 47%;
}

.search-punto-BRT .form-group:not(:first-child):before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    height: 100%;
    width: 1px;
    background-color: #249556;
}

.result-punto-BRT-list-item {
    padding: 10px;
    cursor: pointer;
}

.BRT-list-item-name, .punto-BRT-orario-name {
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.BRT-list-item-name {
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.BRT-list-item-add {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 5px;
}

.BRT-list-item-dist {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #005387;
    margin: 0;
    transition: all .3s ease-in;
}

.result-punto-BRT-list-item:hover, .result-punto-BRT-list-item-active {
    background-color: #F5F6F7;
}

.result-punto-BRT {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.BRT-list-item-perc {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #249556;
    text-decoration: underline;
    padding-bottom: 10px;
}

.result-punto-BRT-cont {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.result-punto-BRT-list {
    width: 40%;
    overflow-y: scroll;
    height: 370px;
}

.result-punto-BRT-selected {
    width: 60%;
}

.result-punto-BRT-list::-webkit-scrollbar {
    width: 6px;
}

.result-punto-BRT-list::-webkit-scrollbar-track {
    background-color: #fff;
}

.result-punto-BRT-list::-webkit-scrollbar-thumb {
    background-color: #249556;
    border-radius: 10px;
}

.result-punto-BRT-orario {
    margin: 20px 0 25px 10px;
}

.result-punto-BRT-orario p:not(:first-child) {
    margin-bottom: 5px;
    color: #000000;
}

.result-punto-BRT-selected .btn {
    padding: 7px 30px;
    margin-left: 10px;
}

.result-punto-BRT-selected .result-punto-BRT-list-item {
    cursor: default;
    background-color: #fff;
}

.modal.modal-BRT.show {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 0;
}

/* Payment Method */
.checkout-payment-box-radio {
    border: 1px solid var(--gray-color-90);
    padding: 20px;
    cursor: pointer;
}

.payment-radio {
    display: flex;
    align-items: center;
}

.checkout-payment-box-radio:not(:last-child) {
    margin-bottom: 15px;
}

.checkout-payment-card-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    color: var(--main-color);
    border-radius: 10px;
    border: 1px solid var(--main-color);
    padding: 10px 12px;
    transition: all .3s ease-in-out;
}

.checkout-payment-card-item.checkout-payment-card-item--selected, .checkout-payment-card-item:hover {
    color: #ffffff;
    background-color: var(--main-color);
}

/* Checkout product */
.checkout-cart-product-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-cart-product {
    display: flex;
    gap: 20px;
}

.checkout-cart-product-img {
    position: relative;
    flex-shrink: 0;
}

.checkout-cart-product-quantity {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    aspect-ratio: 1 / 1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    padding: 3px;
    border-radius: 3px;
}

.checkout-cart-product-info {
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
}

.checkout-cart-product-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coupon {
    display: flex;
    gap: 8px;
}

.btn-collapse {
    background-color: var(--gray-color-10);
    border: none;
    border-top: 1px solid var(--gray-color-40);
    border-bottom: 1px solid var(--gray-color-40);
    padding: 30px 20px;
}

.btn-collapse-icon::after {
    content: url(../img/arrow-up.svg);
    line-height: 1.4;
    transform: rotate(180deg);
    transition: transform .3s;
}

.btn-collapse:not(.collapsed) .btn-collapse-icon::after {
    transform: rotate(0);
}

.details-container details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-container details[open]:not(.closing) summary::after {
    transform: rotate(0);
}

.details-container details summary::after {
    content: url(../img/arrow-up.svg);
    transform: rotate(180deg);
    transition: transform .3s;
}

.form-control:read-only {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

@media (min-width: 992px) {
    .collapse.d-lg-block {
        display: block !important;
        height: auto !important;
    }
}

@media only screen and (max-width: 991.98px) {
    .modal-BRT .modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    .rounded-0-mob {
        border-radius: 0 !important;
    }

    .details-container details summary::after {
        content: initial;
    }

    .btn-confirm.is-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        opacity: 1;
        border-radius: 0;
        z-index: 1050;
    }
}

@media only screen and (max-width: 767.98px) {
    .modal-BRT .modal-header h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .modal-BRT .modal-header {
        padding: 12px;
    }

    .modal-BRT .modal-body {
        padding: 15px 20px;
    }

    .modal-BRT .modal-body h4 {
        font-size: 17px;
        line-height: 22px;
    }

    .search-punto-BRT {
        margin-top: 20px;
        gap: 0;
        flex-wrap: wrap;
        column-gap: 20px;
    }

    .search-punto-BRT .km-field {
        width: calc(30% - 10px);
    }

    .search-punto-BRT .cap-field {
        width: calc(70% - 10px);
    }

    .search-punto-BRT .indirizzo-field {
        width: calc(100%);
    }

    .search-punto-BRT .form-group:not(:first-child):before {
        content: initial;
    }

    .indirizzo-field:before {
        content: initial;
    }

    .result-punto-BRT-cont {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .BRT-list-item-perc {
        margin-left: 10px;
    }

    .result-punto-BRT-orario {
        margin: 10px 0 15px 10px;
    }

    .result-punto-BRT {
        gap: 10px;
    }

    .modal.modal-BRT.show {
        align-items: flex-start;
    }

    .search-punto-BRT .form-group {
        width: 100%;
    }

    .btn-social-login {
        font-size: 14px;
    }

    .shipping-tab .nav-link {
        font-size: 14px;
        line-height: 1.5;
        padding: 15px 10px;
    }
}

@media only screen and (max-width: 575.98px) {
    .result-punto-BRT {
        flex-direction: column;
    }

    .result-punto-BRT-list {
        width: 100%;
        height: 250px;
        margin-bottom: 30px;
    }

    .result-punto-BRT-selected {
        width: 100%;
        background-color: #f5f6f7;
        padding-bottom: 10px;
    }

    .result-punto-BRT-selected .result-punto-BRT-list-item {
        background-color: #f5f6f7;
    }

    .modal-BRT .modal-header h3 {
        font-size: 16px;
        line-height: 22px;
        flex-direction: column;
        gap: 0;
    }

    .modal-BRT .modal-body h4 {
        font-size: 15px;
    }
}
