/* Redesign: customer account, order and content pages */
.ls-customer-page {
    color: var(--bs-primary);
    background: #f7f8fa;
}

.ls-customer-main {
    width: 100%;
    flex: 1 0 auto;
    padding: 0 0 72px;
}

.ls-customer-hero {
    padding: 34px clamp(20px, 4vw, 48px) 30px;
    color: #fff;
    background: linear-gradient(112deg, var(--bs-primary), var(--bs-dark));
}

.ls-customer-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--bs-secondary);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ls-customer-title {
    margin: 0;
    color: inherit;
    font-family: var(--ls-font-primary);
    font-size: clamp(1.8rem, 3.3vw, 2.8rem);
    font-weight: 400;
    line-height: 1.15;
}

.ls-customer-container {
    width: calc(100% - clamp(40px, 8vw, 96px));
    max-width: 1280px;
    margin: 32px auto 0;
}

.ls-customer-panel {
    padding: clamp(20px, 3vw, 32px);
    background: #fff;
    border: 1px solid rgba(var(--bs-primary-rgb), .1);
    border-radius: 2px;
    box-shadow: 0 10px 28px rgba(var(--bs-primary-rgb), .04);
}

.ls-customer-panel + .ls-customer-panel {
    margin-top: 22px;
}

.ls-customer-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), .1);
}

.ls-customer-panel-title {
    margin: 0;
    color: var(--bs-primary);
    font-family: var(--ls-font-primary);
    font-size: 1.35rem;
    font-weight: 400;
}

.ls-customer-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid rgba(var(--bs-primary-rgb), .13);
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), .05);
}

.ls-customer-table.table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    color: var(--bs-primary);
    border-collapse: separate;
    border-spacing: 0;
    border-color: rgba(var(--bs-primary-rgb), .09);
    font-size: .8rem;
}

.ls-customer-table.table > thead {
    position: relative;
}

.ls-customer-table.table > thead::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: var(--bs-secondary);
}

.ls-customer-table.table > thead > tr > td,
.ls-customer-table.table > thead > tr > th {
    padding: 17px 16px 14px;
    color: rgba(255, 255, 255, .82) !important;
    background: var(--bs-primary) !important;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .09);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.ls-customer-table.table > thead > tr > td:last-child,
.ls-customer-table.table > thead > tr > th:last-child {
    border-right: 0;
    text-align: center;
}

.ls-customer-table.table > tbody > tr > td {
    height: 66px;
    padding: 14px 16px;
    color: rgba(var(--bs-primary-rgb), .78);
    background: #fff;
    border: 0;
    border-right: 1px solid rgba(var(--bs-primary-rgb), .055);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), .09);
    text-align: left;
    vertical-align: middle;
}

.ls-customer-table.table > tbody > tr:nth-child(even) > td {
    background: #f8f9fa;
}

.ls-customer-table.table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.ls-customer-table.table > tbody > tr > td:last-child {
    border-right: 0;
    text-align: center;
}

.ls-customer-table.table-hover > tbody > tr:hover > * {
    color: var(--bs-primary);
    background: rgba(var(--bs-secondary-rgb), .11);
}

.ls-customer-table a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: #fff;
    border: 1px solid rgba(var(--bs-primary-rgb), .2);
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(var(--bs-primary-rgb), .06);
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.ls-customer-table a:hover {
    color: var(--bs-primary);
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
    transform: translateY(-1px);
}

.ls-customer-table td:nth-child(2),
.ls-customer-table td:nth-child(3) {
    font-weight: 600;
}

.ls-customer-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.ls-customer-status--success {
    color: #27764d;
    background: #eff8f3;
    border-color: #cfe9da;
}

.ls-customer-status--error {
    color: #a23d45;
    background: #fff0f1;
    border-color: #f0cdd0;
}

.ls-customer-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #fff;
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    border-radius: 2px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.ls-customer-button:hover,
.ls-customer-button:focus {
    color: var(--bs-primary);
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.ls-customer-button--outline {
    color: var(--bs-primary);
    background: transparent;
    border-color: rgba(var(--bs-primary-rgb), .25);
}

.ls-order-lines {
    display: flex;
    flex-direction: column;
}

.ls-order-line {
    display: grid;
    min-height: 112px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), .09);
    grid-template-columns: 88px minmax(0, 1fr) auto auto;
    gap: 20px;
}

.ls-order-line:last-child {
    border-bottom: 0;
}

.ls-order-line-image {
    display: flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: #f5f6f8;
}

.ls-order-line-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ls-order-line-name {
    margin: 0 0 5px;
    color: var(--bs-primary);
    font-size: .86rem;
    font-weight: 700;
}

.ls-order-line-code,
.ls-order-line-quantity-label {
    color: rgba(var(--bs-primary-rgb), .5);
    font-size: .7rem;
}

.ls-order-line-price {
    min-width: 110px;
    font-size: .9rem;
    font-weight: 700;
    text-align: right;
}

.ls-order-line-quantity {
    min-width: 48px;
    color: var(--bs-primary);
    font-size: .86rem;
    font-weight: 700;
    text-align: center;
}

.ls-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    gap: 22px;
}

.ls-account-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ls-customer-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--bs-primary);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ls-customer-field .form-control {
    min-height: 46px;
    color: var(--bs-primary);
    background: #f7f8fa;
    border-color: rgba(var(--bs-primary-rgb), .16);
    border-radius: 2px;
    box-shadow: none;
}

.ls-customer-field .form-control:focus {
    background: #fff;
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 3px rgba(var(--bs-secondary-rgb), .1);
}

.ls-customer-note {
    color: rgba(var(--bs-primary-rgb), .58);
    font-size: .76rem;
    line-height: 1.7;
}

.ls-content-shell {
    width: calc(100% - clamp(40px, 8vw, 96px));
    max-width: 1060px;
    margin: 34px auto 0;
    padding: clamp(24px, 4vw, 48px);
    color: rgba(var(--bs-primary-rgb), .8);
    background: #fff;
    border: 1px solid rgba(var(--bs-primary-rgb), .1);
    font-size: .88rem;
    line-height: 1.8;
}

.ls-content-shell h1,
.ls-content-shell h2,
.ls-content-shell h3 {
    color: var(--bs-primary);
    font-family: var(--ls-font-primary);
    font-weight: 400;
}

.ls-content-shell a {
    color: var(--bs-secondary);
}

.ls-confirmation-head {
    display: grid;
    padding: clamp(28px, 5vw, 54px);
    color: #fff;
    background: linear-gradient(120deg, var(--bs-primary), var(--bs-dark));
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
}

.ls-confirmation-icon {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: var(--bs-secondary);
    border-radius: 50%;
    font-size: 1.35rem;
}

.ls-confirmation-head h1 {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--ls-font-primary);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
}

.ls-confirmation-head p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
}

.ls-confirmation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr);
    gap: 22px;
}

.ls-payment-status {
    padding: 15px 17px;
    background: #f7f8fa;
    border-left: 3px solid var(--bs-secondary);
    font-size: .8rem;
}

.ls-info-list {
    display: grid;
    margin: 0;
    grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
    gap: 10px 18px;
    font-size: .78rem;
}

.ls-info-list dt {
    color: rgba(var(--bs-primary-rgb), .52);
    font-weight: 400;
}

.ls-info-list dd {
    margin: 0;
    color: var(--bs-primary);
    font-weight: 600;
}

.ls-redirect-card {
    max-width: 680px;
    margin: 58px auto;
    padding: clamp(30px, 6vw, 62px);
    background: #fff;
    border: 1px solid rgba(var(--bs-primary-rgb), .1);
    text-align: center;
}

.ls-redirect-countdown {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin: 26px auto;
    color: var(--bs-primary);
    background: rgba(var(--bs-secondary-rgb), .18);
    border: 2px solid var(--bs-secondary);
    border-radius: 50%;
    font-family: var(--ls-font-primary);
    font-size: 1.8rem;
}

.fav-state-1,
.fav-state-2,
.fav-state-3,
.fav-state-4,
.fav-state-5 {
    font-weight: 600;
}

.fav-state-0 { color: #596776; background: #f1f3f5; border-color: #dde2e6; }
.fav-state-1 { color: #27764d; background: #eff8f3; border-color: #cfe9da; }
.fav-state-2 { color: #27658a; background: #eef6fb; border-color: #cce1ee; }
.fav-state-3 { color: #8a6a13; background: #fff9e8; border-color: #ecdfb4; }
.fav-state-4 { color: #a85e22; background: #fff4eb; border-color: #efd5bf; }
.fav-state-5 { color: #a23d45; background: #fff0f1; border-color: #f0cdd0; }

@media (max-width: 991.98px) {
    .ls-account-grid,
    .ls-confirmation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ls-order-line {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .ls-order-line-image {
        width: 72px;
        height: 72px;
    }

    .ls-order-line-price {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .ls-order-line-quantity {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .ls-confirmation-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .ls-customer-container,
    .ls-content-shell {
        width: calc(100% - 32px);
    }

    .ls-customer-panel {
        padding: 18px;
    }

    .ls-customer-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ls-info-list {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .ls-info-list dd {
        margin-bottom: 10px;
    }
}
