/**
 * Popup Checkout Modal Styles
 */

/* Modal Overlay */
.poc-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

/* Button click animations (triggered by JS: .poc-anim-active) */
.poc-submit-btn.poc-anim-none.poc-anim-active { }

.poc-submit-btn.poc-anim-pulse.poc-anim-active { animation: poc-pulse 420ms ease-out; }
.poc-submit-btn.poc-anim-bounce.poc-anim-active { animation: poc-bounce 520ms ease-out; }
.poc-submit-btn.poc-anim-shake.poc-anim-active { animation: poc-shake 420ms ease-in-out; }
.poc-submit-btn.poc-anim-pop.poc-anim-active { animation: poc-pop 320ms ease-out; }

@keyframes poc-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

@keyframes poc-bounce {
	0% { transform: translateY(0); }
	30% { transform: translateY(-6px); }
	60% { transform: translateY(0); }
	80% { transform: translateY(-3px); }
	100% { transform: translateY(0); }
}

@keyframes poc-shake {
	0% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	50% { transform: translateX(4px); }
	75% { transform: translateX(-3px); }
	100% { transform: translateX(0); }
}

@keyframes poc-pop {
	0% { transform: scale(1); }
	60% { transform: scale(0.96); }
	100% { transform: scale(1); }
}

.poc-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
}

/* Modal Content */
.poc-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	margin: 5vh auto;
	z-index: 1000000;
	padding: 30px;
}

/* =============================
 * Popup open animations
 * Controlled by settings:
 *   .poc-open-anim-{name}
 * JS adds .poc-is-opening when showing the modal
 * ============================= */

/* Overlay fade for all animations (except none) */
.poc-modal.poc-is-opening .poc-modal-overlay {
	animation: poc-overlay-fade var(--pc-open-dur, 0.45s) ease-out both;
}

.poc-modal.poc-is-opening.poc-open-anim-none .poc-modal-overlay {
	animation: none;
}

.poc-modal.poc-is-opening.poc-open-anim-none .poc-modal-content { animation: none; }

.poc-modal.poc-is-opening.poc-open-anim-fade .poc-modal-content {
	animation: poc-open-fade var(--pc-open-dur, 0.45s) ease-out both;
}

.poc-modal.poc-is-opening.poc-open-anim-slide_up .poc-modal-content {
	animation: poc-open-slide-up var(--pc-open-dur, 0.45s) cubic-bezier(.2,.9,.2,1) both;
}

.poc-modal.poc-is-opening.poc-open-anim-slide_down .poc-modal-content {
	animation: poc-open-slide-down var(--pc-open-dur, 0.45s) cubic-bezier(.2,.9,.2,1) both;
}

.poc-modal.poc-is-opening.poc-open-anim-zoom .poc-modal-content {
	animation: poc-open-zoom var(--pc-open-dur, 0.45s) ease-out both;
}

.poc-modal.poc-is-opening.poc-open-anim-zoom_bounce .poc-modal-content {
	animation: poc-open-zoom-bounce var(--pc-open-dur, 0.45s) cubic-bezier(.2,.9,.2,1) both;
}

.poc-modal.poc-is-opening.poc-open-anim-flip .poc-modal-content {
	transform-origin: 50% 50%;
	animation: poc-open-flip var(--pc-open-dur, 0.45s) cubic-bezier(.2,.9,.2,1) both;
}

/* =============================
 * Animated Place Order Button (truck animation)
 * Controlled via CSS vars set on #poc-modal:
 *   --pc-po-bg, --pc-po-bg-active, --pc-po-bg-done, --pc-po-text
 *   --pc-po-width, --pc-po-height, --pc-po-dur
 * ============================= */

.poc-submit-btn.poc-po-btn{
	appearance: none;
	border: 0;
	background: var(--pc-po-bg);
	position: relative;
	height: var(--pc-po-height);
	width: var(--pc-po-width);
	padding: 0;
	outline: none;
	cursor: pointer;
	border-radius: 32px;
	-webkit-tap-highlight-color: transparent;
	overflow: hidden;
	transition: transform .3s ease, background-color .25s ease;
}

.poc-submit-btn.poc-po-btn:active{ transform: scale(.96); }

.poc-submit-btn.poc-po-btn span{
	--o: 1;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	top: calc((var(--pc-po-height) - 24px) / 2);
	line-height: 24px;
	color: var(--pc-po-text);
	font-size: 16px;
	font-weight: 600;
	opacity: var(--o);
	transition: opacity .3s ease;
}

.poc-submit-btn.poc-po-btn span.default{ transition-delay: .15s; }

.poc-submit-btn.poc-po-btn span.success{
	--offset: 16px;
	--o: 0;
}

.poc-submit-btn.poc-po-btn span.success svg{
	width: 12px;
	height: 10px;
	display: inline-block;
	vertical-align: top;
	fill: none;
	margin: 7px 0 0 4px;
	stroke: #16BF78;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 16px;
	stroke-dashoffset: var(--offset);
	transition: stroke-dashoffset .3s ease;
}

.poc-submit-btn.poc-po-btn .lines{
	opacity: 0;
	position: absolute;
	height: 3px;
	background: #fff;
	border-radius: 2px;
	width: 6px;
	top: 30px;
	left: 100%;
	box-shadow: 15px 0 0 #fff, 30px 0 0 #fff, 45px 0 0 #fff, 60px 0 0 #fff, 75px 0 0 #fff, 90px 0 0 #fff, 105px 0 0 #fff, 120px 0 0 #fff, 135px 0 0 #fff, 150px 0 0 #fff, 165px 0 0 #fff, 180px 0 0 #fff, 195px 0 0 #fff, 210px 0 0 #fff, 225px 0 0 #fff, 240px 0 0 #fff, 255px 0 0 #fff, 270px 0 0 #fff, 285px 0 0 #fff, 300px 0 0 #fff, 315px 0 0 #fff, 330px 0 0 #fff;
}

.poc-submit-btn.poc-po-btn .back,
.poc-submit-btn.poc-po-btn .box{
	--start: #FFF;
	--stop: #CDD9ED;
	border-radius: 2px;
	background: linear-gradient(var(--start), var(--stop));
	position: absolute;
}

.poc-submit-btn.poc-po-btn .truck{
	width: 60px;
	height: 41px;
	left: 100%;
	z-index: 1;
	top: 11px;
	position: absolute;
	transform: translateX(24px);
}

.poc-submit-btn.poc-po-btn .truck:before,
.poc-submit-btn.poc-po-btn .truck:after{
	--r: -90deg;
	content: '';
	height: 2px;
	width: 20px;
	right: 58px;
	position: absolute;
	display: block;
	background: #fff;
	border-radius: 1px;
	transform-origin: 100% 50%;
	transform: rotate(var(--r));
}

.poc-submit-btn.poc-po-btn .truck:before{ top: 4px; }
.poc-submit-btn.poc-po-btn .truck:after{ --r: 90deg; bottom: 4px; }

.poc-submit-btn.poc-po-btn .truck .back{
	left: 0;
	top: 0;
	width: 60px;
	height: 41px;
	z-index: 1;
}

.poc-submit-btn.poc-po-btn .truck .front{
	overflow: hidden;
	position: absolute;
	border-radius: 2px 9px 9px 2px;
	width: 26px;
	height: 41px;
	left: 60px;
}

.poc-submit-btn.poc-po-btn .truck .front:before,
.poc-submit-btn.poc-po-btn .truck .front:after{
	content: '';
	position: absolute;
	display: block;
}

.poc-submit-btn.poc-po-btn .truck .front:before{
	height: 13px;
	width: 2px;
	left: 0;
	top: 14px;
	background: linear-gradient(#6C7486, #3F4656);
}

.poc-submit-btn.poc-po-btn .truck .front:after{
	border-radius: 2px 9px 9px 2px;
	background: #275EFE;
	width: 24px;
	height: 41px;
	right: 0;
}

.poc-submit-btn.poc-po-btn .truck .front .window{
	overflow: hidden;
	border-radius: 2px 8px 8px 2px;
	background: #7699FF;
	transform: perspective(4px) rotateY(3deg);
	width: 22px;
	height: 41px;
	position: absolute;
	left: 2px;
	top: 0;
	z-index: 1;
	transform-origin: 0 50%;
}

.poc-submit-btn.poc-po-btn .truck .front .window:before,
.poc-submit-btn.poc-po-btn .truck .front .window:after{
	content: '';
	position: absolute;
	right: 0;
}

.poc-submit-btn.poc-po-btn .truck .front .window:before{
	top: 0;
	bottom: 0;
	width: 14px;
	background: #1C212E;
}

.poc-submit-btn.poc-po-btn .truck .front .window:after{
	width: 14px;
	top: 7px;
	height: 4px;
	background: rgba(255,255,255,.14);
	transform: skewY(14deg);
	box-shadow: 0 7px 0 rgba(255,255,255,.14);
}

.poc-submit-btn.poc-po-btn .truck .light{
	width: 3px;
	height: 8px;
	left: 83px;
	transform-origin: 100% 50%;
	position: absolute;
	border-radius: 2px;
	transform: scaleX(.8);
	background: rgba(240, 220, 95, 1);
}

.poc-submit-btn.poc-po-btn .truck .light:before{
	content: '';
	height: 4px;
	width: 7px;
	opacity: 0;
	transform: perspective(2px) rotateY(-15deg) scaleX(.94);
	position: absolute;
	transform-origin: 0 50%;
	left: 3px;
	top: 50%;
	margin-top: -2px;
	background: linear-gradient(90deg, rgba(240, 220, 95, 1), rgba(240, 220, 95, .7), rgba(240, 220, 95, 0));
}

.poc-submit-btn.poc-po-btn .truck .light.top{ top: 4px; }
.poc-submit-btn.poc-po-btn .truck .light.bottom{ bottom: 4px; }

.poc-submit-btn.poc-po-btn .box{
	--start: #EDD9A9;
	--stop: #DCB773;
	width: 21px;
	height: 21px;
	right: 100%;
	top: 21px;
}

.poc-submit-btn.poc-po-btn .box:before,
.poc-submit-btn.poc-po-btn .box:after{
	content: '';
	top: 10px;
	position: absolute;
	left: 0;
	right: 0;
}

.poc-submit-btn.poc-po-btn .box:before{ height: 3px; margin-top: -1px; background: rgba(0,0,0,.1); }
.poc-submit-btn.poc-po-btn .box:after{ height: 1px; background: rgba(0,0,0,.15); }

/* Active state */
.poc-submit-btn.poc-po-btn.poc-po-animate{ background: var(--pc-po-bg-active); }
.poc-submit-btn.poc-po-btn.poc-po-done{ background: var(--pc-po-bg-done); }

.poc-submit-btn.poc-po-btn.poc-po-animate span.default{ --o: 0; transition-delay: 0s; }
.poc-submit-btn.poc-po-btn.poc-po-animate span.success{ --offset: 0; --o: 1; transition-delay: calc(var(--pc-po-dur, 3.5s) - 0.2s); }
.poc-submit-btn.poc-po-btn.poc-po-animate span.success svg{ transition-delay: calc(var(--pc-po-dur, 3.5s) - 0.05s); }

.poc-submit-btn.poc-po-btn.poc-po-animate .truck{ animation: poc-po-truck var(--pc-po-dur, 3.5s) ease forwards; }
.poc-submit-btn.poc-po-btn.poc-po-animate .truck:before{ animation: poc-po-door1 calc(var(--pc-po-dur, 3.5s) * 0.24) ease forwards .3s; }
.poc-submit-btn.poc-po-btn.poc-po-animate .truck:after{ animation: poc-po-door2 calc(var(--pc-po-dur, 3.5s) * 0.24) ease forwards .6s; }
.poc-submit-btn.poc-po-btn.poc-po-animate .truck .light:before{ animation: poc-po-light var(--pc-po-dur, 3.5s) ease forwards; }
.poc-submit-btn.poc-po-btn.poc-po-animate .box{ animation: poc-po-box var(--pc-po-dur, 3.5s) ease forwards; }
.poc-submit-btn.poc-po-btn.poc-po-animate .lines{ animation: poc-po-lines var(--pc-po-dur, 3.5s) ease forwards; }

@keyframes poc-po-truck {
	10%, 30% { transform: translateX(-164px); }
	40% { transform: translateX(-104px); }
	60% { transform: translateX(-224px); }
	75%, 100% { transform: translateX(24px); }
}

@keyframes poc-po-lines {
	0%, 30% { opacity: 0; transform: scaleY(.7) translateX(0); }
	35%, 65% { opacity: 1; }
	70% { opacity: 0; }
	100% { transform: scaleY(.7) translateX(-400px); }
}

@keyframes poc-po-light {
	0%, 30% { opacity: 0; transform: perspective(2px) rotateY(-15deg) scaleX(.88); }
	40%, 100% { opacity: 1; transform: perspective(2px) rotateY(-15deg) scaleX(.94); }
}

@keyframes poc-po-door1 {
	30%, 50% { transform: rotate(32deg); }
}

@keyframes poc-po-door2 {
	30%, 50% { transform: rotate(-32deg); }
}

@keyframes poc-po-box {
	8%, 10% { transform: translateX(40px); opacity: 1; }
	25% { transform: translateX(112px); opacity: 1; }
	26% { transform: translateX(112px); opacity: 0; }
	27%, 100% { transform: translateX(0px); opacity: 0; }
}

@keyframes poc-overlay-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes poc-open-fade {
	from { opacity: 0; transform: translateY(0); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes poc-open-slide-up {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes poc-open-slide-down {
	from { opacity: 0; transform: translateY(-24px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes poc-open-zoom {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes poc-open-zoom-bounce {
	0% { opacity: 0; transform: scale(0.92); }
	60% { opacity: 1; transform: scale(1.02); }
	100% { opacity: 1; transform: scale(1); }
}

@keyframes poc-open-flip {
	0% { opacity: 0; transform: perspective(900px) rotateX(-18deg) scale(0.98); }
	100% { opacity: 1; transform: perspective(900px) rotateX(0deg) scale(1); }
}

/* Close Button */
.poc-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.poc-modal-close:hover {
	color: #000;
}

/* Form Container */
.poc-form-container {
	width: 100%;
}

.poc-modal-title {
	margin: 0 0 25px 0;
	font-size: 24px;
	font-weight: 600;
	color: #333;
	text-align: center;
}

/* Form Groups */
.poc-form-group {
	margin-bottom: 20px;
}

.poc-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.poc-form-group .required {
	color: #e74c3c;
}

.poc-form-group input[type="text"],
.poc-form-group input[type="tel"],
.poc-form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.poc-form-group input[type="text"]:focus,
.poc-form-group input[type="tel"]:focus,
.poc-form-group textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.poc-form-group textarea {
	resize: vertical;
	min-height: 80px;
}

/* Product Section */
.poc-products-section {
	margin: 20px 0;
}

.poc-products-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Grand Total */
.poc-grand-total {
	margin-top: 15px;
	padding: 12px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	text-align: right;
	font-size: 16px;
}

.poc-grand-total-label {
	font-weight: 800;
	color: #333;
	margin-right: 8px;
}

.poc-grand-total-price {
	font-size: 18px;
	font-weight: 500;
	color: #0073aa;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.poc-grand-total-price:after {
	content: ' ৳';
	font-size: 20px;
	font-weight: 800;
}

/* Product Row - Image shows single row layout */
.poc-product-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

/* Left Image */
.poc-product-image-wrapper {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #fafbfc;
	border: 1px solid #eef1f5;
}

.poc-product-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Middle Info - Name and Price */
.poc-product-info-middle {
	flex: 1;
	min-width: 0;
}

.poc-product-name {
	margin: 0 0 6px 0;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

/* Product Unit Price with bigger, bold taka icon */
.poc-product-unit-price {
	font-size: 18px;
	font-weight: 700;
	color: #0073aa;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 2px;
}

.poc-product-unit-price:after {
	content: ' ৳';
	font-size: 20px;
	font-weight: 800;
}

/* Right Side - Quantity Controls only */
.poc-product-right {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Quantity Controls - Vertical layout, smaller */
/* Quantity Controls - Image Based Design */
.poc-quantity-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
}

/* Number Input Box Wrapper (left side - small width for 1-2 digits only) */
.poc-quantity-input-wrapper {
	width: 40px;
	height: 60px;
	min-width: 40px;
	max-width: 40px;
	padding: 0;
	border: 1px solid #000;
	border-radius: 0;
	background: #fff;
	position: relative;
	box-sizing: border-box;
	display: block;
	overflow: hidden;
}

.poc-quantity-input {
	width: 100%;
	height: 100%;
	border: none;
	background: transparent;
	color: #000 !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	text-align: center !important;
	padding: 0;
	margin: 0;
	outline: none;
	appearance: textfield;
	-moz-appearance: textfield;
	touch-action: manipulation;
	box-sizing: border-box;
}

.poc-quantity-display {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #000 !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	pointer-events: none;
	z-index: 1;
	line-height: 1;
}

/* Button Group (+ and - together on right side) */
.poc-qty-buttons-group {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.poc-qty-btn {
	width: 30px;
	height: 30px;
	min-height: 30px;
	border: 1px solid #000;
	border-radius: 0;
	background: #fff;
	color: #000;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	user-select: none;
	padding: 0;
	line-height: 1;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.poc-qty-btn:last-child {
	border-top: none;
}

.poc-qty-btn:hover {
	background: #f0f0f0;
}

.poc-qty-btn:active {
	background: #e0e0e0;
	transform: scale(0.95);
}

.poc-quantity-input::-webkit-outer-spin-button,
.poc-quantity-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Subtotal - Below quantity controls */
.poc-product-subtotal {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-align: right;
	white-space: nowrap;
}

/* Order Info */
.poc-order-info {
	background: #f8f9fa;
	padding: 15px;
	border-radius: 4px;
	margin: 20px 0;
}

.poc-order-info p {
	margin: 8px 0;
	color: #555;
	font-size: 14px;
}

.poc-delivery,
.poc-payment {
	font-weight: 500;
}

/* Form Actions */
.poc-form-actions {
	margin-top: 25px;
	text-align: center;
}

.poc-submit-btn {
	width: 100%;
	padding: 14px 24px;
	background-color: var(--pc-btn-bg, #0073aa);
	color: var(--pc-btn-text, #ffffff);
	border: none;
	border-radius: var(--pc-btn-radius, 4px);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}

.poc-submit-btn:hover {
	background-color: var(--pc-btn-bg-hover, #005a87);
	opacity: 0.9;
}

.poc-submit-btn:active {
	transform: translateY(1px);
}

.poc-submit-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	transform: none;
}

/* Message */
.poc-message {
	padding: 12px;
	border-radius: 4px;
	margin-top: 15px;
	font-size: 14px;
}

.poc-message.poc-error {
	background-color: #fee;
	color: #c33;
	border: 1px solid #fcc;
}

.poc-message.poc-success {
	background-color: #efe;
	color: #3c3;
	border: 1px solid #cfc;
}

/* Thank You Container */
.poc-thank-you-container {
	text-align: center;
	padding: 20px 0;
}

.poc-success-title {
	margin: 0 0 20px 0;
	font-size: 28px;
	font-weight: 600;
	color: #2ecc71;
}

.poc-success-message {
	margin-bottom: 25px;
	color: #555;
	font-size: 16px;
	line-height: 1.6;
}

/* Order Details */
.poc-order-details {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 4px;
	margin: 20px 0;
	text-align: left;
}

.poc-order-details p {
	margin: 10px 0;
	color: #333;
	font-size: 14px;
	line-height: 1.6;
}

.poc-order-details strong {
	color: #000;
	font-weight: 600;
}

.poc-order-details .poc-order-number {
	font-size: 18px;
	font-weight: 600;
	color: #0073aa;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #ddd;
}

/* Close Button in Thank You */
.poc-close-btn {
	padding: 12px 30px;
	background-color: var(--pc-btn-bg, #0073aa);
	color: var(--pc-btn-text, #ffffff);
	border: none;
	border-radius: var(--pc-btn-radius, 4px);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	margin-top: 20px;
}

.poc-close-btn:hover {
	background-color: var(--pc-btn-bg-hover, #005a87);
}

/* Order Now Button */
.poc-order-btn {
	padding: 12px 24px;
	background-color: #0073aa;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	display: inline-block;
	text-decoration: none;
}

.poc-order-btn:hover {
	background-color: #005a87;
}

.poc-order-btn:active {
	transform: translateY(1px);
}

/* Responsive */
@media (max-width: 600px) {
	.poc-modal-content {
		width: 95%;
		margin: 2vh auto;
		padding: 20px;
		max-height: 96vh;
	}
	
	.poc-modal-title {
		font-size: 20px;
	}
	
	.poc-success-title {
		font-size: 24px;
	}
	
	.poc-form-group input[type="text"],
	.poc-form-group input[type="tel"],
	.poc-form-group textarea {
		font-size: 16px; /* Prevents zoom on iOS */
	}
	
	/* Mobile: Keep product row horizontal, make everything smaller */
	.poc-product-row {
		flex-direction: row;
		gap: 8px;
		padding: 8px;
		align-items: center;
		flex-wrap: nowrap;
	}
	
	.poc-product-image-wrapper {
		width: 48px;
		height: 48px;
		flex-shrink: 0;
	}
	
	.poc-product-name {
		font-size: 13px;
		margin: 0 0 4px 0;
	}
	
	.poc-product-info-middle {
		flex: 1;
		min-width: 0;
	}
	
	/* Mobile: Make taka icon smaller */
	.poc-product-unit-price {
		font-size: 15px;
		font-weight: 700;
	}
	
	.poc-product-unit-price:after {
		font-size: 17px;
		font-weight: 800;
	}
	
	/* Mobile: Smaller quantity controls to fit in same row */
	.poc-product-right {
		flex-shrink: 0;
		align-items: center;
		margin-top: 0;
		width: auto;
	}
	
	.poc-quantity-input-wrapper {
		width: 32px;
		height: 50px;
		max-width: 32px;
	}
	
	.poc-quantity-input,
	.poc-quantity-display {
		font-size: 18px !important;
	}
	
	.poc-qty-btn {
		width: 28px;
		height: 28px;
		min-height: 28px;
		font-size: 14px;
	}
	
	.poc-quantity-controls {
		gap: 6px;
		margin-top: 0;
		align-self: center;
	}
}

/* Loading State */
.poc-loading {
	opacity: 0.6;
	pointer-events: none;
}

.poc-loading .poc-submit-btn {
	position: relative;
	color: transparent;
}

.poc-loading .poc-submit-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: poc-spin 0.6s linear infinite;
}

/* If the new Animated Place Order button (truck) is enabled, do not show the legacy spinner overlay */
.poc-loading .poc-submit-btn.poc-po-btn::after {
	content: none;
	display: none;
}


@keyframes poc-spin {
	to {
		transform: rotate(360deg);
	}
}
