.sp-lk-orders-cards-wrap--cards {
    display: grid;
    gap: 16px;
}

.sp-lk-orders-cards {
    display: grid;
    gap: 16px;
}

.sp-lk-order-card {
    display: grid;
    gap: 16px;
}

.sp-lk-order-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sp-lk-order-card__meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.sp-lk-order-card__number {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: #202127;
}

.sp-lk-order-card__date {
    color: #7a7b83;
    font-size: 18px;
    line-height: 25px;
    font-weight: 400;
}

.sp-lk-order-card__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sp-lk-order-card__body {
    display: grid;
    grid-template-columns: minmax(300px, 300px) minmax(0, 1fr) auto;
    grid-template-areas: "products status summary";
    align-items: center;
    column-gap: 16px;
    row-gap: 16px;
}

.sp-lk-order-card__products {
    grid-area: products;
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.sp-lk-order-card__products--mobile {
    display: none;
}

.sp-lk-order-card__product-thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.sp-lk-order-card__product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sp-lk-order-card__product-thumb--more {
    position: relative;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    background: transparent;
    color: #2b2c33;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    z-index: 0;
}

.sp-lk-order-card__product-thumb--more::before {
    content: "";
    position: absolute;
    inset: 12px;
    background: #e6eeff;
    z-index: -1;
}

.sp-lk-order-card__product-fallback {
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    color: #656874;
}

.sp-lk-order-card__status-block {
    grid-area: status;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sp-lk-order-card__status-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sp-lk-order-card__status-title {
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    color: #202127;
}

.sp-lk-order-card__status-subtitle {
    font-size: 12px;
    line-height: 17px;
    font-weight: 400;
    color: #6B6B6B;
}

.sp-lk-order-card__status-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    vertical-align: middle;
}

.sp-lk-order-card__status-rating-star {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: center / 14px 13px no-repeat url("vector/grey_star.svg");
}

.sp-lk-order-card__status-rating-star.is-active {
    background-image: url("vector/gold_star.svg");
}

.sp-lk-order-card__status-visual {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-lk-order-card__status-visual svg,
.sp-lk-order-card__status-visual img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
}

.sp-lk-order-card__status-visual--icon img {
    width: 35px;
    height: 35px;
}

.sp-lk-order-card__status-visual--progress path.is-active {
    fill: var(--e-global-color-primary, #f70780);
}

.sp-lk-order-card__status-visual--progress path.is-inactive {
    fill: #d9dade;
}

.sp-lk-order-card__summary {
    grid-area: summary;
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: max-content;
}

.sp-lk-order-card__summary-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.sp-lk-order-card__total {
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    color: #202127;
}

.sp-lk-order-card__items {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: #6B6B6B;
}

.sp-lk-order-card__badge {
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    padding: 0 4px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-lk-order-card__badge--economy,
.sp-lk-order-card__badge--points {
    background: #d7f4eb;
    color: #00a870;
}

.sp-lk-order-card__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-lk-order-card__buttons--mobile {
    display: none;
}

.sp-lk-order-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #202127;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.sp-lk-order-card__buttons--desktop .sp-lk-order-card__button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 20px;
}

.sp-lk-order-card__button--primary {
    background: var(--e-global-color-primary, #f70780);
    border-color: var(--e-global-color-primary, #f70780);
    color: #fff;
}

.sp-lk-order-card__button--secondary {
    background: #fff;
    border-color: #d4d5db;
    color: #202127;
}

.sp-lk-order-card__button--primary:not(.elementor-button):hover,
.sp-lk-order-card__button--primary:not(.elementor-button):focus,
.sp-lk-order-card__button--primary:not(.elementor-button):focus-visible {
    color: #fff !important;
}

.sp-lk-order-card__button--secondary:not(.elementor-button):hover,
.sp-lk-order-card__button--secondary:not(.elementor-button):focus,
.sp-lk-order-card__button--secondary:not(.elementor-button):focus-visible {
    color: #202127 !important;
}

.sp-lk-order-card__action:not(.elementor-button):hover,
.sp-lk-order-card__action:not(.elementor-button):focus,
.sp-lk-order-card__action:not(.elementor-button):focus-visible {
    color: #2f3038 !important;
}

.sp-lk-order-card__action--primary:not(.elementor-button):hover,
.sp-lk-order-card__action--primary:not(.elementor-button):focus,
.sp-lk-order-card__action--primary:not(.elementor-button):focus-visible {
    color: #fff !important;
}

.sp-lk-order-card__button.is-loading,
.sp-lk-order-card__menu-link.is-loading {
    pointer-events: none;
    opacity: 0.78;
    position: relative;
}

.sp-lk-order-card__button.is-loading::after,
.sp-lk-order-card__menu-link.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: sp-lk-spin 0.75s linear infinite;
    flex: 0 0 auto;
}

.sp-lk-order-card__menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.sp-lk-order-card__menu[open] {
    z-index: 8;
}

.sp-lk-order-card__menu > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.sp-lk-order-card__menu > summary::-webkit-details-marker {
    display: none;
}

.sp-lk-order-card__menu-toggle {
    width: 28px;
    height: 28px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.sp-lk-order-card__menu[open] .sp-lk-order-card__menu-toggle {
    border-color: var(--e-global-color-primary, #f70780);
}

.sp-lk-order-card__menu-toggle span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #202127;
    display: block;
}

.sp-lk-order-card__menu-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    border: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    display: grid;
}

.sp-lk-order-card__menu-link {
    display: block;
    min-height: 36px;
    padding: 7px 16px;
    color: #202127;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    text-decoration: none !important;
}

.sp-lk-order-card__menu-link:hover {
    background: #f7f7f9;
}

@keyframes sp-lk-spin {
    to {
        transform: rotate(360deg);
    }
}

.sp-lk-order-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7d8df;
    border-radius: 9px;
    padding: 8px 12px;
    text-decoration: none !important;
    color: #2f3038;
    font-size: 14px;
    line-height: 1.2;
}

.sp-lk-order-card__action--primary {
    background: var(--e-global-color-primary, #f70780);
    border-color: var(--e-global-color-primary, #f70780);
    color: #fff;
}

.sp-lk-order-card__action--ghost {
    border-style: dashed;
}

@media (max-width: 980px) {
    .sp-lk-order-card__body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "products"
            "status"
            "summary"
            "buttons";
        row-gap: 16px;
    }

    .sp-lk-order-card__products--desktop {
        display: none;
    }

    .sp-lk-order-card__products--mobile {
        display: flex;
        gap: 0;
    }

    .sp-lk-order-card__product-thumb {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .sp-lk-order-card__product-thumb--more {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .sp-lk-order-card__product-thumb--more::before {
        inset: 14px;
    }

    .sp-lk-order-card__header-actions {
        margin-left: auto;
    }

    .sp-lk-order-card__buttons--desktop {
        display: none;
    }

    .sp-lk-order-card__buttons--mobile {
        grid-area: buttons;
        display: flex;
        gap: 8px;
    }

    .sp-lk-order-card__buttons--mobile .sp-lk-order-card__button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 7px 12px;
        border-radius: 8px;
        font-size: 16px;
        line-height: 22px;
    }

    .sp-lk-order-card__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
        gap: 10px;
    }

    .sp-lk-order-card__summary-main {
        justify-content: flex-start;
        width: auto;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .sp-lk-order-card__header {
        gap: 12px;
    }

    .sp-lk-order-card__number {
        font-size: 20px;
        line-height: 28px;
    }

    .sp-lk-order-card__date {
        font-size: 16px;
        line-height: 22px;
    }

    .sp-lk-order-card__body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "products"
            "status"
            "summary"
            "buttons";
        row-gap: 16px;
    }

    .sp-lk-order-card__products--desktop {
        display: none;
    }

    .sp-lk-order-card__products--mobile {
        display: flex;
        gap: 0;
    }

    .sp-lk-order-card__product-thumb {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .sp-lk-order-card__product-thumb--more {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .sp-lk-order-card__product-thumb--more::before {
        inset: 14px;
    }

    .sp-lk-order-card__header-actions {
        margin-left: auto;
        margin-top: 0;
    }

    .sp-lk-order-card__buttons--desktop {
        display: none;
    }

    .sp-lk-order-card__buttons--mobile {
        grid-area: buttons;
        display: flex;
        gap: 8px;
    }

    .sp-lk-order-card__buttons--mobile .sp-lk-order-card__button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 7px 12px;
        border-radius: 8px;
        font-size: 16px;
        line-height: 22px;
    }

    .sp-lk-order-card__status-block {
        gap: 8px;
    }

    .sp-lk-order-card__status-title {
        font-size: 16px;
        line-height: 22px;
    }

    .sp-lk-order-card__status-subtitle {
        font-size: 14px;
        line-height: 17px;
    }

    .sp-lk-order-card__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
        gap: 10px;
    }

    .sp-lk-order-card__summary-main {
        justify-content: flex-start;
        width: auto;
        gap: 8px;
    }

    .sp-lk-order-card__total {
        font-size: 16px;
        line-height: 22px;
    }

    .sp-lk-order-card__items {
        font-size: 16px;
        line-height: 22px;
    }

    .sp-lk-order-card__badge {
        font-size: 14px;
        line-height: 20px;
        padding: 0 4px;
    }

    .sp-lk-order-card__menu-list {
        top: calc(100% + 8px);
        min-width: 200px;
    }
}
