
:root {
	--ppc-border: #d7d7d7;
	--ppc-text: #090909;
	--ppc-muted: #7c7c7c;
	--ppc-soft: #f3f3f3;
}

body.ppc-lock {
	overflow: hidden !important;
}

.ppc-buy-now-button {
	margin-left: 10px !important;
	background: var(--ppc-buy-bg, #111) !important;
	border-color: var(--ppc-buy-bg, #111) !important;
	color: var(--ppc-buy-color, #fff) !important;
}

.ppc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0,0,0,.5);
}

.ppc-overlay.is-open {
	display: flex;
}

.ppc-modal {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 24px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 25px 70px rgba(0,0,0,.28);
	overflow: hidden;
	font-family: Arial, "Noto Sans Bengali", sans-serif;
	color: var(--ppc-text);
}

.ppc-scroll {
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	padding: 16px 20px 22px;
}

.ppc-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 5;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	color: #111;
}

.ppc-title {
	margin: 0 44px 62px 18px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 800;
	text-align: left;
}

.ppc-fields {
	display: grid;
	gap: 14px;
}

.ppc-field-row {
	display: grid;
	grid-template-columns: 125px 1fr;
	align-items: center;
	gap: 10px;
}

.ppc-field-row label {
	font-size: 16px;
	font-weight: 700;
}

.ppc-field-row label span {
	color: #e90000;
}

.ppc-input-wrap {
	display: flex;
	min-width: 0;
	height: 46px;
	border: 1px solid #bfc1c4;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.ppc-icon {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	background: #e5e5e5;
	border-right: 1px solid #c8c8c8;
	font-size: 18px;
}

.ppc-input-wrap input {
	width: 100%;
	min-width: 0;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 14px !important;
	font-size: 16px !important;
	background: #fff !important;
}

.ppc-section {
	margin-top: 18px;
}

.ppc-section h3 {
	margin: 0 0 9px;
	font-size: 15px;
	font-weight: 800;
}

.ppc-options {
	border: 1px solid var(--ppc-border);
	border-radius: 6px;
	overflow: hidden;
}

.ppc-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 12px;
	font-size: 15px;
	cursor: pointer;
}

.ppc-option + .ppc-option {
	border-top: 1px solid var(--ppc-border);
}

.ppc-option-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ppc-option input {
	width: 22px;
	height: 22px;
	accent-color: #000;
}

.ppc-note-row {
	margin-top: 16px;
}

.ppc-product {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 16px 4px 9px;
	margin-top: 16px;
	border-top: 1px solid var(--ppc-border);
	border-bottom: 1px solid var(--ppc-border);
}

.ppc-product-thumb-wrap {
	position: relative;
}

.ppc-product img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	background: #eee;
}

.ppc-qty {
	position: absolute;
	top: -10px;
	right: -9px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #8b8b8b;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.ppc-product-info h4 {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 800;
}

.ppc-product-info small {
	display: block;
	margin-top: 3px;
	color: var(--ppc-muted);
	font-size: 12px;
}

.ppc-product-price {
	font-size: 15px;
	font-weight: 800;
	white-space: nowrap;
}

.ppc-summary {
	margin-top: 16px;
	border: 1px solid var(--ppc-border);
	border-radius: 6px;
	overflow: hidden;
}

.ppc-summary > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 8px;
	font-size: 15px;
}

.ppc-summary > div + div {
	border-top: 0;
}

.ppc-summary .ppc-total {
	border-top: 1px solid var(--ppc-border);
	font-size: 17px;
	font-weight: 800;
}

.ppc-confirm {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 16px;
	min-height: 50px;
	border: 0;
	background: #000;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.ppc-bag {
	font-size: 16px;
}

@media (max-width: 640px) {
	.ppc-overlay {
		padding: 2px;
		align-items: flex-start;
	}

	.ppc-modal {
		width: 100%;
		max-height: calc(100vh - 4px);
		border-radius: 10px;
	}

	.ppc-scroll {
		max-height: calc(100vh - 4px);
		padding: 14px 18px 20px;
	}

	.ppc-title {
		margin: 0 40px 62px 18px;
		font-size: 18px;
	}

	.ppc-field-row {
		grid-template-columns: 125px minmax(0, 1fr);
		gap: 10px;
	}

	.ppc-product {
		grid-template-columns: 60px minmax(0,1fr) auto;
	}

	.ppc-buy-now-button {
		margin-left: 0 !important;
		margin-top: 10px !important;
		width: 100%;
	}
}

@media (max-width: 420px) {
	.ppc-field-row {
		grid-template-columns: 115px minmax(0, 1fr);
	}

	.ppc-field-row label,
	.ppc-input-wrap input,
	.ppc-option,
	.ppc-summary > div {
		font-size: 14px !important;
	}
}


.ppc-icon svg,
.ppc-bag svg {
	width: 21px;
	height: 21px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ppc-icon {
	color: #1c2733;
}

.ppc-bag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ppc-bag svg {
	width: 18px;
	height: 18px;
	color: #fff;
}

.ppc-variation-text:empty {
	display: none;
}


.ppc-shipping-loading {
	padding: 14px 12px;
	font-size: 14px;
	color: #666;
	text-align: center;
}

.ppc-options.is-loading {
	opacity: .62;
	pointer-events: none;
}

.ppc-shipping-message {
	margin-top: 8px;
	font-size: 13px;
	color: #b00020;
}


.ppc-payment-option {
	align-items: flex-start;
}

.ppc-payment-option small {
	display: block;
	margin-top: 4px;
	color: #777;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 400;
}

.ppc-payment-option img {
	max-height: 28px;
	max-width: 90px;
	object-fit: contain;
}

.ppc-checkout-notice {
	margin-top: 14px;
	padding: 11px 12px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.45;
}

.ppc-checkout-notice.is-error {
	background: #fff0f0;
	border: 1px solid #efb4b4;
	color: #a10000;
}

.ppc-checkout-notice.is-success {
	background: #eefaf1;
	border: 1px solid #b8dfc0;
	color: #176b2c;
}

.ppc-confirm:disabled {
	opacity: .65;
	cursor: not-allowed;
}


/* Step 8 mobile architecture */
html.ppc-lock,
body.ppc-lock {
	overflow: hidden !important;
	height: 100% !important;
	overscroll-behavior: none;
}

.ppc-modal {
	display: grid !important;
	grid-template-rows: auto minmax(0,1fr) auto !important;
	overflow: hidden !important;
}

.ppc-modal-header {
	position: relative;
	flex: 0 0 auto;
	padding: 18px 54px 16px 20px;
	border-bottom: 1px solid #ececec;
	background: #fff;
	z-index: 3;
}

.ppc-modal-header .ppc-title {
	margin: 0 !important;
	text-align: center;
}

.ppc-modal-header .ppc-close {
	top: 10px;
	right: 12px;
}

.ppc-modal-body {
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 20px;
}

.ppc-modal-footer {
	position: relative;
	z-index: 4;
	padding: 11px 20px calc(11px + env(safe-area-inset-bottom));
	border-top: 1px solid #e8e8e8;
	background: #fff;
	box-shadow: 0 -8px 22px rgba(0,0,0,.06);
}

.ppc-footer-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-bottom: 9px;
	font-size: 16px;
	font-weight: 700;
}

.ppc-modal-footer .ppc-confirm {
	margin-top: 0 !important;
}

@media (max-width: 640px) {
	.ppc-overlay {
		padding: 8px !important;
		align-items: stretch !important;
	}

	.ppc-modal {
		width: 100% !important;
		height: calc(100dvh - 16px) !important;
		max-height: calc(100dvh - 16px) !important;
		border-radius: 12px !important;
	}

	.ppc-modal-header {
		padding: 17px 52px 15px 16px;
	}

	.ppc-modal-header .ppc-title {
		font-size: 18px !important;
		line-height: 1.45 !important;
	}

	.ppc-modal-body {
		padding: 20px 16px 22px;
	}

	.ppc-field-row {
		grid-template-columns: 1fr !important;
		gap: 7px !important;
	}

	.ppc-input-wrap {
		height: 56px !important;
	}

	.ppc-icon {
		flex-basis: 66px !important;
	}

	.ppc-option {
		min-height: 60px;
	}

	.ppc-modal-footer {
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	}
}


/* Step 9 visual refinement */
.ppc-overlay {
	background: rgba(28, 28, 28, .42) !important;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ppc-modal {
	width: min(540px, calc(100% - 28px)) !important;
	max-height: calc(100dvh - 32px) !important;
	border-radius: 14px !important;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .24) !important;
}

.ppc-modal-header {
	padding: 16px 54px 14px 20px !important;
}

.ppc-modal-header .ppc-title {
	font-size: 19px !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
}

.ppc-modal-body {
	padding: 18px 20px 20px !important;
}

.ppc-fields {
	gap: 12px !important;
}

.ppc-field-row {
	grid-template-columns: 116px minmax(0, 1fr) !important;
	gap: 10px !important;
}

.ppc-field-row label {
	font-size: 15px !important;
	line-height: 1.25;
}

.ppc-input-wrap {
	height: 46px !important;
	border-radius: 6px !important;
}

.ppc-icon {
	flex-basis: 44px !important;
}

.ppc-section {
	margin-top: 15px !important;
}

.ppc-section h3 {
	margin-bottom: 8px !important;
	font-size: 15px !important;
}

.ppc-option {
	min-height: 50px !important;
	padding: 9px 12px !important;
}

.ppc-note-row {
	margin-top: 15px !important;
}

.ppc-product {
	margin-top: 15px !important;
	padding-top: 13px !important;
	padding-bottom: 9px !important;
}

.ppc-summary {
	margin-top: 14px !important;
}

.ppc-summary > div {
	padding: 9px 8px !important;
}

.ppc-modal-footer {
	padding: 10px 20px calc(10px + env(safe-area-inset-bottom)) !important;
}

.ppc-footer-total {
	margin-bottom: 8px !important;
	font-size: 15px !important;
}

.ppc-confirm {
	min-height: 48px !important;
	font-size: 16px !important;
}

@media (min-width: 641px) {
	.ppc-modal {
		width: min(560px, calc(100% - 40px)) !important;
	}
}

@media (max-width: 640px) {
	.ppc-overlay {
		padding: 10px !important;
	}

	.ppc-modal {
		width: 100% !important;
		height: calc(100dvh - 20px) !important;
		max-height: calc(100dvh - 20px) !important;
		border-radius: 14px !important;
	}

	.ppc-modal-header {
		padding: 16px 50px 14px 16px !important;
	}

	.ppc-modal-header .ppc-title {
		font-size: 17px !important;
		line-height: 1.45 !important;
	}

	.ppc-modal-body {
		padding: 18px 16px 20px !important;
	}

	.ppc-field-row {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
	}

	.ppc-input-wrap {
		height: 52px !important;
	}

	.ppc-icon {
		flex-basis: 58px !important;
	}

	.ppc-section {
		margin-top: 16px !important;
	}

	.ppc-option {
		min-height: 56px !important;
		padding: 10px 12px !important;
	}

	.ppc-note-row {
		margin-top: 16px !important;
	}

	.ppc-product {
		margin-top: 16px !important;
	}

	.ppc-modal-footer {
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;
	}
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
	.ppc-overlay {
		background: rgba(28, 28, 28, .58) !important;
	}
}


/* Step 10 refinements */
.ppc-confirm {
	background: var(--ppc-confirm-bg, #000) !important;
	color: var(--ppc-confirm-color, #fff) !important;
}

.ppc-summary {
	background: #F9F9F9 !important;
}

.ppc-summary > div {
	background: #F9F9F9 !important;
}

.ppc-modal-footer {
	background: #F9F9F9 !important;
}

.ppc-footer-total {
	background: #F9F9F9 !important;
}

@media (min-width: 641px) {
	.ppc-modal-body {
		padding: 24px 24px 26px !important;
	}

	.ppc-fields {
		gap: 16px !important;
	}

	.ppc-field-row {
		grid-template-columns: 126px minmax(0, 1fr) !important;
		gap: 14px !important;
	}

	.ppc-input-wrap {
		height: 50px !important;
	}

	.ppc-section {
		margin-top: 20px !important;
	}

	.ppc-section h3 {
		margin-bottom: 10px !important;
	}

	.ppc-option {
		min-height: 56px !important;
		padding: 11px 14px !important;
	}

	.ppc-note-row {
		margin-top: 20px !important;
	}

	.ppc-product {
		margin-top: 20px !important;
		padding-top: 16px !important;
		padding-bottom: 12px !important;
	}

	.ppc-summary {
		margin-top: 18px !important;
	}

	.ppc-summary > div {
		padding: 11px 12px !important;
	}

	.ppc-modal-footer {
		padding: 12px 24px calc(12px + env(safe-area-inset-bottom)) !important;
	}

	.ppc-footer-total {
		margin-bottom: 10px !important;
	}
}


/* Step 11 — Shopify-like compact spacing */
@media (min-width: 641px) {
	.ppc-modal-body {
		padding: 20px 20px 22px !important;
	}

	.ppc-fields {
		gap: 13px !important;
	}

	.ppc-field-row {
		grid-template-columns: 118px minmax(0, 1fr) !important;
		gap: 10px !important;
	}

	.ppc-input-wrap {
		height: 47px !important;
	}

	.ppc-icon {
		flex-basis: 44px !important;
	}

	.ppc-section {
		margin-top: 16px !important;
	}

	.ppc-section h3 {
		margin-bottom: 8px !important;
	}

	.ppc-option {
		min-height: 51px !important;
		padding: 9px 12px !important;
	}

	.ppc-note-row {
		margin-top: 16px !important;
	}

	.ppc-product {
		margin-top: 16px !important;
		padding-top: 13px !important;
		padding-bottom: 9px !important;
		gap: 10px !important;
	}

	.ppc-product img {
		width: 58px !important;
		height: 58px !important;
	}

	.ppc-product {
		grid-template-columns: 58px minmax(0, 1fr) auto !important;
	}

	.ppc-summary {
		margin-top: 15px !important;
	}

	.ppc-summary > div {
		padding: 9px 10px !important;
	}

	.ppc-summary .ppc-total {
		font-size: 16px !important;
	}

	.ppc-modal-footer {
		padding: 10px 20px calc(10px + env(safe-area-inset-bottom)) !important;
	}

	.ppc-footer-total {
		margin-bottom: 8px !important;
	}
}
