/* ==========================================================================
   Direct checkout — Complete Your Order
   ========================================================================== */

.pb-direct {
	--pb-direct-accent: #f97316;
	--pb-direct-blue: var(--pb-action-blue, #2563eb);
	--pb-direct-green: #16a34a;
	margin: 1.25rem 0 0;
	padding: 1.75rem 1.25rem 2rem;
	border-radius: 16px;
	background:
		radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.04), transparent 42%),
		radial-gradient(circle at 88% 70%, rgba(22, 163, 74, 0.04), transparent 40%),
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 10px,
			rgba(15, 23, 42, 0.015) 10px,
			rgba(15, 23, 42, 0.015) 11px
		),
		#f3f4f6;
	border: 1px solid #e5e7eb;
}
.pb-direct__intro {
	text-align: center;
	margin: 0 0 1.35rem;
}
.pb-direct__title {
	margin: 0 0 0.35rem;
	font-size: 1.55rem;
	font-weight: 800;
	color: #0f2744;
	letter-spacing: -0.02em;
}
.pb-direct__subtitle {
	margin: 0;
	font-size: 0.9rem;
	color: #6b7280;
}
.pb-direct__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
	gap: 1.25rem;
	align-items: start;
}
.pb-direct__main {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.pb-direct__card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 1.15rem 1.2rem 1.25rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.pb-direct__card-title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 800;
	color: #111827;
}
.pb-direct__card-ico {
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.pb-direct__card-ico .pb-icon,
.pb-direct__card-ico .pb-icon svg {
	width: 1rem;
	height: 1rem;
}
.pb-direct__card-ico--user {
	background: #dbeafe;
	color: var(--pb-direct-blue);
}
.pb-direct__card-ico--ship {
	background: #dcfce7;
	color: var(--pb-direct-green);
}
.pb-direct__card-ico--pay {
	background: #ede9fe;
	color: #7c3aed;
}
.pb-direct__field {
	margin: 0 0 0.95rem;
}
.pb-direct__field:last-child { margin-bottom: 0; }
.pb-direct__field label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #374151;
}
.pb-direct__field .req { color: #ef4444; }
.pb-direct__field input[type="text"],
.pb-direct__field input[type="tel"],
.pb-direct__field textarea,
.pb-direct__coupon input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	font: inherit;
	font-size: 0.9rem;
	color: #111827;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pb-direct__field input:focus,
.pb-direct__field textarea:focus,
.pb-direct__coupon input:focus {
	outline: none;
	border-color: var(--pb-direct-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pb-direct__field textarea {
	resize: vertical;
	min-height: 5.5rem;
}
.pb-direct__phone {
	display: flex;
	align-items: stretch;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.pb-direct__phone:focus-within {
	border-color: var(--pb-direct-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pb-direct__phone-prefix {
	display: grid;
	place-items: center;
	padding: 0 0.75rem;
	background: #f3f4f6;
	border-right: 1px solid #e5e7eb;
	font-weight: 750;
	font-size: 0.875rem;
	color: #4b5563;
	white-space: nowrap;
}
.pb-direct__phone input {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	flex: 1;
}
.pb-direct__hint {
	margin: 0.35rem 0 0;
	font-size: 0.72rem;
	color: #9ca3af;
}
.pb-direct__ship {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}
.pb-direct__pay {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.pb-direct__choice {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem 0.95rem;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pb-direct__choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pb-direct__choice-radio {
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 999px;
	border: 2px solid #d1d5db;
	flex-shrink: 0;
	position: relative;
	background: #fff;
}
.pb-direct__choice.is-selected {
	border-color: var(--pb-direct-accent);
	background: #fff7ed;
	box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.15);
}
.pb-direct__choice.is-selected .pb-direct__choice-radio {
	border-color: var(--pb-direct-accent);
}
.pb-direct__choice.is-selected .pb-direct__choice-radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 999px;
	background: var(--pb-direct-accent);
}
.pb-direct__choice.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.pb-direct__choice-label {
	font-weight: 750;
	font-size: 0.9rem;
	color: #111827;
	flex: 1;
}
.pb-direct__choice-price {
	font-weight: 800;
	font-size: 0.95rem;
	color: #0f2744;
}
.pb-direct__choice--stack .pb-direct__choice-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
}
.pb-direct__choice-meta {
	color: var(--pb-direct-blue);
	display: grid;
	place-items: center;
}
.pb-direct__choice-meta .pb-icon { width: 1.15rem; height: 1.15rem; }
.pb-direct__ssl-badge,
.erdokan-pay-badge {
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	background: linear-gradient(135deg, #1e3a8a, #2563eb);
	color: #fff;
	display: inline-block;
	line-height: 1.2;
}
.erdokan-pay-badge--bkash {
	background: linear-gradient(135deg, #c2185b, #e2136e);
}
.erdokan-pay-badge--ssl {
	background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.pb-direct__pay-info {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-top: 0.85rem;
	padding: 0.8rem 0.9rem;
	border-radius: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #1e3a5f;
}
.pb-direct__pay-info-ico {
	color: var(--pb-direct-green);
	flex-shrink: 0;
	margin-top: 0.1rem;
}
.pb-direct__pay-info-ico .pb-icon { width: 1.1rem; height: 1.1rem; }

.pb-direct__aside {
	position: sticky;
	top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.pb-direct__summary-title {
	margin: 0 0 0.95rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f2744;
}
.pb-direct__line {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.7rem;
	font-size: 0.875rem;
	color: #6b7280;
}
.pb-direct__line strong {
	color: #111827;
	font-weight: 750;
	text-align: right;
}
.pb-direct__product-name {
	max-width: 62%;
	line-height: 1.35;
}
.pb-direct__line--qty {
	align-items: center;
}
.pb-direct__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.pb-direct__qty-btn {
	width: 2rem;
	height: 2rem;
	border: 0;
	background: #f9fafb;
	color: #374151;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}
.pb-direct__qty-btn:hover { background: #f3f4f6; }
.pb-direct__qty input {
	width: 2.4rem;
	height: 2rem;
	border: 0;
	border-left: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
	text-align: center;
	font: inherit;
	font-weight: 750;
	font-size: 0.875rem;
	-moz-appearance: textfield;
}
.pb-direct__qty input::-webkit-outer-spin-button,
.pb-direct__qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.pb-direct__coupon {
	display: flex;
	gap: 0.45rem;
	margin: 0.35rem 0 0.85rem;
}
.pb-direct__coupon input { flex: 1; min-width: 0; }
.pb-direct__coupon-btn {
	flex-shrink: 0;
	border: 0;
	border-radius: 10px;
	padding: 0 0.95rem;
	background: #14b8a6;
	color: #fff;
	font: inherit;
	font-weight: 750;
	font-size: 0.85rem;
	cursor: pointer;
}
.pb-direct__coupon-btn:hover { filter: brightness(0.95); }
.pb-direct__coupon-msg {
	margin: -0.45rem 0 0.65rem;
	font-size: 0.75rem;
	font-weight: 650;
}
.pb-direct__coupon-msg.is-ok { color: var(--pb-direct-green); }
.pb-direct__coupon-msg.is-err { color: #dc2626; }
.pb-direct__line--total {
	padding-top: 0.55rem;
	border-top: 1px solid #e5e7eb;
	margin-top: 0.25rem;
	font-size: 0.95rem;
}
.pb-direct__line--total strong {
	font-size: 1.05rem;
	font-weight: 800;
}
.pb-direct__line--paynow strong { color: var(--pb-direct-blue); }
.pb-direct__line--due strong {
	color: var(--pb-direct-green);
	font-weight: 800;
}
.pb-direct__agree {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #4b5563;
	cursor: pointer;
}
.pb-direct__agree input {
	margin-top: 0.15rem;
	accent-color: var(--pb-direct-blue);
}
.pb-direct__agree a {
	color: var(--pb-direct-blue);
	font-weight: 700;
	text-decoration: none;
}
.pb-direct__agree a:hover { text-decoration: underline; }
.pb-direct__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 0.95rem 1.15rem;
	background: var(--pb-direct-blue);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
	transition: filter 0.15s ease, transform 0.15s ease;
}
.pb-direct__submit:hover { filter: brightness(1.05); }
.pb-direct__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}
.pb-direct__submit .pb-icon {
	width: 1.15rem;
	height: 1.15rem;
}
.pb-direct__status {
	margin: 0;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 650;
	text-align: center;
}
.pb-direct__status.is-err {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}
.pb-direct__status.is-ok {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}
.pb-direct__field.is-invalid input,
.pb-direct__field.is-invalid textarea,
.pb-direct__phone.is-invalid {
	border-color: #ef4444 !important;
}

@media (max-width: 960px) {
	.pb-direct__layout {
		grid-template-columns: 1fr;
	}
	.pb-direct__aside {
		position: static;
	}
}
@media (max-width: 640px) {
	.pb-direct {
		padding: 1.15rem 0.75rem 1.35rem;
		border-radius: 12px;
	}
	.pb-direct__title { font-size: 1.25rem; }
	.pb-direct__ship { grid-template-columns: 1fr; }
	.pb-direct__card { padding: 1rem; }
}
