/* GetGo Affiliates — Frontend Styles */

.ga-signup-form,
.ga-dashboard {
	max-width: 640px;
	margin: 0 auto;
}

.ga-form-row {
	margin-bottom: 18px;
}
.ga-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}
.ga-form-row input[type="text"],
.ga-form-row input[type="email"],
.ga-form-row input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
}
.ga-form-row small {
	display: block;
	margin-top: 4px;
	color: #666;
	font-size: 12px;
}
.ga-form-row-half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 480px) {
	.ga-form-row-half { grid-template-columns: 1fr; }
}

.ga-required { color: #c0392b; }

.ga-section-title {
	margin: 28px 0 16px;
	padding-top: 18px;
	border-top: 1px solid #eee;
	font-size: 18px;
}

.ga-signup-form select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
	background: #fff;
}

.ga-slug-field {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}
.ga-slug-prefix {
	background: #f5f5f5;
	padding: 10px 12px;
	color: #666;
	font-size: 14px;
	white-space: nowrap;
	border-right: 1px solid #ccc;
}
.ga-slug-field input {
	flex: 1;
	border: none !important;
	padding: 10px 12px !important;
}
.ga-slug-field input:focus { outline: none; }

.ga-submit-btn {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}
.ga-submit-btn:hover { background: #005a87; }

.ga-errors {
	background: #fef0f0;
	border-left: 4px solid #c0392b;
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 0 4px 4px 0;
}
.ga-errors ul { margin: 0; padding-left: 20px; }
.ga-errors li { color: #c0392b; }

.ga-signup-success {
	background: #edfaee;
	border-left: 4px solid #46b450;
	padding: 20px;
	border-radius: 0 4px 4px 0;
}

/* Dashboard */
.ga-dashboard-header { margin-bottom: 24px; }

.ga-notice {
	padding: 12px 16px;
	background: #f0f0f0;
	border-radius: 4px;
	margin: 12px 0;
}
.ga-notice-warning { background: #fff8e7; border-left: 4px solid #f56e28; }
.ga-notice-error   { background: #fef0f0; border-left: 4px solid #c0392b; }

.ga-referral-link-box {
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 16px;
	margin: 16px 0;
}
.ga-referral-link-box label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}
.ga-link-copy {
	display: flex;
	gap: 8px;
}
.ga-link-copy input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
}
.ga-link-copy button {
	padding: 8px 16px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}
.ga-link-copy button:hover { background: #005a87; }

/* Stats row — never wraps. When all cards don't fit, it becomes a
   swipeable horizontal strip (at any screen width). */
.ga-stats-row {
	display: flex;
	gap: 12px;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 24px;
	padding-bottom: 8px;
}
/* Slim, subtle scrollbar (only visible when the strip actually overflows) */
.ga-stats-row::-webkit-scrollbar { height: 6px; }
.ga-stats-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.ga-stat-card {
	/* grow to fill when everything fits; never shrink below min-width (forces scroll instead of squashing) */
	flex: 1 0 auto;
	min-width: 130px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 16px;
	text-align: center;
}
.ga-stat-card .ga-stat-num { white-space: nowrap; }
.ga-stats-note { margin: -10px 0 20px; font-size: 12px; color: #666; }
.ga-stat-card.ga-orange { border-top: 3px solid #f56e28; }
.ga-stat-card.ga-blue   { border-top: 3px solid #0073aa; }
.ga-stat-card.ga-green  { border-top: 3px solid #46b450; }
.ga-stat-card.ga-clawback { border-top: 3px solid #e8a85c; }
.ga-stat-card.ga-clawback .ga-stat-num { color: #9a4a00; }
.ga-stat-num { display: block; font-size: 22px; font-weight: 700; }
.ga-stat-lbl { display: block; font-size: 11px; color: #666; text-transform: uppercase; margin-top: 4px; }

.ga-commission-info {
	background: #e7f3ff;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 14px;
	margin-bottom: 20px;
}

/* Referrals table */
.ga-referrals-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.ga-referrals-table th,
.ga-referrals-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
}
.ga-referrals-table th { background: #f5f5f5; font-weight: 600; }
.ga-referrals-table tr:hover td { background: #fafafa; }

/* Status badges */
.ga-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}
.ga-status-pending   { background: #fff8e7; color: #8a6200; }
.ga-status-approved  { background: #e7f3ff; color: #0050a0; }
.ga-status-paid      { background: #edfaee; color: #2a7a2e; }
.ga-status-rejected  { background: #fef0f0; color: #c0392b; }
.ga-status-clawback  { background: #fcebd6; color: #9a4a00; }

/* Referrals header + per-page selector */
.ga-referrals-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.ga-perpage-form {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
	margin: 0;
}
.ga-referrals-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ga-download-btn {
	display: inline-block;
	padding: 7px 14px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
}
.ga-download-btn:hover { background: #005a87; color: #fff; }
.ga-download-row { margin: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.ga-perpage-form select {
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
	background: #fff;
}

/* Pagination */
.ga-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	font-size: 13px;
}
.ga-pagination-info { color: #666; }
.ga-pagination-links a,
.ga-pagination-links span {
	display: inline-block;
	padding: 6px 11px;
	margin-left: 4px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #0073aa;
}
.ga-pagination-links span.current {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}
.ga-pagination-links a:hover { background: #f0f0f0; }
.ga-pagination-links span.dots { border: none; }

/* Status legend */
.ga-status-legend {
	margin-top: 20px;
	padding: 16px 18px;
	background: #f7f7f7;
	border: 1px solid #eee;
	border-radius: 6px;
	font-size: 13px;
}
.ga-status-legend h4 { margin: 0 0 10px; font-size: 14px; }
.ga-status-legend ul { margin: 0; padding: 0; list-style: none; }
.ga-status-legend li { margin-bottom: 8px; line-height: 1.5; }
.ga-status-legend li:last-child { margin-bottom: 0; }
.ga-status-legend .ga-status { margin-right: 8px; }
