.btn.btn-return-request, .btn.btn-view-return-request {
    border: 1px solid #6B6B6B;
    margin-left: 10px;
    font-weight: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: calc(100% - 10px);
}

.btn.btn-return-request:hover, .btn.btn-view-return-request:hover {
    border-color: #ffbe2d;
    background: #ffbe2d;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
}

.modal .modal-content {
    width: 600px;
    max-width: 99%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 0 13px rgba(75, 75, 75, .4);
}

.modal .modal-content .modal-header {
    display: flex;
    padding: 15px 20px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    gap: 30px;
}

.modal .modal-content .modal-header .modal-title {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

.modal .modal-content .modal-header .modal-title span {
    font-weight: bold;
}

.modal .modal-content .modal-header .close {
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal .modal-content .modal-header .close:hover {
    color: #000;
}

.modal .modal-content .modal-body {
    padding: 20px;
}

.form-group {
    position: relative;
}

.form-control {
    background-color: var(--background-color) !important;
    color: var(--text-color-dark) !important;
}

input.form-control[type="number"] {
    font-family: var(--digits-font-family);
    width: auto;
    border: inherit;
    -webkit-appearance: inherit;
    box-sizing: inherit;
    font-weight: inherit;
}

.modal .modal-content .modal-body form {
    margin-bottom: 0;
}

.return-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
}

.return-modal .modal-content {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin: 5% auto;
    border-radius: 8px;
    position: relative;
}

.return-modal .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.image-preview-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 7px;
    min-height: 60px;
    position: relative;
}

.image-preview-wrapper.mt-5 {
    margin-top: 5px;
}

.image-preview-wrapper:before {
    content: '+';
    color: #fff;
    font-size: 60px;
    line-height: 40px;
    width: 40px;
    text-align: center;
    position: absolute;
    top: calc(50% - 20px);
    right: calc(50% - 20px);
}

.image-preview-wrapper .image-item {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 100px;
    height: 100px;
}

.image-preview-wrapper img {
    max-width: 100px;
    border-radius: 4px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    cursor: pointer;
}

.image-preview-wrapper .remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
    user-select: none;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
}

.btn-wrapper:not(:last-child) {
    margin-bottom: 20px;
}

.btn-submit {
    background-color: var(--primary-color);
    border-radius: 5px;
    color: var(--text-color);
    padding: 0 15px;
    line-height: 35px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.5s;
}

.btn-submit:hover {
    background-color: var(--accent-color);
    color: var(--accent-color);
}

.alert {
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    color: var(--accent-color);
    /*border-color: #7DCD73;*/
}

.alert-error {
    color: var(--secondary-color);
    /*border-color: #f55a82;*/
}

.request-status {
    display: flex;
    gap: 5px;
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.request-status #view_status {
    font-weight: bold;
    color: var(--accent-color);
}

.request-info {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.ttl {
    font-size: 14px;
    font-weight: 400;
    width: 70px;
}

.value {
    color: #000;
}

.value#view_qty {
    font-family: var(--digits-font-family);
}

@media (max-width: 425px) {
    .btn.btn-return-request, .btn.btn-view-return-request {
        padding: 0 10px;
        font-size: 13px;
        max-width: 100px;
    }
}

.woocommerce-account .content-area .woocommerce .return-requests-table .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-status {
    font-size: 13px;
    white-space: nowrap;
}

.woocommerce-account .content-area .woocommerce .return-requests-table .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-name {
    font-size: 13px;
    max-width: 40%;
}

.return-order-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin: -30px -30px 0;
    width: calc(100% + 60px);
    border-bottom: 2px solid #fff;
    padding: 20px;
}

.return-order-header .return-order-heading {
    font-size: 18px;
    font-weight: 400;
}

.return-order-header .return-order-heading strong {
    font-family: var(--digits-font-family) !important;
    margin-right: 5px;
}

.return-order-header .button {
    font-family: var(--text-font-family);
    background-color: var(--primary-color);
    border-radius: 5px;
    color: var(--text-color);
    padding: 0 15px;
    line-height: 35px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.5s;
}

.return-order-content {
    margin: 0 -30px;
    display: flex;
    flex-wrap: wrap;
}

.return-order-content .product-name {
    flex: 0 0 50%;
    padding: 20px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.return-order-content .product-quantity {
    flex: 0 0 20%;
    padding: 20px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    text-align: center;
}

.return-order-content .return-status {
    flex: 0 0 30%;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #fff;
}

.return-order-content .return-desc {
    flex: 0 0 100%;
    padding: 20px;
    border-bottom: 1px solid #fff;
}

.return-order-content .woocommerce-product-gallery {
    flex: 0 0 100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.return-order-content .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    flex: 0 0 20%;
    max-width: calc(20% - 8px);
    aspect-ratio: 1/1;
    border-radius: 5px;
    overflow: hidden;
}

.return-order-content .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
    max-width: inherit;
    max-height: inherit;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.return-order-content .reject-reason {
    flex: 0 0 100%;
    padding: 20px;
    border-bottom: 1px solid #fff;
}

.return-order-content .reject-detail {
    flex: 0 0 100%;
    padding: 20px;
    border-bottom: 1px solid #fff;
}

@media (max-width: 767.98px) {
    .return-order-header {
        justify-content: space-evenly;
    }

    .return-order-content .product-name {
        padding-top: 10px;
        padding-bottom: 10px;
        flex-basis: 100%;
        border-left: 0;
        text-align: center;
    }

    .return-order-content .product-quantity {
        padding-top: 10px;
        padding-bottom: 10px;
        flex-basis: 40%;
    }

    .return-order-content .return-status {
        padding-top: 10px;
        padding-bottom: 10px;
        flex-basis: 60%;
    }

    .return-order-content .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
        flex-basis: 25%;
        max-width: calc(25% - 7px);
    }
}