/**
 * EDD Custom Features - front-end styles (shortcode output).
 */

.edd-cf-table-front {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 1em 0;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	font-size: 14px;
}

.edd-cf-table-front th,
.edd-cf-table-front td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #eef2f7;
}

.edd-cf-table-front thead th {
	background: #f8fafc;
	font-weight: 600;
	color: #334155;
}

.edd-cf-table-front tbody tr:last-child td {
	border-bottom: 0;
}

.edd-cf-table-front tbody tr:hover {
	background: #f9fafb;
}

.edd-cf-table-front code {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 13px;
}

/* Front-end status badges */
.edd-cf-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-transform: capitalize;
	background: #f1f5f9;
	color: #475569;
}

.edd-cf-badge--active,
.edd-cf-badge--valid { background: #dcfce7; color: #16a34a; }

.edd-cf-badge--pending,
.edd-cf-badge--pending-renewal { background: #fef3c7; color: #b45309; }

.edd-cf-badge--expired,
.edd-cf-badge--cancelled { background: #fee2e2; color: #dc2626; }

.edd-cf-badge--completed { background: #dbeafe; color: #2563eb; }

/* Recently viewed list */
.edd-user-history__title {
	font-size: 16px;
	margin: 0 0 10px;
}

.edd-user-history__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.edd-user-history__list li a {
	display: inline-block;
	padding: 6px 14px;
	background: #f1f5f9;
	border-radius: 999px;
	text-decoration: none;
	color: #334155;
	font-size: 13px;
	transition: background 0.15s ease;
}

.edd-user-history__list li a:hover {
	background: #e2e8f0;
}

/* Currency switcher */
.edd-currency-switcher select {
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #fff;
	font-size: 14px;
}

/* ===== Quick-win features ===== */

/* Purchase limit — sold out */
.edd-cf-sold-out {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
	background: #fee2e2;
	color: #b91c1c;
	font-weight: 600;
}

/* Recommended products grid */
.edd-cf-recommended { margin: 2em 0; }
.edd-cf-recommended__title { font-size: 18px; margin: 0 0 12px; }
.edd-cf-recommended__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}
.edd-cf-recommended__item { text-align: center; }
.edd-cf-recommended__item a { text-decoration: none; color: inherit; display: block; }
.edd-cf-recommended__thumb { border-radius: 8px; width: 100%; height: auto; }
.edd-cf-recommended__name { display: block; margin-top: 8px; font-weight: 600; }
.edd-cf-recommended__price { display: block; color: #64748b; font-size: 14px; }

/* Wishlist */
.edd-cf-wl-btn {
	cursor: pointer;
	border: 1px solid #cbd5e1;
	background: #fff;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	color: #334155;
}
.edd-cf-wl-btn.is-active { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.edd-cf-wishlist { list-style: none; margin: 1em 0; padding: 0; }
.edd-cf-wishlist__item {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f7;
}
