/*
 * AnnGhar UI — Miscellaneous Components
 * ------------------------------------------------------------------
 * Everything that doesn't belong in a more specific file: referral
 * link/copy row, social share buttons, the landing page's closing
 * CTA band, and best-effort Wishlist styling (only rendered if a
 * wishlist plugin is actually active — see DashboardPresenter).
 *
 * This is the last component file in the load order (before
 * animations/responsive) — see AccountThemeService for the full
 * enqueue chain and why the order matters.
 */

.ag-copy-row {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 16px;
}

.ag-copy-row input {
	flex: 1;
	margin-bottom: 0;
	padding: 12px 16px;
	border-radius: var(--ag-radius-sm);
	border: 1px solid var(--ag-border);
	background: var(--ag-cream);
	font-family: monospace;
	font-size: 13.5px;
	color: var(--ag-text);
}

.ag-share-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.ag-share-buttons__link {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--ag-cream);
	color: var(--ag-primary-dark);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid var(--ag-border);
}

.ag-share-buttons__link:hover {
	background: var(--ag-border);
}

/* Referral / stat counters row (Pending / Successful, etc.) */

.ag-counter-row {
	display: flex;
	gap: 20px;
	margin-bottom: 16px;
}

.ag-counter-row__value {
	display: block;
	font-size: 1.4em;
	font-weight: 700;
	color: var(--ag-primary-dark);
}

.ag-counter-row__label {
	display: block;
	font-size: .85em;
	color: var(--ag-muted);
}

/* Closing call-to-action band (landing page) */

.ag-cta {
	background: var(--ag-cream);
	border-radius: var(--ag-radius);
	padding: 48px 24px;
	text-align: center;
}

.ag-cta__title {
	margin: 0 0 20px;
	font-size: clamp(1.3em, 3vw, 1.8em);
}

.ag-cta__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Wishlist (best-effort; only rendered/loaded if a wishlist plugin is
   detected active — see DashboardPresenter::has_wishlist_plugin()). */

.ag-wishlist-grid,
.yith-wcwl-wishlist-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.ag-wishlist-item,
table.wishlist_table tbody tr {
	background: var(--ag-white);
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius-sm);
	box-shadow: var(--ag-shadow);
	padding: 16px;
	transition: transform .2s ease;
}

.ag-wishlist-item:hover {
	transform: translateY(-3px);
}

/* WooCommerce's own order/order-details.php + order/order-details-
   customer.php templates render the single-order line items, totals,
   and billing/shipping addresses — intentionally NOT overridden (see
   myaccount/view-order.php), only wrapped in a .ag-card--section shell
   and restyled here via WooCommerce's own native classes, so every
   action/filter those core templates fire keeps working for any other
   plugin hooked into them. */

.ag-wc-order-details {
	padding: 24px;
}

.ag-wc-order-details .woocommerce-order-details__title,
.ag-wc-order-details .woocommerce-column__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ag-primary-dark);
	margin: 0 0 16px;
}

.ag-wc-order-details table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 8px;
}

.ag-wc-order-details table.shop_table th,
.ag-wc-order-details table.shop_table td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--ag-border);
	text-align: left;
}

.ag-wc-order-details table.shop_table thead th {
	color: var(--ag-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 600;
}

.ag-wc-order-details table.shop_table tfoot th {
	font-weight: 600;
	color: var(--ag-text);
}

.ag-wc-order-details table.shop_table tfoot tr:last-child th,
.ag-wc-order-details table.shop_table tfoot tr:last-child td {
	border-bottom: none;
	font-size: 16px;
	font-weight: 700;
	color: var(--ag-primary-dark);
}

.ag-wc-order-details .woocommerce-customer-details {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--ag-border);
}

.ag-wc-order-details .woocommerce-columns--addresses,
.ag-wc-order-details .col2-set.addresses {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ag-wc-order-details .woocommerce-column address {
	font-size: 14px;
	color: var(--ag-text);
	line-height: 1.7;
	font-style: normal;
}

/* Misc single-line text helpers */

.ag-summary-line {
	font-size: 14.5px;
	color: var(--ag-muted);
	margin-bottom: 8px;
}

.ag-positive {
	color: #1f7a3d;
	font-weight: 600;
}

.ag-negative {
	color: #b13636;
	font-weight: 600;
}
