/* ==========================================================================
   Nova Market — buyer center (account, orders, support, refunds)
   Loaded only on WooCommerce account screens.
   ========================================================================== */

.ofosao-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.ofosao-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	white-space: nowrap;
	border: 1px solid #e7e0ec;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: #4a4152;
	text-decoration: none;
	background: #fff;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.ofosao-tab:hover { border-color: #2b1b3d; color: #2b1b3d; }
.ofosao-tab.is-active { background: #2b1b3d; border-color: #2b1b3d; color: #fff; }
.ofosao-tab em { font-style: normal; font-size: 11.5px; opacity: .85; }
.ofosao-tab--ghost { border-style: dashed; }

.ofosao-lead { color: #7c7382; font-size: 13.5px; margin: 0 0 16px; }

.ofosao-notice {
	background: #f4f1f7;
	border: 1px solid #e2daeb;
	color: #2b1b3d;
	border-radius: 12px;
	padding: 11px 15px;
	font-size: 13.5px;
	margin: 0 0 16px;
}
.ofosao-notice--err { background: #fdf1f1; border-color: #f0cfcf; color: #a33a3a; }

.ofosao-support-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.ofosao-support-info__item { border: 1px solid #efeaf3; border-radius: 12px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.ofosao-support-info__item strong { font-size: 13px; color: #2b1b3d; }
.ofosao-support-info__item span { font-size: 12px; color: #7c7382; }

.ofosao-form { max-width: 620px; }
.ofosao-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
.ofosao-field label { font-size: 12.5px; font-weight: 600; color: #5c5468; }
.ofosao-field input,
.ofosao-field textarea,
.ofosao-field select {
	border: 1px solid #e2daeb;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13.5px;
	background: #fff;
}
.ofosao-field input:focus,
.ofosao-field textarea:focus,
.ofosao-field select:focus { outline: none; border-color: #2b1b3d; }

.ofosao-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	background: #2b1b3d;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid #2b1b3d;
	cursor: pointer;
}
.ofosao-btn:hover { background: #3a2450; border-color: #3a2450; color: #fff !important; }
.ofosao-btn--ghost { background: #fff; color: #2b1b3d !important; border-color: #e0d8e6; }
.ofosao-btn--ghost:hover { background: #f7f4fa; border-color: #2b1b3d; color: #2b1b3d !important; }
.ofosao-btn--sm { padding: 7px 14px; font-size: 12.5px; }

.ofosao-panel { border: 1px solid #efeaf3; border-radius: 12px; padding: 16px; margin-bottom: 16px; }

.ofosao-reqs { display: flex; flex-direction: column; gap: 10px; }
.ofosao-req { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #efeaf3; border-radius: 12px; padding: 11px 15px; }
.ofosao-req > div { display: flex; flex-direction: column; gap: 2px; }
.ofosao-req strong { font-size: 13.5px; color: #2b1b3d; }
.ofosao-req span { font-size: 12.5px; color: #7c7382; }
.ofosao-req em { font-style: normal; font-size: 11.5px; color: #a9a1b0; }
.ofosao-req__badge { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff4e5; color: #a05c00; white-space: nowrap; }
.ofosao-req__badge.is-ok { background: #eef7ef; color: #2f7d43; }

/* Avatar block ------------------------------------------------------------- */

.ofosao-avatar { display: flex; gap: 15px; align-items: center; margin: 6px 0 18px; }
.ofosao-avatar__img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f1f7;
	flex: 0 0 84px;
}
.ofosao-avatar__img img,
.ofosao-avatar__img .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; margin: 0; }
.ofosao-avatar__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ofosao-avatar__meta label { font-size: 12.5px; font-weight: 600; color: #5c5468; }
.ofosao-avatar__meta input[type="file"] { font-size: 12.5px; max-width: 100%; }
.ofosao-hint { font-size: 12px; color: #9a92a0; margin: 5px 0 0; }
.ofosao-hint.is-err { color: #a33a3a; }

/* Recommendations ---------------------------------------------------------- */

.ofosao-reco { margin-top: 34px; border-top: 1px solid #efeaf3; padding-top: 24px; }
.ofosao-reco h3 { font-size: 18px; color: #2b1b3d; margin: 0 0 14px; }
.ofosao-reco__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ofosao-reco__card { display: flex; flex-direction: column; background: #fff; border: 1px solid #efeaf3; border-radius: 14px; overflow: hidden; }
.ofosao-reco__thumb { display: block; background: #faf7fc; }
.ofosao-reco__thumb img { display: block; width: 100%; height: auto; }
.ofosao-reco__body { display: flex; flex-direction: column; gap: 6px; padding: 11px 13px 14px; flex: 1; }
.ofosao-reco__title { font-size: 13px; font-weight: 600; color: #2b1b3d; line-height: 1.35; text-decoration: none; }
.ofosao-reco__price { font-size: 13.5px; font-weight: 700; color: var(--nv-red, #c2188a); margin-top: auto; }
.ofosao-reco__btn { display: inline-block; text-align: center; padding: 8px 12px; border-radius: 999px; background: #2b1b3d; color: #fff !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important; }

@media (max-width: 760px) {
	.ofosao-reco__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.ofosao-support-info { grid-template-columns: 1fr; }
	.ofosao-req { flex-direction: column; align-items: flex-start; }
}

/* Avatar row: label sits level with the preview. */
.ofosao-avatar { align-items: flex-start; }
.ofosao-avatar__img { flex: 0 0 84px; margin-top: 4px; }
.ofosao-avatar__meta label { display: block; }

/* My Account: standalone avatar card (works with any account form type). */
.ofosao-avatar-card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 16px;
	border: 1px solid rgba(43, 27, 61, .14);
	border-radius: 12px;
	margin: 0 0 26px;
	background: #fff;
}
.ofosao-avatar-card__preview {
	width: 88px;
	height: 88px;
	min-width: 88px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(43, 27, 61, .18);
	background: rgba(43, 27, 61, .06);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ofosao-avatar-card__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ofosao-avatar-card__body { flex: 1; min-width: 0; }
.ofosao-avatar-card__body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #2b1b3d; }
.ofosao-avatar-card__body p { margin: 0 0 10px; font-size: 13px; color: rgba(43, 27, 61, .78); }
.ofosao-avatar-card__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ofosao-avatar-card__form input[type="file"] { font-size: 12px; max-width: 100%; }
.ofosao-avatar-card__form .ofosao-hint { flex-basis: 100%; margin: 0; }

/* My account: support history (question + admin reply). */
.ofosao-history__title { margin: 28px 0 12px; font-size: 18px; font-weight: 700; color: #2b1b3d; }
.ofosao-history { list-style: none; margin: 0; padding: 0; }
.ofosao-history__item {
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 1px solid rgba(43, 27, 61, .14);
	border-radius: 12px;
	background: #fff;
}
.ofosao-history__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12.5px; color: rgba(43, 27, 61, .62); }
.ofosao-history__state { padding: 2px 9px; border-radius: 999px; border: 1px solid transparent; }
.ofosao-history__state.is-open { background: rgba(43, 27, 61, .08); color: #2b1b3d; }
.ofosao-history__state.is-replied { background: #2b1b3d; color: #fff; }
.ofosao-history__state.is-closed { border-color: rgba(43, 27, 61, .2); color: rgba(43, 27, 61, .6); }
.ofosao-history__msg { margin: 8px 0 0; font-size: 13.5px; color: rgba(43, 27, 61, .82); }
.ofosao-history__reply {
	margin-top: 10px;
	padding: 10px 12px;
	border-left: 3px solid #2b1b3d;
	background: rgba(43, 27, 61, .04);
	border-radius: 0 10px 10px 0;
}
.ofosao-history__reply strong { display: block; font-size: 12.5px; color: #2b1b3d; }
.ofosao-history__reply p { margin: 4px 0 0; font-size: 13.5px; color: rgba(43, 27, 61, .82); }

/* My account: My reviews ------------------------------------------------ */
.ofosao-acct-reviews__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}
.ofosao-acct-review {
	display: flex;
	gap: 14px;
	min-width: 0;
	padding: 14px;
	border: 1px solid rgba(43, 27, 61, .14);
	border-radius: 14px;
	background: #fff;
}
.ofosao-acct-review__thumb { display: block; width: 84px; flex: 0 0 auto; }
.ofosao-acct-review__thumb img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #faf7fc; }
.ofosao-acct-review__body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.ofosao-acct-review__title { color: #2b1b3d; font-size: 14px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.ofosao-acct-review__title:hover { color: #8a1e63; }
.ofosao-acct-review__order { color: rgba(43, 27, 61, .55); font-size: 11.5px; text-decoration: none; }
.ofosao-acct-review__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: rgba(43, 27, 61, .55); font-size: 11.5px; }
.ofosao-acct-review__rating .ofosao-reviews__stars { margin: 0; }
.ofosao-acct-review__rating .ofosao-reviews__stars svg { width: 15px; height: 15px; }
.ofosao-acct-review__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 3px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #2b1b3d;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
}
.ofosao-acct-review__btn:hover { background: #8a1e63; color: #fff !important; }

@media (max-width: 760px) {
	.ofosao-acct-reviews__grid { grid-template-columns: 1fr; }
}

/* My account: product thumbnails in order rows and order details. */
.ofosao-order-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 190px;
}
.ofosao-order-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.ofosao-order-item__thumb { display: block; flex: 0 0 auto; }
.ofosao-order-item__name { color: #2b1b3d !important; text-decoration: none !important; }
.ofosao-order-item img {
    display: block;
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    border-radius: 8px;
    background: #faf7fc;
}
.ofosao-order-item__name {
    min-width: 0;
    max-width: 190px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}
.ofosao-order-items__label {
    display: none;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(43, 27, 61, .5);
    margin-bottom: 1px;
}
.ofosao-order-items__more { font-size: 11.5px; color: rgba(43, 27, 61, .5); }
.ofosao-order-detail-thumb {
    display: inline-block;
    vertical-align: middle;
    margin-right: 9px;
}
.ofosao-order-detail-thumb img {
    display: inline-block;
    width: 44px !important;
    height: 44px !important;
    object-fit: cover;
    border-radius: 8px;
    background: #faf7fc;
}
@media (max-width: 760px) {
    .ofosao-order-items { min-width: 150px; }
    .ofosao-order-items__label { display: block; }
    .ofosao-order-item__name { max-width: 150px; }
}

/* My account order actions: prevent the two buttons from colliding on mobile. */
.woocommerce-orders-table__cell-order-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.woocommerce-orders-table__cell-order-actions .button {
    flex: 0 1 auto;
    min-width: 0;
    height: auto !important;
    min-height: 34px;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px;
}
.woocommerce-orders-table__cell-order-actions .review {
    background: #2b1b3d !important;
    border-color: #2b1b3d !important;
    color: #fff !important;
}
.woocommerce-orders-table__cell-order-actions .view {
    background: #fff !important;
    border: 1px solid #e2daeb !important;
    color: #2b1b3d !important;
}
@media (max-width: 760px) {
    .woocommerce-orders-table__cell-order-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }
    .woocommerce-orders-table__cell-order-actions .button {
        width: 100%;
        min-height: 40px;
        padding: 10px 12px !important;
        white-space: normal;
    }
}
