/**
 * SliceWP Affiliate Promotions & Payments - Frontend CSS
 */

/* Navigation Icons & Link Enhancements matching native SliceWP */
.slicewp-nav-tab a svg.h-6.w-6,
.slicewp-nav-tab[data-slicewp-tab="promotional_materials"] a svg,
.slicewp-pp-nav-icon {
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.slicewp-nav-tab-promotional_materials a,
.slicewp-nav-tab[data-slicewp-tab="promotional_materials"] a,
.slicewp-nav-tab-payment_settings a {
	display: inline-flex;
	align-items: center;
}

.slicewp-pp-promotions-wrapper,
.slicewp-pp-payments-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1e293b;
	margin: 20px 0;
	box-sizing: border-box;
}

.slicewp-pp-promotions-wrapper *,
.slicewp-pp-payments-wrapper * {
	box-sizing: border-box;
}

/* ==========================================================================
   Hero Card
   ========================================================================== */
.slicewp-pp-hero-card {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
	color: #ffffff;
	border-radius: 14px;
	padding: 32px 28px;
	margin-bottom: 25px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

.slicewp-pp-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 14px;
}

.slicewp-pp-hero-badge svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

.slicewp-pp-hero-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 10px 0;
	color: #ffffff;
}

.slicewp-pp-hero-desc {
	font-size: 15px;
	line-height: 1.6;
	color: #cbd5e1;
	margin: 0 0 22px 0;
	max-width: 720px;
}

.slicewp-pp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.slicewp-pp-hero-meta {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.slicewp-pp-referral-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0, 0, 0, 0.25);
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	flex-wrap: wrap;
}

.slicewp-pp-referral-chip .chip-label {
	color: #94a3b8;
	font-weight: 500;
}

.slicewp-pp-referral-chip .chip-url {
	color: #38bdf8;
	font-family: monospace;
	word-break: break-all;
	background: transparent;
	padding: 0;
}

.slicewp-pp-chip-copy {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: none;
	padding: 4px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	margin-left: auto;
	transition: background 0.15s ease;
}

.slicewp-pp-chip-copy:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.slicewp-pp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	line-height: 1;
}

.slicewp-pp-btn-primary {
	background: #2563eb;
	color: #ffffff !important;
	border-color: #2563eb;
}

.slicewp-pp-btn-primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.slicewp-pp-btn-outline {
	background: transparent;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.3);
}

.slicewp-pp-btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
}

.slicewp-pp-external-icon {
	font-size: 16px;
	margin-left: 2px;
}

/* ==========================================================================
   Google Drive Embedded iFrame Explorer
   ========================================================================== */
.slicewp-pp-iframe-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 25px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

.slicewp-pp-iframe-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	flex-wrap: wrap;
	gap: 12px;
}

.toolbar-title-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.drive-brand-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.toolbar-title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 2px 0;
}

.toolbar-subtitle {
	font-size: 12px;
	color: #64748b;
}

.toolbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.slicewp-pp-view-toggle {
	display: inline-flex;
	background: #e2e8f0;
	border-radius: 6px;
	padding: 2px;
	gap: 2px;
}

.view-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.view-btn:hover {
	color: #0f172a;
}

.view-btn.is-active {
	background: #ffffff;
	color: #1e40af;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.toolbar-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
}

.toolbar-btn:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
}

.toolbar-btn-ext {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

.toolbar-btn-ext:hover {
	background: #dbeafe;
	border-color: #93c5fd;
	color: #1e40af;
}

.slicewp-pp-iframe-wrapper {
	position: relative;
	width: 100%;
	background: #ffffff;
}

.slicewp-pp-iframe-loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.95);
	z-index: 2;
	transition: opacity 0.3s ease;
}

.slicewp-pp-iframe-loader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.loader-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e2e8f0;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: slicewp-spin 0.8s linear infinite;
	margin-bottom: 12px;
}

.slicewp-pp-iframe-loader p {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

.slicewp-pp-drive-iframe {
	display: block;
	width: 100%;
	border: 0;
}

.slicewp-pp-iframe-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	font-size: 12px;
	color: #64748b;
}

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

/* ==========================================================================
   Asset Library Grid
   ========================================================================== */
.slicewp-pp-assets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-bottom: 30px;
}

.slicewp-pp-asset-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slicewp-pp-asset-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.slicewp-pp-asset-box .asset-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.slicewp-pp-asset-box h3 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.slicewp-pp-asset-box p {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 16px 0;
	flex-grow: 1;
}

.slicewp-pp-asset-box .asset-link {
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
}

.slicewp-pp-asset-box .asset-link:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Swipe Copy Container
   ========================================================================== */
.slicewp-pp-swipe-container {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 25px;
}

.slicewp-pp-section-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.slicewp-pp-section-header .description {
	color: #64748b;
	font-size: 14px;
	margin: 0 0 20px 0;
}

.slicewp-pp-swipe-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.slicewp-pp-swipe-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.swipe-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
}

.swipe-title {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.slicewp-pp-btn-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	cursor: pointer;
	transition: all 0.15s ease;
}

.slicewp-pp-btn-copy:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

.slicewp-pp-btn-copy.copied {
	background: #10b981;
	color: #ffffff;
	border-color: #10b981;
}

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

.swipe-text {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	color: #1e293b;
	white-space: pre-wrap;
	word-wrap: break-word;
	margin: 0;
	background: transparent;
	border: none;
	padding: 0;
}

/* ==========================================================================
   Payment Tab Styles
   ========================================================================== */
.slicewp-pp-balance-card {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px 26px;
	margin-bottom: 20px;
}

.balance-item {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.balance-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
}

.balance-value {
	font-size: 28px;
	font-weight: 800;
	color: #15803d;
	line-height: 1;
}

.balance-threshold {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.slicewp-pp-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	width: fit-content;
}

.badge-eligible {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.badge-pending {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
}

.badge-processing {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.badge-declined {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.badge-accumulating {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.slicewp-pp-btn-withdraw {
	background: #16a34a;
	color: #ffffff;
	border: none;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.15s ease, transform 0.1s ease;
}

.slicewp-pp-btn-withdraw:hover {
	background: #15803d;
	color: #ffffff;
	transform: translateY(-1px);
}

.slicewp-pp-method-pill {
	display: inline-block;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
}

/* Withdrawal Modal Styles */
.slicewp-pp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 16px;
}

.slicewp-pp-modal-dialog {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
	width: 100%;
	max-width: 480px;
	overflow: hidden;
	animation: slicewp-pp-modal-pop 0.2s ease-out;
}

@keyframes slicewp-pp-modal-pop {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.slicewp-pp-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.slicewp-pp-modal-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.slicewp-pp-modal-close {
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
}

.slicewp-pp-modal-close:hover {
	color: #0f172a;
}

.slicewp-pp-modal-body {
	padding: 22px;
}

.slicewp-pp-modal-summary {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.slicewp-pp-modal-summary .summary-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	gap: 10px;
}

.slicewp-pp-modal-summary .line-label {
	color: #64748b;
}

.slicewp-pp-modal-summary .line-val {
	font-weight: 600;
	color: #0f172a;
	text-align: right;
	word-break: break-all;
}

.slicewp-pp-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 22px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.slicewp-pp-btn-secondary {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 9px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.slicewp-pp-btn-secondary:hover {
	background: #f1f5f9;
}

.slicewp-pp-modal-feedback {
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 12px;
	border-radius: 6px;
}

.slicewp-pp-modal-feedback.is-success {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #86efac;
}

.slicewp-pp-modal-feedback.is-error {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

.slicewp-pp-notice-box {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.slicewp-pp-notice-box p {
	font-size: 14px;
	line-height: 1.5;
	color: #0369a1;
	margin: 0;
}

.slicewp-pp-form-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 28px;
}

.form-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.form-card-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 24px 0;
}

/* Method Selector Grid */
.slicewp-pp-methods-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}

.method-card {
	position: relative;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #ffffff;
	display: block;
}

.method-card:hover {
	border-color: #94a3b8;
}

.method-card.is-selected {
	border-color: #2563eb;
	background: #f8faff;
	box-shadow: 0 0 0 1px #2563eb;
}

.slicewp-pp-method-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.method-card-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.method-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
}

.method-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	display: block;
	margin-bottom: 4px;
}

.method-desc {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	display: block;
}

.method-badge {
	align-self: flex-start;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #475569;
}

.method-card.is-selected .method-badge {
	background: #dbeafe;
	color: #1e40af;
}

/* Field Panels */
.method-fields-panel {
	display: none;
	padding: 20px 0;
	border-top: 1px solid #e2e8f0;
	margin-top: 10px;
}

.method-fields-panel.is-active {
	display: block;
}

.form-field-group {
	margin-bottom: 18px;
}

.form-field-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.form-field-group .required {
	color: #dc2626;
}

.slicewp-pp-input,
.slicewp-pp-textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	color: #0f172a;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.slicewp-pp-input:focus,
.slicewp-pp-textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field-hint {
	font-size: 12px;
	color: #64748b;
	margin: 6px 0 0 0;
}

.fields-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.field-half {
	flex: 1 1 240px;
}

.slicewp-pp-security-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 12px;
	color: #166534;
	margin: 20px 0;
}

.form-submit-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.slicewp-pp-feedback-msg {
	font-size: 14px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 6px;
}

.slicewp-pp-feedback-msg.is-success {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #86efac;
}

.slicewp-pp-feedback-msg.is-error {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

/* ==========================================================================
   Full Responsive Design (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Mobile Nav Tab Improvements (<= 768px) */
@media (max-width: 768px) {
	.slicewp-pp-promotions-wrapper,
	.slicewp-pp-payments-wrapper {
		margin: 15px 0;
	}

	.slicewp-nav-tab a svg.h-6.w-6,
	.slicewp-nav-tab[data-slicewp-tab="promotional_materials"] a svg,
	.slicewp-pp-nav-icon {
		width: 18px;
		height: 18px;
		margin-right: 6px;
	}

	.slicewp-pp-iframe-toolbar {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px;
		gap: 12px;
	}

	.toolbar-title-group {
		gap: 10px;
	}

	.toolbar-title {
		font-size: 15px;
	}

	.toolbar-subtitle {
		font-size: 11.5px;
		line-height: 1.35;
	}

	.toolbar-actions {
		width: 100%;
		display: flex;
		gap: 8px;
	}

	.toolbar-actions .toolbar-btn {
		flex: 1 1 0;
		justify-content: center;
		padding: 8px 12px;
		font-size: 12.5px;
		text-align: center;
	}

	.slicewp-pp-iframe-wrapper {
		min-height: 520px;
	}

	.slicewp-pp-drive-iframe {
		height: 520px;
	}

	.slicewp-pp-assets-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
	.slicewp-pp-promotions-wrapper,
	.slicewp-pp-payments-wrapper {
		margin: 10px 0;
	}

	.slicewp-pp-iframe-card {
		border-radius: 10px;
		margin-bottom: 18px;
	}

	.slicewp-pp-iframe-toolbar {
		padding: 12px 14px;
	}

	.drive-brand-icon {
		width: 28px;
		height: 28px;
	}

	.drive-brand-icon svg {
		width: 18px;
		height: 18px;
	}

	.slicewp-pp-iframe-footer {
		padding: 10px 14px;
		font-size: 11px;
		line-height: 1.45;
	}

	.slicewp-pp-assets-grid {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 20px;
	}

	.slicewp-pp-asset-box {
		padding: 16px;
		border-radius: 10px;
	}

	.slicewp-pp-asset-box .asset-icon {
		width: 40px;
		height: 40px;
		margin-bottom: 10px;
	}

	.slicewp-pp-asset-box .asset-icon svg {
		width: 20px;
		height: 20px;
	}

	.slicewp-pp-asset-box h3 {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.slicewp-pp-asset-box p {
		font-size: 12.5px;
		margin-bottom: 0;
	}

	/* Payment form responsive */
	.slicewp-pp-balance-card {
		padding: 16px;
		flex-direction: column;
		gap: 14px;
	}

	.slicewp-pp-methods-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.slicewp-pp-form-card {
		padding: 18px 14px;
	}

	.fields-row {
		flex-direction: column;
		gap: 0;
	}

	.form-submit-row {
		flex-direction: column;
		align-items: stretch;
	}

	.form-submit-row .slicewp-pp-btn-submit {
		width: 100%;
		justify-content: center;
	}
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
	.slicewp-pp-iframe-wrapper {
		min-height: 440px;
	}

	.slicewp-pp-drive-iframe {
		height: 440px;
	}

	.toolbar-title {
		font-size: 14px;
	}

	.toolbar-subtitle {
		font-size: 11px;
	}

	.toolbar-actions .toolbar-btn {
		font-size: 12px;
		padding: 7px 8px;
	}
}

/* ==========================================================================
   Affiliate Registration Terms & Conditions Box (Clean & Modern Compact)
   ========================================================================== */
.slicewp-pp-terms-wrapper {
	font-family: inherit;
	color: #1e293b;
	margin: 24px 0 18px 0;
	width: 100%;
	display: block;
	clear: both;
	box-sizing: border-box;
}

.slicewp-pp-terms-wrapper * {
	box-sizing: border-box;
}

/* Subtle header with title and effective date */
.slicewp-pp-terms-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
	padding: 0 2px;
}

.slicewp-pp-terms-header .terms-title-text {
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.slicewp-pp-terms-header .terms-date-text {
	font-size: 11.5px;
	color: #64748b;
}

/* Clean compact scrollable container */
.slicewp-pp-terms-scrollbox {
	max-height: 200px;
	overflow-y: auto;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.55;
	color: #334155;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.slicewp-pp-terms-scrollbox:focus {
	outline: none;
	border-color: #94a3b8;
}

.slicewp-pp-terms-scrollbox.has-error {
	border-color: #ef4444;
	box-shadow: 0 0 0 1px #ef4444;
}

/* Slim scrollbar styling */
.slicewp-pp-terms-scrollbox::-webkit-scrollbar {
	width: 5px;
}

.slicewp-pp-terms-scrollbox::-webkit-scrollbar-track {
	background: transparent;
}

.slicewp-pp-terms-scrollbox::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.slicewp-pp-terms-scrollbox::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Content typography */
.slicewp-pp-term-header-note {
	font-weight: 500;
	color: #1e293b;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
}

.slicewp-pp-term-header-note p {
	margin: 0 0 4px 0;
}

.slicewp-pp-term-row {
	margin-bottom: 12px;
}

.slicewp-pp-term-row:last-child {
	margin-bottom: 0;
}

.term-row-title {
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 3px 0;
	line-height: 1.4;
}

.term-row-title .term-num {
	color: #0284c7;
	font-weight: 600;
}

.term-row-body p {
	font-size: 11.5px;
	line-height: 1.55;
	color: #475569;
	margin: 0 0 6px 0;
}

.term-row-body p:last-child {
	margin-bottom: 0;
}

.term-row-body a {
	color: #0284c7;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Agreement checkbox row */
.slicewp-pp-terms-agreement {
	margin-top: 10px;
	padding: 0 2px;
}

.terms-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: #1e293b;
	user-select: none;
}

.terms-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	cursor: pointer;
	accent-color: #0284c7;
	flex-shrink: 0;
}

.terms-feedback {
	margin-top: 6px;
	font-size: 12px;
	color: #dc2626;
}

/* Submit button gate styling when terms not agreed */
.slicewp-pp-btn-disabled {
	opacity: 0.55 !important;
	cursor: not-allowed !important;
	pointer-events: auto !important;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
	.slicewp-pp-terms-scrollbox {
		max-height: 170px;
		padding: 12px 14px;
	}

	.terms-checkbox-label {
		font-size: 12.5px;
	}
}

/* ==========================================================================
   WaterHealing Cookie Notification & Details Modal
   Compliant with Dutch Telecommunications Act Art. 11.7a(3)(b)
   ========================================================================== */
.wh-cookie-notice {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 999999;
	max-width: 440px;
	width: calc(100vw - 48px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
}

.wh-cookie-notice * {
	box-sizing: border-box;
}

.wh-cn-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px 24px 20px 24px;
	box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

.wh-cn-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	padding: 4px;
	color: #64748b;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background-color 0.15s ease;
	line-height: 1;
}

.wh-cn-close:hover,
.wh-cn-close:focus {
	color: #0f172a;
	background-color: #f1f5f9;
	outline: none;
}

.wh-cn-heading {
	margin: 0 0 8px 0;
	padding-right: 24px;
	font-size: 15.5px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.wh-cn-body p {
	margin: 0 0 6px 0;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
}

.wh-cn-body p:last-child {
	margin-bottom: 0;
}

.wh-cn-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

/* Primary OK button: Black background, white text */
.wh-cn-btn-ok {
	background-color: #000000 !important;
	color: #ffffff !important;
	border: 1px solid #000000 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	padding: 8px 22px !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	line-height: 1.4 !important;
	transition: background-color 0.15s ease, transform 0.1s ease !important;
	text-decoration: none !important;
	display: inline-block !important;
}

.wh-cn-btn-ok:hover,
.wh-cn-btn-ok:focus {
	background-color: #1f2937 !important;
	border-color: #1f2937 !important;
	color: #ffffff !important;
	outline: none;
}

/* Secondary Cookie details button: White background, black text */
.wh-cn-btn-details {
	background-color: #ffffff !important;
	color: #000000 !important;
	border: 1px solid #cbd5e1 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	padding: 8px 18px !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	line-height: 1.4 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease !important;
	text-decoration: none !important;
	display: inline-block !important;
}

.wh-cn-btn-details:hover,
.wh-cn-btn-details:focus {
	background-color: #f8fafc !important;
	border-color: #94a3b8 !important;
	color: #000000 !important;
	outline: none;
}

/* ==========================================================================
   Cookie Details Modal (Statutory Transparent Information)
   ========================================================================== */
.wh-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
}

.wh-cookie-modal * {
	box-sizing: border-box;
}

.wh-cm-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.wh-cm-dialog {
	position: relative;
	z-index: 2;
	background: #ffffff;
	max-width: 520px;
	width: 100%;
	border-radius: 14px;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 85vh;
}

.wh-cm-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #f1f5f9;
}

.wh-cm-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.wh-cm-close-btn {
	background: transparent;
	border: none;
	padding: 4px;
	color: #64748b;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background-color 0.15s ease;
	line-height: 1;
}

.wh-cm-close-btn:hover,
.wh-cm-close-btn:focus {
	color: #0f172a;
	background-color: #f1f5f9;
	outline: none;
}

.wh-cm-body {
	padding: 24px;
	overflow-y: auto;
}

.wh-cm-section {
	margin-bottom: 22px;
}

.wh-cm-section:last-child {
	margin-bottom: 0;
}

.wh-cm-section-heading {
	margin: 0 0 6px 0;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.wh-cm-section-desc {
	margin: 0 0 10px 0;
	font-size: 13px;
	line-height: 1.55;
	color: #475569;
}

.wh-cm-meta-table {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 12.5px;
	margin-top: 10px;
}

.wh-cm-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 7px 0;
	border-bottom: 1px solid #edf2f7;
	gap: 12px;
}

.wh-cm-meta-row:last-child {
	border-bottom: none;
}

.wh-cm-meta-label {
	font-weight: 600;
	color: #334155;
	flex-shrink: 0;
}

.wh-cm-meta-value {
	color: #475569;
	text-align: right;
}

.wh-cm-footer {
	padding: 16px 24px;
	border-top: 1px solid #f1f5f9;
	background-color: #f8fafc;
	display: flex;
	justify-content: flex-end;
}

/* Mobile responsive adjustments for Cookie Notice */
@media (max-width: 640px) {
	.wh-cookie-notice {
		left: 14px;
		right: 14px;
		bottom: 14px;
		width: calc(100vw - 28px);
	}

	.wh-cn-card {
		padding: 18px 18px 16px 18px;
	}

	.wh-cn-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.wh-cn-btn-ok,
	.wh-cn-btn-details {
		width: 100% !important;
		text-align: center !important;
		padding: 10px 16px !important;
	}

	.wh-cm-dialog {
		max-height: 90vh;
	}

	.wh-cm-meta-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.wh-cm-meta-value {
		text-align: left;
	}
}
