/* =========================================================
   WATERALL — CUSTOMER ORDERS PAGE
========================================================= */

.customer-orders-page {
    min-height: 70vh;
    padding: 56px 20px 80px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(20, 168, 215, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8fcff 0%,
            #eaf6fd 100%
        );
}


/* =========================================================
   HERO
========================================================= */

.orders-hero {
    width: 100%;
    max-width: 1280px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin: 0 auto 28px;
    padding: 34px 38px;

    background: #ffffff;

    border: 1px solid #dbe8f1;
    border-radius: 22px;

    box-shadow:
        0 18px 50px rgba(7, 47, 78, 0.08);
}

.orders-eyebrow {
    display: block;

    margin-bottom: 9px;

    color: #0a92c3;

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.orders-hero h1 {
    margin: 0 0 8px;

    color: #071b34;

    font-family: "Inter", sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}

.orders-hero p {
    max-width: 720px;
    margin: 0;

    color: #6a7d8e;

    font-size: 16px;
    line-height: 1.65;
}

.orders-shop-button,
.orders-primary-button {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 12px 21px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #082e52,
        #078fbe
    );

    border: none;
    border-radius: 10px;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(6, 91, 134, 0.19);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.orders-shop-button:hover,
.orders-primary-button:hover {
    color: #ffffff;
    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(6, 91, 134, 0.25);
}


/* =========================================================
   ORDER LIST
========================================================= */

.orders-list {
    width: 100%;
    max-width: 1280px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    margin: 0 auto;
}

.order-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dbe8f1;
    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(7, 47, 78, 0.07);
}


/* =========================================================
   CARD HEADER
========================================================= */

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 22px 27px;

    background: #fbfdff;

    border-bottom: 1px solid #e1ebf2;
}

.order-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-number {
    color: #0b213b;

    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 800;
}

.order-date {
    color: #728497;

    font-size: 13px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 92px;
    padding: 7px 13px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.order-status.is-pending {
    color: #956100;
    background: #fff2c9;
}

.order-status.is-progress {
    color: #08678e;
    background: #ddf4fc;
}

.order-status.is-success {
    color: #08724f;
    background: #dff7ed;
}

.order-status.is-danger {
    color: #a4253a;
    background: #ffe4e9;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.order-card-content {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: 28px;

    padding: 27px;
}

.order-items-section h2 {
    margin: 0 0 17px;

    color: #0b213b;

    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   ORDER ITEMS
========================================================= */

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.order-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 17px;

    background: #f9fcfe;

    border: 1px solid #dce8f0;
    border-radius: 13px;
}

.order-item-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #098dbd;
    background: #e5f6fc;

    border-radius: 12px;

    font-size: 17px;
}

.order-item-icon.is-kit {
    color: #a36b00;
    background: #fff4d8;
}

.order-item-information {
    min-width: 0;
    flex: 1;
}

.order-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-item-heading > div {
    min-width: 0;
}

.order-item-heading strong {
    display: block;

    color: #122b43;

    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.order-item-total {
    flex-shrink: 0;

    color: #071b34;

    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.order-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;

    margin-top: 7px;

    color: #6f8293;

    font-size: 12px;
}

.custom-kit-badge {
    display: inline-flex;

    margin-top: 6px;
    padding: 4px 8px;

    color: #8b620d;
    background: #fff1c8;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.custom-kit-items {
    margin-top: 13px;
    padding-top: 12px;

    border-top: 1px solid #dce7ef;
}

.custom-kit-items-title {
    display: block;

    margin-bottom: 8px;

    color: #526b7f;

    font-size: 12px;
    font-weight: 800;
}

.custom-kit-items ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.custom-kit-items li {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    color: #526b7f;

    font-size: 12px;
    line-height: 1.4;
}

.custom-kit-items li i {
    margin-top: 2px;

    color: #0a99c8;
    font-size: 10px;
}

.order-item-description {
    margin: 9px 0 0;

    color: #667b8e;

    font-size: 12px;
    line-height: 1.55;
}

.order-items-unavailable {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 16px;

    color: #6f8293;
    background: #f8fbfd;

    border: 1px dashed #cadbe6;
    border-radius: 11px;

    font-size: 13px;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.order-summary-section {
    align-self: start;

    padding: 20px;

    background: #f7fbfe;

    border: 1px solid #d9e7ef;
    border-radius: 15px;
}

.order-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    padding: 12px 0;

    border-bottom: 1px solid #dce8ef;
}

.order-summary-row:first-child {
    padding-top: 0;
}

.order-summary-row span,
.order-summary-address span {
    color: #708396;

    font-size: 12px;
    font-weight: 700;
}

.order-summary-row strong {
    color: #1d394f;

    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.order-summary-address {
    padding: 14px 0;

    border-bottom: 1px solid #dce8ef;
}

.order-summary-address p {
    margin: 6px 0 0;

    color: #304b60;

    font-size: 12px;
    line-height: 1.55;
}

.order-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 18px 0;
}

.order-summary-total span {
    color: #304b60;

    font-size: 14px;
    font-weight: 800;
}

.order-summary-total strong {
    color: #071b34;

    font-family: "Inter", sans-serif;
    font-size: 25px;
    font-weight: 800;
}

.order-actions {
    display: flex;
}

.order-invoice-button {
    width: 100%;
    min-height: 45px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 10px 16px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #08355c,
        #078fbe
    );

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.order-invoice-button:hover {
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 10px 20px rgba(7, 91, 134, 0.2);
}

.order-invoice-unavailable {
    width: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px;

    color: #8292a0;
    background: #edf3f6;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.orders-empty-state {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
    padding: 65px 30px;

    text-align: center;
    background: #ffffff;

    border: 1px solid #dbe8f1;
    border-radius: 22px;

    box-shadow:
        0 18px 50px rgba(7, 47, 78, 0.08);
}

.orders-empty-icon {
    width: 74px;
    height: 74px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    color: #0b94c4;
    background: #e7f7fc;

    border-radius: 50%;

    font-size: 27px;
}

.orders-empty-state h2 {
    margin: 0 0 10px;

    color: #0b213b;

    font-size: 26px;
    font-weight: 800;
}

.orders-empty-state p {
    max-width: 520px;

    margin: 0 auto 22px;

    color: #708396;

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .orders-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-card-content {
        grid-template-columns: 1fr;
    }

    .custom-kit-items ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .customer-orders-page {
        padding: 24px 12px 55px;
    }

    .orders-hero {
        padding: 24px 20px;

        border-radius: 17px;
    }

    .orders-hero h1 {
        font-size: 34px;
    }

    .orders-shop-button {
        width: 100%;
    }

    .order-card {
        border-radius: 16px;
    }

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

        padding: 19px 17px;
    }

    .order-card-content {
        padding: 17px;
    }

    .order-item {
        padding: 14px;
    }

    .order-item-heading {
        flex-direction: column;
        gap: 7px;
    }

    .order-item-total {
        font-size: 15px;
    }

    .order-summary-section {
        padding: 17px;
    }
}


/* =========================================================
   PRODUCT IMAGE AND REORDER ACTIONS
========================================================= */

.order-item-visual {
    flex: 0 0 76px;

    width: 76px;
    min-width: 76px;
}

.order-product-image-link {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #d7e5ee;
    border-radius: 12px;

    text-decoration: none;
}

.order-product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    padding: 5px;

    transition: transform 0.22s ease;
}

.order-product-image-link:hover
.order-product-image {
    transform: scale(1.06);
}

.order-item-visual .order-item-icon {
    width: 76px;
    height: 76px;

    font-size: 21px;
}

.order-item-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid #dce7ef;
}

.order-view-product-link,
.order-buy-again-button {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 13px;

    border-radius: 8px;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.order-view-product-link {
    color: #075f87;
    background: #ffffff;

    border: 1px solid #9ecfe1;

    text-decoration: none;
}

.order-view-product-link:hover {
    color: #ffffff;
    background: #087eaa;
    border-color: #087eaa;

    transform: translateY(-1px);
}

.order-buy-again-form {
    margin: 0;
}

.order-buy-again-button {
    color: #ffffff;
    background: #073d64;

    border: 1px solid #073d64;
}

.order-buy-again-button:hover {
    background: #078fbe;
    border-color: #078fbe;

    transform: translateY(-1px);
}

.order-product-unavailable {
    display: inline-flex;
    align-items: center;

    min-height: 38px;
    padding: 8px 12px;

    color: #83919d;
    background: #eef3f6;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 600px) {

    .order-item-visual {
        flex-basis: 62px;

        width: 62px;
        min-width: 62px;
    }

    .order-product-image-link,
    .order-item-visual .order-item-icon {
        width: 62px;
        height: 62px;
    }

    .order-item {
        gap: 11px;
    }

    .order-item-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .order-view-product-link,
    .order-buy-again-form,
    .order-buy-again-button {
        width: 100%;
    }
}