/* Order Sample Modal Styles */

.btn-order-sample-submit {
    font-weight: 600;
}

.btn-close-order-sample-modal {
    background: #efefef;
    border-color: #efefef;
    color: #000 !important;
    font-weight: 600;
    float: right;
}

.btn-close-order-sample-modal:hover {
    background: #000;
    color: #fff !important;
    border: 1px solid #000;
}

.modal-footer-custom {
    display: flex;
}

.right-footer {
    margin-left: auto;
    order: 2;
}

.product-variation-property {
    display: flex;
    align-items: center;
    margin-left: 25px;
    margin-top: 30px;
}

.product-variation-info {
    display: flex;
    align-items: center;
}

.product-variation-info img {
    width: 70px;
    height: 80px;
    border-radius: 5px;
}

.product-variation-info .product-details {
    flex: 1;
    margin-left: 10px;
}

.product-variation-info .product-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid #666;
}

.product-variation-info .product-description {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-variation-info .product-description i {
    color: #999;
}

.product-variation-property-body {
    margin-left: 80px;
}

.product-variation-property-body .colored-swatch {
    font-size: 0;
    width: 25px;
    height: 25px;
    border-bottom: none;
    border-radius: 50%;
    background-size: cover;
}

.product-variation-property-body .swatches-select .active-swatch:after {
    border-bottom: 1px solid #000;
}

.swatches-select :is(.image-swatch,.colored-swatch).active-swatch:after {
    border-bottom: 1px solid #000;
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    border-bottom: 2px solid #000;
}

.product-variation-property-body .swatches-select>div {
    position: relative;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    min-width: 25px;
    color: #1B1919;
    margin-right: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.product-variation-property-body .swatches-select>div:hover {
    cursor: pointer;
}

.size-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-selector {
    display: contents;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
    margin-bottom: 15px;
    flex-direction: column;
}

.size-label {
    display: flex;
    align-items: center;
    justify-content: right;
    width: 40px;
    font-weight: 550;
    color: #67d127;
    margin-right: 2px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-wrapper button {
    background-color: #f0f0f0;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.quantity-wrapper button:hover {
    background-color: #ddd;
    color: black !important;
}

.quantity-wrapper input {
    width: 42px;
    height: 28px;
    text-align: center;
    border: none;
}

.jquery-modal {
    z-index: 500;
}

.product-variation-property-body .swatches-select :is(.image-swatch,.colored-swatch) {
    font-size: 0;
    width: 25px;
    height: 25px;
    border-bottom: none;
    border-radius: 50%;
    background-size: cover;
}

/* Modal styles */
.modal {
    max-width: 650px;
    display: none;
}

.modal-header h5 {
    font-weight: bold;
}

.modal-dialog {
    margin: 0px !important;
}

.modal-header {
    padding: 0px !important;
    border-bottom: none !important;
}

/* Responsive styles */
@media screen and (max-width: 767px) {
    .modal {
        width: 100% !important;
    }
    .modal-footer-custom {
        width: 100%;
        margin-left: 0px;
        text-align: left;
        gap: 4px !important;
    }
    .modal-footer {
        text-align: left;
    }

    .btn-order-sample-submit {
        width: auto;
        min-width: 110px !important;
    }

    .btn-close-order-sample-modal {
        width: auto;
        min-width: 110px !important;
        float: none;
    }

    .motiv-box span {
        font-size: 11px;
        margin-left: 0px !important;
    }
    .woocommerce .form-row-first, .woocommerce .form-row-last, .woocommerce-page .form-row-first, .woocommerce-page .form-row-last {
        overflow: hidden !important;
    }
}

@media screen and (max-width: 480px) {
    .rest-zone {
        flex-grow: 1;
        width: 11vw;
    }

    .modal-footer-custom {
        display: block;
    }

    .left-footer, .right-footer {
        text-align: center;
    }

    .btn-close-order-sample-modal {
        width: 90%;
        margin-bottom: 10px;
    }

    .btn-order-sample-submit {
        width: 90%;
    }
}

@media screen and (max-width: 380px) {
    .rest-zone {
        flex-grow: 1;
        width: 5vw;
    }
}
