* {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: #f5f8f6;
    color: #213128;
    font-family: Arial, Helvetica, sans-serif;
}


.orders-header-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}


.orders-header-navigation a {
    color: #006633;
    font-weight: 700;
}


.orders-header-navigation button {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #a32424;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


.orders-page {
    padding: 55px 0;
}


.orders-page-heading {
    margin-bottom: 27px;
}


.orders-page-heading > p {
    margin: 0 0 7px;
    color: #006633;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}


.orders-page-heading h1 {
    margin: 0 0 9px;
    color: #173b25;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}


.orders-page-heading > span {
    color: #66736b;
}


.order-filter-card {
    display: flex;
    overflow-x: auto;
    margin-bottom: 24px;
    padding: 10px;
    gap: 8px;
    border: 1px solid #dce5df;
    border-radius: 12px;
    background: #ffffff;
}


.order-filter-button {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #56635b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


.order-filter-button.active {
    background: #006633;
    color: #ffffff;
}


.customer-order-list {
    display: grid;
    gap: 22px;
}


.customer-order-card {
    overflow: hidden;
    border: 1px solid #dce5df;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 70, 35, 0.07);
}


.customer-order-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 21px;
    border-bottom: 1px solid #e0e7e2;
    background: #fafcfb;
}


.customer-order-header span,
.customer-order-header small {
    color: #69756d;
    font-size: 0.82rem;
}


.customer-order-header h2 {
    margin: 5px 0;
    color: #173b25;
    font-size: 1.2rem;
}


.order-status-column {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}


.payment-status,
.customer-order-status {
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 800;
}


.payment-status.pending {
    background: #fff2bd;
    color: #715600;
}


.payment-status.paid {
    background: #dff4e5;
    color: #12632b;
}


.customer-order-status {
    background: #e9eef9;
    color: #294f8b;
}


.customer-order-body {
    padding: 21px;
}


.customer-order-supplier span,
.customer-order-supplier strong {
    display: block;
}


.customer-order-supplier span {
    margin-bottom: 5px;
    color: #69756d;
    font-size: 0.82rem;
}


.customer-order-items {
    margin: 18px 0;
    padding: 13px 0;
    border-top: 1px solid #e0e7e2;
    border-bottom: 1px solid #e0e7e2;
}


.customer-order-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
}


.order-delivery-information {
    color: #5f6d64;
}


.order-delivery-information p {
    margin: 7px 0;
}


.customer-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 21px;
    background: #eef6f0;
}


.customer-order-footer > div span,
.customer-order-footer > div strong {
    display: block;
}


.customer-order-footer > div span {
    margin-bottom: 4px;
    color: #657269;
    font-size: 0.8rem;
}


.customer-order-footer > div strong {
    color: #006633;
    font-size: 1.3rem;
}


.customer-order-footer button {
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: #8b9890;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
}


.order-tracking-message {
    max-width: 350px;
    color: #31543c;
    text-align: right;
}


.empty-orders-message {
    padding: 55px 20px;
    border: 1px dashed #bac8be;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}


.empty-orders-message span {
    font-size: 4rem;
}


.empty-orders-message a {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 18px;
    border-radius: 8px;
    background: #006633;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}


.orders-message {
    display: none;
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 9px;
}


.orders-message.error {
    display: block;
    background: #fff0f0;
    color: #a02020;
}


@media (max-width: 650px) {

    .orders-header-navigation a:first-child {
        display: none;
    }


    .customer-order-header,
    .customer-order-footer {
        align-items: flex-start;
        flex-direction: column;
    }


    .order-status-column {
        align-items: flex-start;
    }


    .order-tracking-message {
        text-align: left;
    }

}
/* =====================================================
   CONNECME NOTIFICATION CONTROLS
===================================================== */

#connecmeNotificationCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #d7e8dd;
    border-left: 5px solid #006633;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f2faf5 100%
        );
    box-shadow:
        0 8px 24px
        rgba(0, 70, 35, 0.08);
}


#connecmeNotificationCard > div {
    flex: 1;
}


#connecmeNotificationCard h2 {
    margin: 0 0 8px;
    color: #006633;
    font-size: 1.3rem;
}


#connecmeNotificationCard p {
    margin: 0;
    color: #526158;
    line-height: 1.6;
}


#enableConnecMeNotifications,
#enableNearbyPromotions {
    min-height: 46px;
    padding: 11px 18px;
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


#enableConnecMeNotifications {
    color: #ffffff;
    background: #006633;
}


#enableNearbyPromotions {
    color: #3d3100;
    background: #ffd54f;
}


#enableConnecMeNotifications:hover,
#enableNearbyPromotions:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px
        rgba(0, 70, 35, 0.15);
}


#enableConnecMeNotifications:disabled,
#enableNearbyPromotions:disabled {
    color: #ffffff;
    background: #789185;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =====================================================
   MOBILE NOTIFICATION CONTROLS
===================================================== */

@media (max-width: 760px) {

    #connecmeNotificationCard {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin: 18px 0;
        padding: 20px 16px;
        text-align: left;
    }


    #connecmeNotificationCard h2 {
        font-size: 1.15rem;
    }


    #enableConnecMeNotifications,
    #enableNearbyPromotions {
        width: 100%;
        min-height: 48px;
    }

}