/* ==========================================================================
   PMT Checkout — multi-step subscription checkout
   Accent color is set via --pmt-accent (injected inline from WP option).
   ========================================================================== */

.pmt-checkout {
	--pmt-accent: #e31e24; /* fallback, overridden by inline style */
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1a1a1a;
	line-height: 1.5;
}

/* Page title */
.pmt-page-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 24px;
	color: #0a0a0a;
	border-bottom: 3px solid var(--pmt-accent);
	padding-bottom: 12px;
}

/* Plan summary bar (persistent on steps 2-3) */
.pmt-plan-summary {
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 32px;
}

.pmt-plan-summary-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.pmt-plan-summary-label {
	display: block;
	font-size: 13px;
	color: #888;
	margin-bottom: 2px;
}

.pmt-plan-summary-price {
	display: block;
	font-size: 14px;
	color: #444;
	margin-top: 2px;
}

#pmt-checkout .pmt-change-plan {
	color: var(--pmt-accent) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

#pmt-checkout .pmt-change-plan:hover {
	text-decoration: underline !important;
}

/* Step header */
.pmt-step-header {
	margin-bottom: 24px;
}

.pmt-step-number {
	display: block;
	font-size: 12px;
	color: var(--pmt-accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.pmt-step-header h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	color: #0a0a0a;
}

.pmt-step-subtitle {
	font-size: 14px;
	color: #666;
	margin: 6px 0 0;
}

/* Plan cards (Step 1) */
.pmt-plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.pmt-plan-card {
	position: relative;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 28px 20px;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.pmt-plan-card:hover {
	border-color: #b0b0b0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pmt-plan-card.selected {
	border-color: var(--pmt-accent);
	box-shadow: 0 0 0 1px var(--pmt-accent), 0 4px 16px color-mix(in srgb, var(--pmt-accent) 15%, transparent);
}

.pmt-plan-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--pmt-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 14px;
	border-radius: 20px;
	white-space: nowrap;
}

.pmt-plan-name {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #0a0a0a;
}

.pmt-plan-price {
	margin-bottom: 16px;
}

.pmt-price-amount {
	font-size: 32px;
	font-weight: 700;
	color: #0a0a0a;
}

.pmt-price-period {
	font-size: 13px;
	color: #888;
	margin-left: 4px;
}

.pmt-plan-features {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
}

.pmt-plan-features li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
	font-size: 13px;
	color: #444;
}

.pmt-plan-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23e31e24' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3.5-3.5a.5.5 0 11.708-.708L6.5 10.293l6.646-6.647a.5.5 0 01.708 0z'/%3E%3C/svg%3E") no-repeat center;
}

#pmt-checkout .pmt-plan-select-btn,
.pmt-checkout .pmt-plan-select-btn {
	display: block !important;
	width: 100% !important;
	padding: 10px !important;
	background: #f5f5f5 !important;
	color: #333 !important;
	border: 1px solid #ddd !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	line-height: 1.4;
}

#pmt-checkout .pmt-plan-select-btn:hover {
	background: #e8e8e8 !important;
}

#pmt-checkout .pmt-plan-card.selected .pmt-plan-select-btn {
	background: #1a1a1a !important;
	color: #fff !important;
	border-color: #1a1a1a !important;
}

/* Form fields (shared across steps) */
.pmt-section-title {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin: 28px 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--pmt-accent);
}

.pmt-section-title:first-child {
	margin-top: 0;
}

.pmt-form-row {
	margin-bottom: 20px;
}

.pmt-form-row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pmt-form-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.pmt-required {
	color: #c00;
}

.pmt-form-field select,
.pmt-form-field input[type="tel"],
.pmt-form-field input[type="text"],
.pmt-form-field input[type="email"],
.pmt-form-field input[type="password"] {
	display: block;
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #1a1a1a;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.pmt-form-field select {
	appearance: auto;
	cursor: pointer;
}

.pmt-form-field input:focus,
.pmt-form-field select:focus {
	outline: none;
	border-color: var(--pmt-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pmt-accent) 10%, transparent);
}

.pmt-form-field input.pmt-invalid {
	border-color: #c00;
	box-shadow: 0 0 0 1px #c00;
}

.pmt-field-hint {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 6px;
}

.pmt-field-error {
	font-size: 13px;
	color: #c00;
	margin-top: 4px;
}

/* Card element (Chargebee.js iframe) */
.pmt-card-element {
	padding: 14px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	min-height: 44px;
	transition: border-color 0.2s;
}

.pmt-card-element.pmt-card-focus {
	border-color: var(--pmt-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pmt-accent) 10%, transparent);
}

.pmt-card-element.pmt-card-invalid {
	border-color: #c00;
}

/* Continue button (step 2) */
#pmt-checkout .pmt-btn-continue-step {
	display: block !important;
	width: 100% !important;
	padding: 16px !important;
	background: #1a1a1a !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background 0.2s;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	box-shadow: none !important;
	line-height: 1.4;
	margin-top: 8px;
}

#pmt-checkout .pmt-btn-continue-step:hover {
	background: #333 !important;
}

/* Login hint */
.pmt-login-hint {
	text-align: center;
	font-size: 14px;
	color: #666;
	margin-top: 20px;
}

.pmt-login-hint a {
	color: var(--pmt-accent);
	font-weight: 600;
	text-decoration: none;
}

.pmt-login-hint a:hover {
	text-decoration: underline;
}

/* Order summary (step 3) */
.pmt-order-summary {
	background: #f9f9f9;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 16px 20px;
	margin: 24px 0;
}

.pmt-summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #555;
	margin-bottom: 8px;
}

.pmt-summary-total {
	font-weight: 700;
	font-size: 16px;
	color: #0a0a0a;
	border-top: 1px solid #e5e7eb;
	padding-top: 10px;
	margin-top: 4px;
	margin-bottom: 0;
}

/* Submit button (step 3) */
#pmt-checkout .pmt-submit-btn,
.pmt-checkout .pmt-submit-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
	width: 100% !important;
	padding: 16px !important;
	background: #1a1a1a !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background 0.2s;
	line-height: 1.4;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	box-shadow: none !important;
}

#pmt-checkout .pmt-submit-btn:hover:not(:disabled) {
	background: #333 !important;
	color: #fff !important;
}

#pmt-checkout .pmt-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pmt-btn-spinner svg {
	display: block;
}

.pmt-secure-notice {
	text-align: center;
	font-size: 13px;
	color: #888;
	margin-top: 16px;
}

/* Back link */
#pmt-checkout .pmt-back-link {
	display: block;
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	font-weight: 600;
	color: #0a0a0a !important;
	text-decoration: underline !important;
}

#pmt-checkout .pmt-back-link:hover {
	color: var(--pmt-accent) !important;
}

/* Success */
.pmt-success {
	text-align: center;
	padding: 60px 20px;
	animation: pmt-fadeIn 0.4s ease-out;
}

@keyframes pmt-fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.pmt-success-icon {
	margin-bottom: 24px;
}

.pmt-success h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #0a0a0a;
}

.pmt-success p {
	font-size: 16px;
	color: #555;
	margin: 0 0 32px;
}

#pmt-checkout .pmt-btn-primary {
	display: inline-block !important;
	padding: 14px 32px !important;
	background: #1a1a1a !important;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 4px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	border: none !important;
	transition: background 0.2s;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

#pmt-checkout .pmt-btn-primary:hover {
	background: #333 !important;
	color: #fff !important;
}

/* Error */
.pmt-error-message {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 20px;
	text-align: center;
	margin-top: 20px;
}

.pmt-error-message p {
	color: #b91c1c;
	margin: 0 0 16px;
	font-size: 15px;
}

#pmt-checkout .pmt-btn-retry {
	padding: 10px 24px !important;
	background: #fff !important;
	color: #b91c1c !important;
	border: 1px solid #fecaca !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s;
	text-transform: none !important;
	box-shadow: none !important;
}

#pmt-checkout .pmt-btn-retry:hover {
	background: #fef2f2 !important;
}

/* Checkbox label (billing same as shipping, factura toggle) */
.pmt-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
}

.pmt-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--pmt-accent);
	cursor: pointer;
	flex-shrink: 0;
}

/* Factura Fiscal section */
.pmt-factura-section {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
	margin: 24px 0;
}

/* Select invalid state */
.pmt-form-field select.pmt-invalid {
	border-color: #c00;
	box-shadow: 0 0 0 1px #c00;
}

/* Responsive */
@media (max-width: 640px) {
	.pmt-checkout {
		padding: 24px 16px 40px;
	}

	.pmt-page-title {
		font-size: 22px;
	}

	.pmt-plans {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.pmt-plan-summary-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.pmt-price-amount {
		font-size: 26px;
	}
}
