/* Foreveryuppy Featured Listings — Public Styles */

/* ─── Badges ─────────────────────────────────────── */
.ffl-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.ffl-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	letter-spacing: .3px;
	text-transform: uppercase;
}

/* ─── Highlighted listing card ───────────────────── */
.ffl-is-highlighted {
	border: 2px solid #10b981 !important;
	box-shadow: 0 0 0 3px rgba(16,185,129,.15);
	border-radius: 8px;
}

/* ─── Modal ──────────────────────────────────────── */
.ffl-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.ffl-modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 860px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.ffl-modal-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 4px;
}

.ffl-modal-close:hover { color: #111; }

.ffl-modal-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 4px;
}

.ffl-modal-subtitle {
	color: #6b7280;
	margin: 0 0 24px;
}

/* ─── Package Grid ────────────────────────────────── */
.ffl-package-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.ffl-package-card {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, border-color .2s;
}

.ffl-package-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.ffl-package-card--featured {
	border-color: #ec4899;
	box-shadow: 0 4px 16px rgba(236,72,153,.15);
}

.ffl-package-card--active {
	opacity: .65;
	pointer-events: none;
}

.ffl-package-badge {
	background: #ec4899;
	color: #fff;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 4px 0;
}

.ffl-package-color-bar {
	height: 5px;
}

.ffl-package-card .ffl-package-name {
	font-size: 16px;
	font-weight: 700;
	margin: 16px 16px 4px;
}

.ffl-package-price {
	font-size: 22px;
	font-weight: 800;
	color: #1f2937;
	margin: 0 16px 8px;
}

.ffl-package-period {
	font-size: 13px;
	font-weight: 400;
	color: #6b7280;
}

.ffl-package-desc {
	font-size: 13px;
	color: #6b7280;
	margin: 0 16px 12px;
}

.ffl-package-features {
	list-style: none;
	margin: 0 16px 16px;
	padding: 0;
	font-size: 13px;
	flex: 1;
}

.ffl-package-features li {
	padding: 4px 0 4px 20px;
	position: relative;
	color: #374151;
}

.ffl-package-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #10b981;
	font-weight: 700;
}

.ffl-package-cta,
.ffl-package-active-label {
	margin: auto 16px 16px;
	text-align: center;
	display: block;
}

.ffl-package-active-label {
	color: #10b981;
	font-weight: 600;
	font-size: 13px;
}

/* ─── Checkout ────────────────────────────────────── */
.ffl-checkout-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	max-width: 900px;
	margin: 0 auto;
}

@media (max-width: 640px) {
	.ffl-checkout-wrap { grid-template-columns: 1fr; }
}

.ffl-checkout-heading {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f3f4f6;
}

.ffl-checkout-listing {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.ffl-checkout-listing-thumb img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
}

.ffl-checkout-listing-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ffl-checkout-package {
	padding: 16px;
	background: #f9fafb;
	border-radius: 10px;
	margin-bottom: 16px;
}

.ffl-checkout-package h3 {
	margin: 0 0 4px;
	font-size: 16px;
}

.ffl-checkout-package ul {
	margin: 8px 0 0;
	padding-left: 16px;
	font-size: 13px;
	color: #4b5563;
}

.ffl-checkout-price {
	font-size: 24px;
	font-weight: 800;
	margin-top: 12px;
}

.ffl-checkout-period {
	font-size: 14px;
	font-weight: 400;
	color: #6b7280;
}

/* Auto-renew toggle */
.ffl-auto-renew-toggle {
	margin-bottom: 20px;
}

.ffl-toggle-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.ffl-toggle-text {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	font-size: 14px;
}

.ffl-toggle-note {
	font-weight: 400;
	font-size: 12px;
	color: #9ca3af;
}

/* Card element */
.ffl-card-field-wrap {
	margin-bottom: 20px;
}

.ffl-card-field-wrap label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
}

.ffl-card-element {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 12px;
	background: #fff;
	transition: border-color .2s;
}

.ffl-card-element--focused {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.ffl-card-errors {
	color: #dc2626;
	font-size: 13px;
	margin-top: 6px;
	min-height: 18px;
}

.ffl-checkout-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid #f3f4f6;
	border-bottom: 1px solid #f3f4f6;
	margin-bottom: 16px;
	font-size: 15px;
}

.ffl-submit-btn {
	width: 100%;
	padding: 12px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	border-radius: 8px !important;
	position: relative;
}

.ffl-btn-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ffl-spin .7s linear infinite;
	vertical-align: middle;
	margin-left: 8px;
}

@keyframes ffl-spin {
	to { transform: rotate(360deg); }
}

.ffl-secure-note {
	text-align: center;
	font-size: 12px;
	color: #9ca3af;
	margin-top: 10px;
}

.ffl-payment-messages {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.ffl-payment-messages.is-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.ffl-payment-messages.is-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ─── Homepage Featured Grid ─────────────────────── */
.ffl-homepage-featured {
	margin: 32px 0;
}

.ffl-section-title {
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 20px;
}

.ffl-featured-grid {
	display: grid;
	gap: 20px;
}

.ffl-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ffl-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ffl-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
	.ffl-featured-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
	.ffl-featured-grid { grid-template-columns: 1fr !important; }
}

.ffl-featured-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
	transition: box-shadow .2s, transform .2s;
}

.ffl-featured-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
	transform: translateY(-2px);
}

.ffl-card-image-link { display: block; }

.ffl-card-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.ffl-card-body {
	padding: 16px;
}

.ffl-card-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 10px;
	letter-spacing: .4px;
}

.ffl-card-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
}

.ffl-card-title a {
	text-decoration: none;
	color: inherit;
}

.ffl-card-title a:hover { color: #6366f1; }

.ffl-card-excerpt {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 14px;
}

.ffl-card-link {
	display: inline-block;
	font-size: 13px;
}

/* ─── Ticker ──────────────────────────────────────── */
.ffl-ticker {
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	overflow: hidden;
}

.ffl-ticker-label {
	font-weight: 700;
	font-size: 13px;
	color: #1e40af;
	white-space: nowrap;
}

.ffl-ticker-track {
	display: flex;
	gap: 24px;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.ffl-ticker-item {
	white-space: nowrap;
	font-size: 13px;
	color: #1d4ed8;
	text-decoration: none;
}

.ffl-ticker-item:hover { text-decoration: underline; }

/* ─── Seller Dashboard ────────────────────────────── */
.ffl-seller-dashboard {
	padding: 20px 0;
}

.ffl-seller-heading {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 20px;
}

.ffl-seller-table-wrap {
	overflow-x: auto;
}

.ffl-seller-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ffl-seller-table th,
.ffl-seller-table td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid #f3f4f6;
}

.ffl-seller-table th {
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: .5px;
}

.ffl-seller-table--muted td {
	color: #9ca3af;
}

.ffl-pkg-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
}

.ffl-expiry-warning {
	color: #dc2626;
	font-weight: 700;
}

.ffl-expiry-date {
	display: block;
	color: #9ca3af;
	font-size: 12px;
}

.ffl-auto-renew-on  { color: #10b981; font-weight: 600; }
.ffl-auto-renew-off { color: #9ca3af; }

.ffl-empty-state {
	text-align: center;
	padding: 40px 20px;
	background: #f9fafb;
	border-radius: 12px;
	color: #6b7280;
}

/* ─── Notice ──────────────────────────────────────── */
.ffl-notice {
	padding: 14px 18px;
	background: #f3f4f6;
	border-radius: 8px;
	color: #374151;
}

.ffl-notice--info {
	background: #dbeafe;
	color: #1e40af;
}

/* ─── Loading ─────────────────────────────────────── */
.ffl-loading {
	text-align: center;
	color: #9ca3af;
	padding: 32px;
}
