/* empty oredr */

.x-allorders {
    width: 160px;
    height: 40px;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: rgba(20, 20, 20, 1);
    background-color: white;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.x-allorders option {
    color: rgba(20, 20, 20, 0.6);
    padding: 8px;
}

.x-allorders option:checked,
.x-allorders option[selected] {
    color: rgba(20, 20, 20, 1) !important;
}

.x-allorders:hover {
    border-color: rgba(20, 20, 20, 0.3);
}

.x-allorders:focus {
    border-color: rgba(20, 20, 20, 0.5);
    box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.1);
}

@media (min-width: 1200px) {
    .x-w0 {
        width: 75% !important;
    }
}

/* my oredr */

.x-order-card {
    background-color: #fff;
    border-radius: 4px;
    padding: 22px;
    margin-bottom: 30px;
    box-shadow: -4px 4px 14px 0px rgba(0, 0, 0, 0.08);
}

.x-order-header {
    font-weight: 600;
    font-size: 1.1rem;
}

.x-order-subtext {
    color: rgba(20, 20, 20, 1);
    font-size: 0.9rem;
}

.x-status-icon {
    font-size: 19px;
}

.x-product-item {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}

.x-product-item img {
    width: 13%;
    height: auto;
    object-fit: cover;
    min-width: 60px;
    /* Added to prevent too small on mobile */
}

.x-product-details {
    font-size: 0.95rem;
}

.x-product-details p {
    margin: 0;
}

.x-arrow-icon {
    color: #000;
    font-size: 1rem;
}

.x-bg-circle {
    height: 37px;
    width: 37px;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
}

.fa-clock {
    color: #f4b400;
}

.x-yellow-bg {
    background-color: #f2ebdf;
}

.fa-check {
    color: #34a853;
}

.x-green-bg {
    background-color: #ecf3e5;
}

.fa-xmark {
    color: #ea4335;
}

.x-red-bg {
    background-color: #f3e5e5;
}

/* Add these media queries to your existing CSS */

/* Tablet devices (768px and below) */
@media (max-width: 768px) {
    .x-order-card {
        padding: 15px;
        margin-bottom: 20px;
    }

    .x-order-header {
        font-size: 1rem;
    }

    .x-order-subtext {
        font-size: 0.8rem;
    }

    .x-product-details {
        font-size: 0.85rem;
    }



    .x-product-item {
        gap: 10px;
    }

    .x-product-item img {
        min-width: 75px;
        /* Ensures image doesn't get too small */
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {
    .x-order-card {
        padding: 12px;
    }

    .x-order-header {
        font-size: 0.95rem;
    }

    .x-order-subtext {
        font-size: 0.75rem;
    }

    .x-product-details {
        font-size: 0.8rem;
    }

    .x-product-item {
        gap: 8px;
        align-items: flex-start;
        /* Better for wrapped text */
    }

    .x-bg-circle {
        height: 32px;
        width: 32px;
    }

    .x-status-icon {
        font-size: 16px;
    }
}

/* Very small devices (400px and below) */
@media (max-width: 400px) {
    .x-product-details p {
        line-height: 1.3;
        /* Better text spacing */
    }

    .x-product-item img {
        min-width: 65px;
    }
}


/* Order Pending  */

.x-home-btn-oredr {
    background-color: #f3f9fb;
    cursor: pointer;
}

.x-fs-15 {
    font-size: 15px;
}

.x-order-status {
    font-size: 1.1rem;
    color: #333;
}

.x-order-date {
    font-size: 0.85rem;
}

.x-danger-text {
    color: #ff0000;
}

.x-order-actions .x-danger-text:hover {
    color: #ff0000;
}

.x-load-line {
    height: 5px;
    width: 100%;
    background-color: #ffa500;
    border-radius: 8px;
    transition: width 0.5s ease-in-out;
}

.x-load-line-green {
    height: 5px;
    width: 100%;
    background-color: #0c6c44;
    border-radius: 8px;
    transition: width 0.5s ease-in-out;
}


.x-order-actions .btn {
    font-size: 0.8rem;
    padding: 9px 35px;
    font-size: 15px;
}

.x-order-options {
    font-size: 0.9rem;
}

.x-customer-name {
    font-size: 0.95rem;
}

.x-address-details {
    line-height: 1.4;
}


@media (max-width: 768px) {
    .x-order-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .x-order-actions .btn {
        width: 100%;
    }

    .x-order-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .x-order-status {
        font-size: 1rem;
    }

    .x-order-date {
        font-size: 0.8rem;
    }

    .x-shipping-info {
        padding: 1rem;
    }
}

@media (max-width: 1200px) {
    .x-order-card {
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .x-order-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .x-order-actions .btn {
        margin-bottom: 8px;
    }

    .x-order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .x-order-header .x-order-subtext {
        margin-top: 5px;
    }
}

@media (max-width: 768px) {
    .x-order-actions {
        flex-direction: column;
        width: 100%;
    }

    .x-order-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .x-order-options {
        flex-direction: column;
        gap: 10px;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start;
    }

    .x-order-actions {
        margin-top: 15px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .x-order-status {
        font-size: 1rem;
    }

    .x-order-date {
        font-size: 0.8rem;
    }


    .x-order-header {
        font-size: 0.9rem;
    }

    .x-order-subtext {
        font-size: 0.8rem;
    }

    .x-payment-method span {
        font-size: 0.8rem;
    }

    .x-allorders {
        width: 150px;
    }
}

@media (max-width: 400px) {
    .x-order-card {
        padding: 10px;
    }

    .x-bg-circle {
        width: 30px;
        height: 30px;
    }

    .x-status-icon {
        font-size: 0.8rem;
    }

    .x-order-actions .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .x-data-header-title {
        font-size: 1.1rem;
    }
}


/* cancel order */

.x-product-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #000;
}

.x-product-checkbox:checked {
    background-color: #000;
}

.x-reason-container {
    background-color: white;
    border-radius: 8px;
    /* max-width: 600px; */
}

.x-reason-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.x-reason-option {
    margin-bottom: 12px;
    padding: 8px 0;
}

.x-reason-option:last-child {
    border-bottom: none;
}

.x-reason-label {
    margin-left: 10px;
    cursor: pointer;
    color: rgba(20, 20, 20, 0.6);
}

.form-check-input:checked+.x-reason-label {
    color: #333;
}

.form-check-input {
    border-color: rgba(20, 20, 20, 0.6);
}

.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

.x-others-reason textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    background-color: white;
}

.x-others-textarea-wrapper {
    margin-top: 10px;
}

.x-others-textarea-wrapper textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    background-color: rgba(20, 20, 20, 0.06);
    border: none;
    resize: vertical;
}

#reasonText {
    display: block;
    background-color: rgba(20, 20, 20, 0.06);
    border: none;
}

#others:checked~#reasonText {
    display: block;
}

#others:checked~.x-others-reason::after {
    display: none;
}

@media (max-width: 576px) {

    .x-reason-title {
        font-size: 1.1rem;
    }

    .x-reason-label {
        font-size: 13px;
    }
}

/* return order */

/* order cancel success */

.x-done-btn {
    background-color: #000;
    color: white;
    width: 350px;
    height: 44px;
}

.x-done-btn:hover {
    background-color: #000;
    color: white;
}

/* track order  */

.x-timeline {
    display: flex;
    flex-direction: column;
}

.x-timeline-item {
    display: flex;
    position: relative;
    padding-bottom: 45px;
}

.x-timeline-item:last-child {
    padding-bottom: 0;
}

.x-status {
    position: relative;
    margin-right: 12px;
}

.x-dot {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #727272;
    border: 2px solid white;
}

.x-black .x-dot {
    background: black;
}

.x-line {
    position: absolute;
    left: 16px;
    top: 36px;
    width: 4px;
    height: calc(100% - -11px);
    background: #b9b9b9;
    z-index: 9;
}

.x-gray-bg {
    background-color: #eaeaea;
}

.x-black .x-line {
    background: black;
}

.x-timeline-item:last-child .x-line {
    display: none;
}

.x-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.x-title {
    font-size: 14px;
    margin-bottom: 2px;
}

.x-expected {
    font-size: 14px;
    color: rgba(20, 20, 20, 0.6);
}

.x-date-time {
    text-align: right;
    margin-left: 10px;
}

.x-time {
    font-size: 12px;
    color: rgba(20, 20, 20, 0.6);
}

.x-product-item .d-flex img {
    width: 33%;
    height: auto;
    object-fit: cover;
}

.x-product-details p {
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    .x-product-responsive {
        flex-direction: column;
        gap: 15px;
    }

    .x-product-item .d-flex {
        width: 100%;
    }

    .x-product-item .d-flex img {
        width: 30%;
        min-width: 100px;
    }

    .x-product-details p {
        font-size: 14px;
    }

    .x-product-details .x-gray-text {
        font-size: 13px;
    }

    .x-order-header {
        font-size: 14px;
    }

    .x-order-subtext {
        font-size: 12px;
    }

    .x-order-status {
        font-size: 14px;
    }

    .x-order-date {
        font-size: 12px;
    }

    .x-track-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .x-customer-name {
        font-size: 14px;
    }

    .x-address-details {
        font-size: 12px;
    }

    .x-payment-method span {
        font-size: 13px !important;
    }

    .x-shipping-link {
        font-size: 14px;
    }

    .x-order-card .x-column {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .x-product-item .d-flex img {
        width: 40%;
    }

    .x-product-details p {
        font-size: 13px;
    }

    .x-order-header {
        font-size: 13px;
    }

    .x-order-actions {
        margin-top: 10px;
    }

    .x-order-card {
        padding: 10px;
    }

    .x-expected {
        font-size: 12px;
    }

    .pb-4 {
        padding-bottom: 1rem !important;
    }
}
