/**
 * SimplePay frontend styles.
 * Palette: botol green (#004225) + emas gold (#D4AF37), mobile-first.
 * Scoped under .sp-* to avoid theme collisions.
 * Colour vars live on :root so the theme can override them via inline CSS.
 */

:root {
	--sp-botol: #004225;
	--sp-botol-600: #0a5a37;
	--sp-emas: #d4af37;
}

.sp-wrap {
	--sp-ink: #1a2b22;
	--sp-muted: #667a70;
	--sp-line: #e3ebe6;
	--sp-bg: #f6f9f7;
	--sp-radius: 14px;
	--sp-shadow: 0 4px 24px rgba(0, 66, 37, 0.08);

	box-sizing: border-box;
	max-width: 480px;
	margin: 0 auto;
	padding: 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--sp-ink);
	line-height: 1.55;
}

.sp-wrap *,
.sp-wrap *::before,
.sp-wrap *::after {
	box-sizing: border-box;
}

/* Grid variant is wider */
.sp-wrap.sp-wrap--grid {
	max-width: 1080px;
}

.sp-card {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	box-shadow: var(--sp-shadow);
	overflow: hidden;
}

.sp-card__media {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--sp-botol), var(--sp-botol-600));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sp-card__media-fallback {
	color: rgba(212, 175, 55, 0.9);
	font-size: 40px;
}

.sp-card__body {
	padding: 20px;
}

.sp-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sp-botol);
	background: rgba(212, 175, 55, 0.16);
	border: 1px solid rgba(212, 175, 55, 0.4);
	padding: 3px 10px;
	border-radius: 999px;
}

.sp-title {
	font-size: 19px;
	font-weight: 700;
	margin: 10px 0 6px;
	color: var(--sp-ink);
}

.sp-desc {
	font-size: 14px;
	color: var(--sp-muted);
	margin: 0 0 16px;
}

.sp-price {
	font-size: 24px;
	font-weight: 800;
	color: var(--sp-botol);
	letter-spacing: -0.01em;
}

.sp-price small {
	font-size: 13px;
	font-weight: 500;
	color: var(--sp-muted);
	margin-left: 4px;
}

/* Form */
.sp-field {
	margin-bottom: 14px;
}

.sp-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--sp-ink);
}

.sp-input,
.sp-textarea,
.sp-select {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 1.5px solid var(--sp-line);
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}

.sp-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23004225' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}

.sp-input:focus,
.sp-textarea:focus,
.sp-select:focus {
	outline: none;
	border-color: var(--sp-botol);
	box-shadow: 0 0 0 3px rgba(0, 66, 37, 0.1);
}

.sp-textarea {
	resize: vertical;
	min-height: 72px;
}

.sp-field__error {
	color: #c0392b;
	font-size: 12px;
	margin-top: 5px;
	display: block;
}

.sp-field__note {
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 1.45;
	margin-top: 6px;
	display: block;
}

/* Grouped payment method cards (accordion) */
.sp-paygroups {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 4px;
}

.sp-paygroup {
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.sp-paygroup__head {
	width: 100%;
	background: #eef2f7;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.sp-paygroup__headtext {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sp-paygroup__title {
	font-weight: 700;
	font-size: 15px;
	color: #1f2937;
}

.sp-paygroup__note {
	font-size: 12px;
	color: #64748b;
}

.sp-paygroup__chevron {
	color: #64748b;
	display: flex;
	transition: transform 0.2s ease;
}

.sp-paygroup--open .sp-paygroup__chevron {
	transform: rotate(180deg);
}

.sp-payitem {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-top: 1px solid var(--sp-line);
	cursor: pointer;
	transition: background 0.12s ease;
}

.sp-payitem:hover {
	background: #f8fafc;
}

.sp-payitem--active {
	background: #eff6ff;
}

.sp-payitem--active .sp-payitem__pick {
	background: var(--sp-botol);
	color: #fff;
	border-color: var(--sp-botol);
}

.sp-payitem__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.sp-payitem__logo svg {
	display: block;
	border-radius: 8px;
}

.sp-payitem__text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sp-payitem__name {
	font-weight: 700;
	font-size: 15px;
	color: #1f2937;
}

.sp-payitem__sub {
	font-size: 13px;
	color: #94a3b8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-payitem__pick {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--sp-botol);
	border: 1.5px solid var(--sp-line);
	border-radius: 8px;
	padding: 7px 16px;
	transition: all 0.12s ease;
}

/* Gateway selection */
.sp-gateways {
	display: grid;
	gap: 10px;
	margin-bottom: 18px;
}

.sp-gateway {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1.5px solid var(--sp-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-gateway:hover {
	border-color: var(--sp-emas);
}

.sp-gateway--active {
	border-color: var(--sp-botol);
	background: rgba(0, 66, 37, 0.04);
}

.sp-gateway input {
	accent-color: var(--sp-botol);
	width: 18px;
	height: 18px;
}

.sp-gateway__label {
	font-weight: 600;
	font-size: 14px;
}

/* Button */
.sp-btn {
	display: block;
	width: 100%;
	padding: 15px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--sp-botol);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.08s ease, background 0.15s ease;
	font-family: inherit;
}

.sp-btn:hover:not(:disabled) {
	background: var(--sp-botol-600);
}

.sp-btn:active:not(:disabled) {
	transform: translateY(1px);
}

.sp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sp-btn--gold {
	background: var(--sp-emas);
	color: var(--sp-botol);
}

.sp-btn--ghost {
	background: transparent;
	color: var(--sp-botol);
	border: 1.5px solid var(--sp-line);
}

/* Payment panel */
.sp-pay {
	text-align: center;
	padding: 8px 0;
}

.sp-qr {
	display: inline-block;
	padding: 16px;
	background: #fff;
	border: 2px solid var(--sp-line);
	border-radius: 14px;
	margin: 12px 0;
}

.sp-qr canvas,
.sp-qr img {
	display: block;
}

.sp-countdown {
	font-size: 14px;
	font-weight: 700;
	color: var(--sp-botol);
	font-variant-numeric: tabular-nums;
}

.sp-bank {
	text-align: left;
	background: var(--sp-bg);
	border-radius: 12px;
	padding: 16px;
	margin: 12px 0;
}

.sp-bank__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px dashed var(--sp-line);
	font-size: 14px;
}

.sp-bank__row:last-child {
	border-bottom: none;
}

.sp-bank__value {
	font-weight: 700;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.sp-copy {
	background: none;
	border: 1px solid var(--sp-line);
	border-radius: 8px;
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
	color: var(--sp-botol);
	margin-left: 8px;
}

/* Status states */
.sp-status {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	font-weight: 700;
	padding: 12px;
	border-radius: 10px;
	margin-top: 12px;
}

.sp-status--waiting {
	background: rgba(212, 175, 55, 0.14);
	color: #8a6d0e;
}

.sp-status--paid {
	background: rgba(0, 66, 37, 0.1);
	color: var(--sp-botol);
}

.sp-status--expired {
	background: #fbeaea;
	color: #c0392b;
}

.sp-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 66, 37, 0.2);
	border-top-color: var(--sp-botol);
	border-radius: 50%;
	animation: sp-spin 0.7s linear infinite;
}

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

/* Grid */
.sp-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(var(--sp-cols, 3), 1fr);
}

@media (max-width: 900px) {
	.sp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.sp-grid {
		grid-template-columns: 1fr;
	}
}

/* Tables (dashboard) */
.sp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.sp-table th,
.sp-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid var(--sp-line);
}

.sp-table th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--sp-muted);
}

.sp-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.sp-pill--paid {
	background: rgba(0, 66, 37, 0.1);
	color: var(--sp-botol);
}

.sp-pill--waiting_payment,
.sp-pill--pending {
	background: rgba(212, 175, 55, 0.16);
	color: #8a6d0e;
}

.sp-pill--expired,
.sp-pill--cancelled,
.sp-pill--failed {
	background: #fbeaea;
	color: #c0392b;
}

/* Stats */
.sp-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.sp-stat {
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	padding: 16px;
}

.sp-stat__label {
	font-size: 12px;
	color: var(--sp-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sp-stat__value {
	font-size: 22px;
	font-weight: 800;
	color: var(--sp-botol);
	margin-top: 4px;
}

.sp-notice {
	padding: 16px;
	background: var(--sp-bg);
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	text-align: center;
	color: var(--sp-muted);
	max-width: 480px;
	margin: 0 auto;
}

.sp-ref-box {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.sp-ref-box .sp-input {
	font-family: ui-monospace, monospace;
	font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
	.sp-spinner {
		animation: none;
	}
	.sp-btn:active:not(:disabled) {
		transform: none;
	}
}

/* Order form page */
.sp-order-head {
	margin-bottom: 16px;
}

.sp-order-back {
	display: inline-block;
	margin-bottom: 8px;
	color: #64748b;
	text-decoration: none;
	font-size: 14px;
}

.sp-order-back:hover {
	color: var(--sp-botol);
}

.sp-lp-cta-wrap {
	margin-top: 24px;
}

.sp-lp-cta--block {
	display: block;
	text-align: center;
	width: 100%;
}

/* Success / thank-you page */
.sp-success {
	text-align: center;
	padding: 40px 24px;
	max-width: 480px;
	margin: 0 auto;
}

.sp-success__icon {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 44px;
	margin: 0 auto 20px;
}

.sp-success__icon--ok {
	background: #e7f6ec;
	color: #1a9e4b;
}

.sp-success__icon--wait {
	background: #fff5e6;
	color: #d4820a;
}

.sp-success__title {
	font-size: 24px;
	font-weight: 800;
	color: #1f2937;
	margin: 0 0 8px;
}

.sp-success__sub {
	color: #64748b;
	font-size: 15px;
	margin: 0 0 24px;
}

.sp-success__invoice {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #f8fafc;
	border: 1px solid var(--sp-line);
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 24px;
}

.sp-success__invoice span {
	font-size: 12px;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sp-success__invoice strong {
	font-size: 18px;
	color: #1f2937;
}

/* Unique-code transfer note */
.sp-unique-note {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 12px 14px;
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #92400e;
}
.sp-unique-note strong { display: block; margin-bottom: 2px; }

/* Payment confirmation box */
.sp-confirm {
	margin-top: 18px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
}
.sp-confirm__title { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.sp-confirm__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-confirm__file { margin-top: 10px; }
.sp-confirm__wa {
	display: inline-flex; align-items: center; gap: 6px;
	background: #25D366; color: #fff; text-decoration: none;
	padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
}
.sp-confirm__note { font-size: 12px; color: #64748b; margin-top: 8px; }

/* Affiliate invitation block on product landing pages */
.sp-aff-invite {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0 4px;
	padding: 16px 18px;
	background: linear-gradient(135deg, rgba(212,175,55,.10), rgba(0,66,37,.06));
	border: 1px solid rgba(212,175,55,.35);
	border-radius: 16px;
}
.sp-aff-invite__icon {
	flex: 0 0 auto;
	font-size: 26px;
	color: var(--sp-emas, #d4af37);
	line-height: 1;
}
.sp-aff-invite__body { flex: 1; min-width: 0; }
.sp-aff-invite__title {
	font-weight: 800;
	font-size: 15px;
	color: var(--sp-botol, #004225);
	margin-bottom: 2px;
}
.sp-aff-invite__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #374151;
}
.sp-aff-invite__btn {
	flex: 0 0 auto;
	display: inline-block;
	background: var(--sp-botol, #004225);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 10px;
	white-space: nowrap;
	transition: transform .12s, box-shadow .12s;
}
.sp-aff-invite__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0,66,37,.22);
}
@media (max-width: 480px) {
	.sp-aff-invite { flex-direction: column; text-align: center; }
	.sp-aff-invite__btn { width: 100%; text-align: center; }
}

/* ---- Product reviews / testimonials (marketplace style) ---- */
.sp-reviews { margin: 26px 0 8px; }
.sp-reviews-summary {
	display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
	background: #fff; border: 1px solid #e3ebe6; border-radius: 16px;
	padding: 20px 22px; margin-bottom: 18px;
}
.sp-reviews-summary__score { text-align: center; min-width: 130px; }
.sp-reviews-summary__num { font-size: 40px; font-weight: 800; color: #004225; line-height: 1; }
.sp-reviews-summary__num span { font-size: 18px; color: #94a3b8; font-weight: 600; }
.sp-reviews-summary__count { color: #64748b; font-size: 13px; margin-top: 6px; }
.sp-reviews-summary__bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 5px; }
.sp-reviews-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64748b; }
.sp-reviews-bar__label { width: 26px; color: #f59e0b; font-weight: 600; white-space: nowrap; }
.sp-reviews-bar__track { flex: 1; height: 8px; background: #eef2f0; border-radius: 999px; overflow: hidden; }
.sp-reviews-bar__fill { display: block; height: 100%; background: #f59e0b; border-radius: 999px; }
.sp-reviews-bar__n { width: 28px; text-align: right; }
.sp-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.sp-review { background: #fff; border: 1px solid #e3ebe6; border-radius: 14px; padding: 16px 18px; }
.sp-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sp-review__avatar {
	width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, #004225, #0b6b46); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 16px;
}
.sp-review__name { font-weight: 700; font-size: 14px; color: #0f172a; }
.sp-review__date { margin-left: auto; color: #94a3b8; font-size: 12px; white-space: nowrap; }
.sp-review__title { font-weight: 700; font-size: 14px; color: #0f172a; margin: 2px 0 4px; }
.sp-review__body { color: #374151; font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 480px) {
	.sp-reviews-summary { gap: 16px; }
	.sp-review__date { margin-left: 0; }
}

/* Single-image and hero image match the slider footprint */
.sp-lp-img{display:block;width:100%;max-width:560px;margin:0 auto;aspect-ratio:16/9;object-fit:cover;border-radius:16px}
