/**
 * DAF Marketplace — Checkout Page Styles
 * Location: /wp-content/plugins/daf-marketplace/assets/front/checkout.css
 *
 * Purpose:
 * - Styles the plugin-owned checkout page.
 * - Keeps checkout layout lightweight, premium, and digital-product focused.
 * - Provides stable reusable UI hooks for the checkout template.
 *
 * Related:
 * - /wp-content/plugins/daf-marketplace/templates/market/checkout-page.php
 * - /wp-content/plugins/daf-marketplace/assets/front/cart.css
 * - /wp-content/plugins/daf-marketplace/assets/front/front.css
 * - /wp-content/plugins/daf-marketplace/assets/front/front.js
 *
 * Notes:
 * - Keep this file compact and update-safe.
 * - Do not add unrelated global theme styles here.
 */

.dafmp-checkout-page {
	padding: 34px 0 64px;
	background: #f8fafc;
}

.dafmp-checkout-page__inner {
	width: min(100%, 1280px);
	margin: 0 auto;
	padding: 0 20px;
}

.dafmp-checkout-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: 28px;
	align-items: start;
}

.dafmp-checkout-page__content,
.dafmp-checkout-page__sidebar {
	min-width: 0;
}

.dafmp-checkout-notice {
	margin: 0 0 22px;
	padding: 14px 16px;
	border: 1px solid #bfdbfe;
	border-radius: 16px;
	background: #eff6ff;
	color: #1e40af;
	font-size: 14px;
	line-height: 1.7;
}

.dafmp-checkout-hero {
	margin: 0 0 28px;
	padding: 28px;
	border: 1px solid #e2e8f0;
	border-radius: 28px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dafmp-checkout-hero__content {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 22px;
}

.dafmp-checkout-hero__text {
	max-width: 760px;
}

.dafmp-page__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: #2563eb;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dafmp-page__title {
	margin: 0 0 12px;
	color: #0f172a;
	font-size: 48px;
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.dafmp-page__description {
	margin: 0;
	max-width: 720px;
	color: #64748b;
	font-size: 16px;
	line-height: 1.8;
}

.dafmp-checkout-hero__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 14px;
	min-width: 200px;
}

.dafmp-checkout-hero__badge {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 152px;
	padding: 16px 18px;
	border: 1px solid #dbeafe;
	border-radius: 18px;
	background: #eff6ff;
	text-align: left;
}

.dafmp-checkout-hero__badge-label {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.dafmp-checkout-hero__badge-value {
	color: #0f172a;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 800;
}

.dafmp-checkout-hero__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.dafmp-checkout-hero__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #ffffff;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
}

.dafmp-checkout-hero__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.dafmp-checkout-hero__trust-item {
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #ffffff;
}

.dafmp-checkout-hero__trust-item strong {
	display: block;
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 800;
}

.dafmp-checkout-hero__trust-item span {
	display: block;
	color: #64748b;
	font-size: 13px;
	line-height: 1.7;
}

.dafmp-checkout-empty {
	padding: 56px 28px;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	background: #ffffff;
	text-align: center;
}

.dafmp-checkout-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	margin: 0 auto 18px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	font-size: 30px;
}

.dafmp-checkout-empty__title {
	margin: 0 0 10px;
	color: #0f172a;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 900;
}

.dafmp-checkout-empty__text {
	margin: 0 auto 22px;
	max-width: 560px;
	color: #64748b;
	font-size: 15px;
	line-height: 1.8;
}

.dafmp-checkout-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dafmp-checkout-card {
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	background: #ffffff;
}

.dafmp-checkout-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 20px;
}

.dafmp-checkout-card__head {
	max-width: 760px;
}

.dafmp-checkout-card__eyebrow {
	margin: 0 0 8px;
	color: #f97316;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dafmp-checkout-card__title {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 28px;
	line-height: 1.18;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.dafmp-checkout-card__text {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.8;
}

.dafmp-checkout-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.dafmp-checkout-card__meta-item {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
}

.dafmp-checkout-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.dafmp-checkout-fields + .dafmp-checkout-fields {
	margin-top: 16px;
}

.dafmp-checkout-fields--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dafmp-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dafmp-field__label {
	color: #0f172a;
	font-size: 14px;
	font-weight: 800;
}

.dafmp-field__input,
.dafmp-field__textarea {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid #cbd5e1;
	border-radius: 16px;
	background: #ffffff;
	color: #0f172a;
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dafmp-field__input::placeholder,
.dafmp-field__textarea::placeholder {
	color: #94a3b8;
}

.dafmp-field__textarea {
	min-height: 132px;
	padding: 14px 16px;
	resize: vertical;
}

.dafmp-field__input:hover,
.dafmp-field__textarea:hover {
	border-color: #94a3b8;
}

.dafmp-field__input:focus,
.dafmp-field__textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
	background: #ffffff;
}

.dafmp-payment-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dafmp-payment-option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dafmp-payment-option:hover {
	border-color: #cbd5e1;
	background: #ffffff;
}

.dafmp-payment-option input {
	margin: 4px 0 0;
	accent-color: #2563eb;
}

.dafmp-payment-option__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.dafmp-payment-option__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.dafmp-payment-option__title {
	color: #0f172a;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
}

.dafmp-payment-option__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	background: #dcfce7;
	color: #166534;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.dafmp-payment-option__text {
	color: #64748b;
	font-size: 13px;
	line-height: 1.7;
}

.dafmp-payment-option:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.dafmp-checkout-guides {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.dafmp-checkout-guide {
	padding: 18px;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	background: #f8fafc;
}

.dafmp-checkout-guide strong {
	display: block;
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 800;
}

.dafmp-checkout-guide p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.75;
}

.dafmp-checkout-submit {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dafmp-checkout-submit__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid #d1fae5;
	border-radius: 24px;
	background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.dafmp-checkout-submit__text {
	max-width: 620px;
}

.dafmp-checkout-submit__title {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 900;
}

.dafmp-checkout-submit__note {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.8;
}

.dafmp-checkout-submit__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 240px;
}

.dafmp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 16px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.dafmp-button:hover {
	transform: translateY(-1px);
}

.dafmp-button--full {
	width: 100%;
}

.dafmp-button--primary {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}

.dafmp-button--primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
}

.dafmp-button--ghost {
	background: #ffffff;
	border-color: #e2e8f0;
	color: #0f172a;
}

.dafmp-button--ghost:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
}

.dafmp-checkout-summary {
	position: sticky;
	top: 24px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	background: #ffffff;
}

.dafmp-checkout-summary__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 0 0 18px;
	margin: 0 0 18px;
	border-bottom: 1px solid #e2e8f0;
}

.dafmp-checkout-summary__eyebrow {
	margin: 0 0 6px;
	color: #2563eb;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dafmp-checkout-summary__title {
	margin: 0;
	color: #0f172a;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 900;
}

.dafmp-checkout-summary__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	color: #334155;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.dafmp-checkout-summary__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0 0 18px;
	margin: 0 0 18px;
	border-bottom: 1px solid #e2e8f0;
}

.dafmp-checkout-summary__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.dafmp-checkout-summary__item-main {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.dafmp-checkout-summary__item-title {
	color: #0f172a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.6;
}

.dafmp-checkout-summary__item-meta {
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
}

.dafmp-checkout-summary__item-selection {
	color: #334155;
	font-size: 12px;
	line-height: 1.6;
}

.dafmp-checkout-summary__item-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

.dafmp-checkout-summary__item-chip {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 8px;
	border: 1px solid #dbe4ee;
	border-radius: 999px;
	background: #f8fafc;
	color: #334155;
	font-size: 11px;
	line-height: 1;
	font-weight: 800;
	white-space: nowrap;
}

.dafmp-checkout-summary__item-chip--license {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

.dafmp-checkout-summary__item-chip--support {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.dafmp-checkout-summary__item-price {
	color: #0f172a;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.dafmp-checkout-summary__empty {
	margin: 0 0 18px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.7;
}

.dafmp-checkout-summary__rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 0 18px;
	margin: 0 0 18px;
	border-bottom: 1px solid #e2e8f0;
}

.dafmp-checkout-summary__row,
.dafmp-checkout-summary__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.dafmp-checkout-summary__row span {
	color: #64748b;
	font-size: 14px;
}

.dafmp-checkout-summary__row strong {
	color: #0f172a;
	font-size: 14px;
	font-weight: 800;
}

.dafmp-checkout-summary__total {
	padding: 0 0 18px;
	margin: 0 0 18px;
	border-bottom: 1px solid #e2e8f0;
}

.dafmp-checkout-summary__total span {
	color: #0f172a;
	font-size: 15px;
	font-weight: 800;
}

.dafmp-checkout-summary__total strong {
	color: #0f172a;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 900;
}

.dafmp-checkout-summary__trust {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
}

.dafmp-checkout-summary__trust-item {
	padding: 14px 15px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #f8fafc;
}

.dafmp-checkout-summary__trust-item strong {
	display: block;
	margin: 0 0 6px;
	color: #0f172a;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 800;
}

.dafmp-checkout-summary__trust-item span {
	display: block;
	color: #64748b;
	font-size: 12px;
	line-height: 1.7;
}

.dafmp-checkout-summary__note {
	padding: 15px 16px;
	border-radius: 16px;
	background: #f8fafc;
}

.dafmp-checkout-summary__note p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.75;
}

@media (max-width: 1180px) {
	.dafmp-checkout-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.dafmp-checkout-summary {
		position: static;
	}
}

@media (max-width: 960px) {
	.dafmp-page__title {
		font-size: 40px;
	}

	.dafmp-checkout-hero__content,
	.dafmp-checkout-card__top,
	.dafmp-checkout-submit__panel {
		flex-direction: column;
		align-items: flex-start;
	}

	.dafmp-checkout-hero__meta {
		align-items: flex-start;
	}

	.dafmp-checkout-hero__chips {
		justify-content: flex-start;
	}

	.dafmp-checkout-hero__trust,
	.dafmp-checkout-guides {
		grid-template-columns: minmax(0, 1fr);
	}

	.dafmp-checkout-submit__actions {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 820px) {
	.dafmp-checkout-page {
		padding: 24px 0 48px;
	}

	.dafmp-checkout-page__inner {
		padding: 0 16px;
	}

	.dafmp-checkout-hero,
	.dafmp-checkout-card,
	.dafmp-checkout-summary,
	.dafmp-checkout-empty {
		padding: 20px;
		border-radius: 22px;
	}

	.dafmp-page__title {
		font-size: 34px;
	}

	.dafmp-checkout-card__title,
	.dafmp-checkout-summary__title {
		font-size: 24px;
	}

	.dafmp-checkout-fields--two {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.dafmp-checkout-hero {
		padding: 18px;
	}

	.dafmp-page__title {
		font-size: 30px;
	}

	.dafmp-page__description {
		font-size: 15px;
	}

	.dafmp-checkout-hero__badge {
		width: 100%;
	}

	.dafmp-checkout-hero__chips {
		gap: 8px;
	}

	.dafmp-checkout-card,
	.dafmp-checkout-summary,
	.dafmp-checkout-empty {
		padding: 18px;
		border-radius: 18px;
	}

	.dafmp-checkout-card__title,
	.dafmp-checkout-summary__title,
	.dafmp-checkout-submit__title {
		font-size: 22px;
	}

	.dafmp-payment-option__top {
		flex-direction: column;
		align-items: flex-start;
	}
}