.nps-view-order {

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

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        margin: 0;
        padding: 0;
    }

    .align-right {
        text-align: right;
    }

    .status-icon {
        width: 14px;
        height: 14px;
        overflow: visible;
    }

    .order-container {
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        padding: 20px;
        gap: 20px;
    }

    .order-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .order-number-section {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .order-number {
        line-height: 1;
        font-size: 16px;
    }

    .order-number-vertical-separator {
        border-left: 1px solid #e0e0e0;
        height: auto;
        align-self: stretch;
    }

    .order-placed-container {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .order-placed-container {
        font-size: 13px;
    }

    .order-placed {
        text-transform: capitalize;
        font-weight: 500;
    }

    .button {
        padding: 8px 12px;
        min-height: initial;
        font-size: 10px;
        border-radius: var(--btn-accented-brd-radius);
        color: var(--btn-accented-color);
        box-shadow: var(--btn-accented-box-shadow);
        text-transform: var(--btn-accented-transform, var(--btn-transform, uppercase));
        font-weight: var(--btn-accented-font-weight, var(--btn-font-weight, 600));
        font-family: var(--btn-accented-font-family, var(--btn-font-family, inherit));
        font-style: var(--btn-accented-font-style, var(--btn-font-style, unset));

        &:hover {
            color: var(--btn-accented-color-hover);
            box-shadow: var(--btn-accented-box-shadow-hover);
            background-color: var(--btn-accented-bgcolor-hover);
        }
    }

    .order-parent-items-container {
        display: flex;
        flex-direction: column;
        border: 1px solid #e0e0e0;
    }

    .order-parent-items-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 14px;
        background-color: #f9f9f9;
    }

    .order-parent-items-title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
    }

    .parent-items-table-container {
        display: flex;
        flex-direction: column;
        padding: 8px 14px;
    }

    .order-dispatch-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .order-dispatch-heading {
        text-align: center;
        line-height: 1;
    }

    .order-dispatch-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .package-container {
        display: flex;
        flex-direction: column;
        border: 1px solid #e0e0e0;
        border-bottom: 0;
    }

    .package-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 14px;
        background-color: #f9f9f9;
    }

    .package-tracking-id-section {
        display: flex;
        gap: 6px;
        align-items: center;

        svg {
            width: 14px;
            height: 14px;
        }
    }

    .package-tracking-id-container {
        display: flex;
        gap: 6px;
        align-items: center;
        font-size: 12px;
        line-height: 1;
    }

    .package-tracking-id {
        color: #242424;
        font-weight: 500;
    }

    .package-header-right {
        display: flex;
        gap: 26px;
        align-items: center;
    }

    .order-status-container,
    .otp-container,
    .package-status-container {
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 12px;
        line-height: 1;
    }

    .otp-container {
        background-color: var(--wd-alternative-color);
        border: 1px solid #e0e0e0;
        border-radius: 3px;
        height: 22px;
        margin-top: -8px;
        margin-bottom: -8px;
        padding: 0 8px;
        color: #fff;
    }

    .order-status,
    .otp-value,
    .package-status {
        font-weight: 500;
        color: #242424;
        line-height: 1;
    }

    .otp-value {
        color: #fff;
    }

    .order-status,
    .package-status {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .horizontal-separator {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        margin: 0;
        opacity: 1;
    }

    .package-content {
        display: flex;
        flex-direction: column;
        padding: 8px 14px;
    }

    .parent-items-table, .package-items-table {
        margin: 0;

        td {
            padding: 4px 0px;
            border: none;
        }
    }

    .product-image-container {
        width: 50px;
    }

    .product-icon {
        text-align: center;

        svg {
            width: 15px;
            height: 15px;
        }
    }

    .product-thumbnail {
        width: 38px;
        height: 38px;
    }

    .product-details-container {
        display: flex;
        flex-grow: 1;
    }

    .product-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .product-name-container {
        display: flex;
        gap: 5px;
        align-items: center;
    }

    .product-name {
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
    }

    .long-dash {
        width: 12px;
        border-bottom: 1px solid #767676;
        margin: 0;
        opacity: 1;
    }

    .product-uom {
        font-size: 14px;
        line-height: 1;
    }

    .package-supplier {
        display: flex;
        gap: 6px;
        align-items: center;
        font-size: 12px;
        line-height: 1;
    }

    .supplier-name {
        color: var(--wd-link-color);

        &:hover {
            color: var(--wd-link-color-hover);
        }
    }

    .parent-product-note-container {
        width: 100px;
        font-size: 12px;
        white-space: nowrap;
        text-align: center;
    }

    .product-price,
    .product-subtotal {
        align-items: center;
        font-size: 12px;
        white-space: nowrap;
        width: 100px;
    }

    .product-price-value,
    .product-subtotal-value {
        padding-left: 10px;
    }

    .product-subtotal {
        text-align: end;
    }

    .order-footer {
        display: flex;
        justify-content: space-between;
    }

    .shipping-address-section,
    .order-total-summary-section {
        width: 49%;
    }

    .shipping-address-container,
    .order-total-summary-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #f9f9f9;
        padding: 15px;
        border: 1px solid #e0e0e0;
    }

    .shipping-address-heading,
    .order-total-summary-heading {
        font-size: 16px;
        line-height: 1;
    }

    .shipping-details,
    .order-total-summary-table {
        font-size: 13px;
        line-height: 1.6;
    }

    .shipping-name {
        text-transform: capitalize;
    }

    .order-total-summary-container {
        display: flex;
        flex-direction: column;
    }

    .order-total-summary-table {
        margin-bottom: 0px;

        td {
            padding: 0;
            border: none;
        }
    }

    .order-total {
        font-weight: 500;
        color: #505050;
        font-size: 14px;
        line-height: 1;
    }
}

@media screen and (max-width: 1024px) {
    .nps-view-order {
        .order-heading {
            font-size: 20px;
        }

        .order-number,
        .shipping-address-heading,
        .order-total-summary-heading {
            font-size: 15px;
        }

        .order-placed-container {
            font-size: 12px;
        }

        .button {
            padding: 8px 14px;
            font-size: 10px;
        }

        .order-container {
            padding: 15px 15px 13px 15px;
            gap: 10px;
        }

        .order-dispatch-heading {
            font-size: 16px;
            margin-top: 6px;
        }

        .package-tracking-id-section {
            svg {
                width: 13px;
            }
        }

        .package-tracking-id-container {
            font-size: 12px;
        }

        .package-header-right {
            gap: 16px;
        }

        .order-status-container,
        .otp-container,
        .package-status-container {
            font-size: 12px;
        }

        .package-supplier {
            font-size: 12px;
        }

        .parent-product-note-container {
            width: 80px;
            font-size: 11px;
        }

        .product-price,
        .product-subtotal {
            font-size: 11px;
            width: 70px;
        }

        .shipping-details,
        .order-total-summary-table {
            font-size: 12px;
            line-height: 1.5;
        }

        .order-total {
            font-size: 13px;
            line-height: 1;
        }
    }
}

@media screen and (max-width: 768.98px) {
    .nps-view-order {
        .order-heading {
            font-size: 18px;
            text-align: center;
        }

        .order-number,
        .shipping-address-heading,
        .order-total-summary-heading {
            font-size: 14px;
        }

        .order-container {
            padding: 12px 12px 8px 12px;
            gap: 8px;
        }

        .order-number-section {
            flex-direction: column;
            gap: 2px;
            align-items: start;
        }

        .order-placed-container {
            gap: 4px;
            font-size: 11px;
        }

        .order-placed {
            font-size: 11px;
        }

        .order-action-buttons {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .button {
            padding: 7px 10px;
            font-size: 8px;
        }

        .order-dispatch-heading {
            font-size: 14px;
        }

        .order-parent-items-header, .package-header {
            flex-wrap: wrap;
            gap: 2px;
            padding: 5px 8px;
        }

        .package-tracking-id-section {
            svg {
                width: 12px;
            }
        }

        .package-tracking-id-container {
            font-size: 11px;
        }

        .order-status-container,
        .otp-container,
        .package-status-container {
            font-size: 11px;
        }

        .otp-container {
            height: 18px;
            margin-top: -5px;
            margin-bottom: -5px;
        }

        .package-content {
            padding: 10px 8px;
        }

        .product-image-container {
            display: none;
        }

        .product-image,
        .product-icon {
            display: none;
        }

        .product-details {
            gap: 5px;
        }

        .product-name-container {
            gap: 4px;
        }

        .product-name {
            font-size: 12px;
        }

        .long-dash {
            width: 6px;
        }

        .product-uom {
            font-size: 12px;
        }

        .package-supplier {
            font-size: 11px;
        }

        .parent-product-note-container {
            display: none;
        }

        .product-price,
        .product-subtotal {
            min-width: initial;
            font-size: 10px;
            width: 60px;
        }

        .product-subtotal-value strong {
            display: none;
        }

        .shipping-address-container,
        .order-total-summary-container {
            gap: 8px;
            padding: 10px;
        }

        .shipping-details,
        .order-total-summary-table {
            font-size: 11px;
            line-height: 1.4;
        }

        .order-total {
            font-size: 12px;
            line-height: 1;
        }
    }
}

@media screen and ( max-width: 565px ) {
    .nps-view-order {
        .package-header {
            gap: 6px;
        }

        .package-header-right {
            width: 100%;
            justify-content: space-between;
        }

        .otp-container {
            margin-top: 0px;
            margin-bottom: 0px;
        }

        .order-footer {
            flex-direction: column;
            gap: 8px;
        }

        .shipping-address-section,
        .order-total-summary-section {
            width: 100%;
        }
    }
}