.nps-view-subscription {

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

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

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

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

    .order-header,
    .additional-details-heading-container {
        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);
        }
    }

    .button.view-dispatches-button {
        background-color: #f0f0f0;

        &: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;
        padding: 12px 14px;
        gap: 12px;
    }

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

    .order-status {
        font-weight: 500;
        color: #242424;
        line-height: 1;
        display: flex;
        gap: 4px;
        align-items: center;
    }

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

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

    .product-icon {
        text-align: center;

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

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

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

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

    .supplier-name {
        font-size: 12px;
        line-height: 1;
        color: var(--wd-link-color);

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

    .quantity-and-rate-container {
        display: flex;
        flex-grow: 1;
        gap: 10px;
        align-items: center;
        width: 40%;
        justify-content: space-between;
    }

    .product-quantity,
    .product-price {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .subscription-details-section {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        background-color: #f9f9f9;
        padding: 15px;
        border: 1px solid #e0e0e0;
    }

    .additional-details-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .additional-details-table {
        width: 100%;
        margin-bottom: 0px;
        font-size: 13px;
        line-height: 1.6;
        height: fit-content;
        
        td {
            padding: 0;
            border: none;
        }

        .label {
            width: 160px;
        }
    }

    .vertical-line {
		border: 1px solid #cccccc91;
		border-right: 0px;
		border-bottom: 0px;
		width: 1px;
		margin-top: 0px;
		margin-bottom: 0px;
		opacity: 1;
	}

    .selected-dates-container {
        min-width: 165px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .label {
        font-weight: 600;
        line-height: 1;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .selected-dates {
        max-height: 108px;
        overflow-y: auto;
        font-size: 13px;
    }

    .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;
    }

    .additional-details-heading,
    .selected-dates-heading,
    .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-subscription {
        .order-heading {
            font-size: 20px;
        }

        .order-number,
        .additional-details-heading,
        .selected-dates-heading,
        .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-status-container {
            font-size: 12px;
        }

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

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

        .product-quantity,
        .product-price {
            font-size: 11px;
        }

        .label {
            font-size: 12px;
        }
        
        .subscription-details-section {
            gap: 15px;
        }

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

        .selected-dates-container {
            min-width: 125px;
        }

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

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

        .order-number,
        .additional-details-heading,
        .selected-dates-heading,
        .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;
            gap: 4px;
        }

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

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

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

        .product-icon {
            display: none;
        }

        .product-details {
            gap: 5px;
        }

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

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

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

        .product-quantity,
        .product-price {
            font-size: 10px;
        }

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

        .label {
            font-size: 11px;
        }

        .additional-details-table,
        .selected-dates,
        .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: 576px ) {
    .nps-view-subscription {
        .order-action-buttons {
            flex-direction: column;
        }

        .parent-items-table-container {
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .product-details {
            align-items: center;        
        }

        .quantity-and-rate-container {
            width: initial;
        }

        .subscription-details-section {
            flex-direction: column;
            gap: 10px;
        }

        .selected-dates-container {
            gap: 6px;
            align-items: center;
        }

        .vertical-line {
            width: 100%;
        }

        .additional-details-table {
            width: initial;

            .label {
                width: 134px;
            }
        }

        .selected-dates {
            width: 72px;
        }
    }
}