/* aum-profile — frontend account styles */

.aum-account-profiles {
    max-width: 860px;
}

.aum-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.aum-account-header h2 {
    margin: 0;
}

/* ── Form card ────────────────────────────────────── */
.aum-form-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.aum-form-card h3,
.aum-form-card h4 {
    margin-top: 0;
}

.aum-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.aum-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.aum-form-row input,
.aum-form-row select {
    max-width: 380px;
}

.aum-doc-type-help {
    display: block;
    max-width: 380px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.aum-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ── Profile card ─────────────────────────────────── */
.aum-profile-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}

.aum-profile-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px;
    background: #fff;
    gap: 12px;
}

.aum-profile-card__summary {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 40px 0 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.aum-profile-card__summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #fff;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.aum-profile-card--expanded .aum-profile-card__summary::after {
    content: '−';
}

.aum-profile-card__summary:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 3px;
    border-radius: 4px;
}

.aum-profile-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.aum-profile-card__summary-text {
    font-size: 13px;
    color: #666;
    word-break: break-word;
}

.aum-profile-card__meta {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aum-profile-card__body {
    background: #fafafa;
}

.aum-profile-card--collapsed .aum-profile-card__body {
    display: none;
}

.aum-profile-card__details {
    padding: 14px 18px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.aum-profile-card__field-list {
    list-style: none;
    margin: 0;
    padding: 0 0 14px;
    display: grid;
    gap: 10px;
}

.aum-profile-card__field {
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.aum-profile-card__field-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.aum-profile-card__field-value {
    font-size: 13px;
    color: #374151;
    word-break: break-word;
}

.aum-profile-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aum-profile-card__info strong {
    font-size: 15px;
}

.aum-profile-card__info span {
    font-size: 13px;
    color: #666;
}

.aum-profile-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.aum-profile-card__actions .aum-edit-profile-btn.button-link {
    padding: 0;
    border: 0;
    background: none;
    color: #2271b1;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
}

.aum-profile-card__actions .aum-edit-profile-btn.button-link:hover,
.aum-profile-card__actions .aum-edit-profile-btn.button-link:focus-visible {
    background: none;
    color: #135e96;
    text-decoration: underline;
}

.aum-profile-card__actions .aum-delete-profile-btn.button-link-delete,
.aum-doc-row .aum-delete-doc-btn.button-link-delete {
    padding: 0;
    border: 0;
    background: none;
    color: #b32d2e;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
}

.aum-profile-card__actions .aum-delete-profile-btn.button-link-delete:hover,
.aum-profile-card__actions .aum-delete-profile-btn.button-link-delete:focus-visible,
.aum-doc-row .aum-delete-doc-btn.button-link-delete:hover,
.aum-doc-row .aum-delete-doc-btn.button-link-delete:focus-visible {
    background: none;
    color: #8a2424;
    text-decoration: underline;
}

.aum-doc-row .aum-delete-doc-btn.button-link-delete {
    margin-left: auto;
}

/* ── Documents section ────────────────────────────── */
.aum-profile-card__docs {
    padding: 12px 18px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.aum-profile-card__docs h4 {
    margin: 0 0 10px;
    font-size: 13px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.aum-doc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.aum-doc-row:last-of-type {
    border-bottom: none;
}

.aum-doc-type {
    font-weight: 600;
    min-width: 130px;
}

.aum-doc-number {
    color: #555;
    flex: 1;
}

.aum-doc-img-count {
    color: #888;
    font-size: 12px;
}

.aum-add-doc-btn {
    margin-top: 10px;
}

/* ── Feedback messages ────────────────────────────── */
.aum-msg {
    font-size: 13px;
    margin-top: 8px;
}

.aum-msg--success { color: #0a3622; }
.aum-msg--error   { color: #58151c; }

/* ── Status badges (used in order page + quotes list) */
.aum-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aum-status--approved { background: #d1e7dd; color: #0a3622; }
.aum-status--rejected { background: #f8d7da; color: #58151c; }
.aum-status--skipped  { background: #e2e8f0; color: #334155; }

/* ── Profile verification card ───────────────────── */
.aum-order-profile-notice {
    margin-top: 32px;
    padding: 24px 28px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    text-align: left;
}

.aum-order-profile-notice h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
}

.aum-profile-review-list {
    margin: 0;
    padding-left: 22px;
    border-top: 1px solid #eceff3;
    text-align: left;
}

.aum-profile-review-list__item {
    padding: 12px 0 12px 4px;
    border-bottom: 1px solid #eceff3;
    text-align: left;
}

.aum-profile-review-list__item:last-child {
    border-bottom: 0;
}

.aum-profile-review-list__row {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    justify-items: start;
    text-align: left;
}

.aum-profile-review-list__label {
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    word-break: break-word;
    text-align: left;
}

.aum-profile-review-list__value {
    color: #374151;
    line-height: 1.45;
    word-break: break-word;
    text-align: left;
}

.aum-profile-review-section {
    margin-top: 20px;
}

.aum-profile-review-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.aum-profile-review-section__header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.aum-profile-review-live-note {
    margin: 0 0 10px;
    color: #888;
    font-size: 12px;
    font-style: italic;
}

.aum-profile-review-doc-number {
    color: #4b5563;
}

.aum-profile-review-list__value--doc {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.aum-profile-review-doc-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.aum-profile-review-doc-images img {
    height: 48px;
    width: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.aum-profile-review-pending {
    margin: 18px 0 0;
    color: #888;
    font-style: italic;
}

.aum-profile-review-status {
    margin-top: 18px;
}

/* ── Order review notices ─────────────────────────── */
.aum-notice {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 4px solid;
}

.aum-notice--approved {
    background: #d1e7dd;
    border-color: #0a3622;
    color: #0a3622;
}

.aum-notice--rejected {
    background: #f8d7da;
    border-color: #58151c;
    color: #58151c;
}

.aum-notice--skipped {
    background: #eef2ff;
    border-color: #475569;
    color: #334155;
}

.aum-notice p {
    margin: 0 0 6px;
}

.aum-notice p:last-child {
    margin-bottom: 0;
}

.aum-notice__note {
    font-size: 13px;
    opacity: .85;
}

/* ── YITH My Quotes: profile info cell ───────────── */
.aum-quote-profile-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
    .aum-profile-card__header {
        flex-direction: column;
    }

    .aum-profile-card__summary {
        width: 100%;
    }

    .aum-profile-card__actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .aum-profile-card__field {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .aum-order-profile-notice {
        padding: 20px 18px;
    }

    .aum-profile-review-list__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .aum-profile-review-list__value--doc {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}
