
: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;
}
