/**
 * Mine kjøp section on [scorm_my_profile].
 *
 * Inherits the .scorm-my-profile design system: brand tokens, pills,
 * buttons, list/row primitives. Only the row internals are defined here;
 * status pills and buttons reuse .scorm-profile-pill--* and .scorm-btn--*.
 */

.scorm-profile-order-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
    border-top: 1px solid var(--scorm-profile-border);
}

.scorm-profile-order-row:first-child {
    border-top: 0;
}

.scorm-profile-order-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

.scorm-profile-order-row__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.scorm-profile-order-row__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--scorm-heading-color);
    overflow-wrap: anywhere;
}

.scorm-profile-order-row__footer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--scorm-muted-text-color);
}

.scorm-profile-order-row__sep {
    color: var(--scorm-profile-border-strong);
}

.scorm-profile-order-row__total {
    font-weight: 700;
    color: var(--scorm-heading-color);
}

.scorm-profile-order-row__action {
    flex: 0 0 auto;
}

/* Mobile: collapse the action under the row. */
@media (max-width: 600px) {
    .scorm-profile-order-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .scorm-profile-order-row__action {
        width: 100%;
    }

    .scorm-profile-order-row__action .scorm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Refunded rows visually de-emphasised. */
.scorm-profile-order-row.status-refunded .scorm-profile-order-row__title,
.scorm-profile-order-row.status-refunded .scorm-profile-order-row__total {
    color: var(--scorm-muted-text-color);
    text-decoration: line-through;
}
