:root{
  --pcs-bg: rgba(15,23,42,.55);
  --pcs-card: #ffffff;
  --pcs-text: #0f172a;
  --pcs-muted: rgba(15,23,42,.65);
  --pcs-border: rgba(15,23,42,.10);
  --pcs-shadow: 0 20px 60px rgba(2,6,23,.35);
  --pcs-radius: 18px;
}

.pcs-loop-wrap { margin-top: 10px; }

.pcs-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}
.pcs-modal.pcs-open{
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.pcs-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(8, 15, 28, 0.22);
  backdrop-filter: blur(1px);
}
.pcs-modal__dialog{
  position: relative;
  width: min(980px, calc(100% - 28px));
  max-height: min(92vh, 980px);
  margin: 48px auto;
  background: var(--pcs-card);
  border: 1px solid var(--pcs-border);
  border-radius: var(--pcs-radius);
  box-shadow: var(--pcs-shadow);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.pcs-modal.pcs-open .pcs-modal__dialog{
  transform: translateY(0);
  opacity: 1;
}
.pcs-modal__close{
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--pcs-border);
  background: rgba(255,255,255,.9);
  font-size: 24px;
  line-height: 1;
  cursor:pointer;
}
.pcs-modal__header{
  padding: 18px 18px 12px 18px;
  border-bottom: 1px solid var(--pcs-border);
  background: linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,0));
}
.pcs-modal__title{
  font-size: 18px;
  font-weight: 800;
  color: var(--pcs-text);
}
.pcs-modal__subtitle{
  font-size: 13px;
  color: var(--pcs-muted);
  margin-top: 4px;
}
.pcs-modal__body{
  padding: 16px 16px 28px 16px;
  overflow: auto;
}
.pcs-skeleton{ display:grid; gap:10px; }
.pcs-skeleton__line{
  height: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(15,23,42,.08), rgba(15,23,42,.03), rgba(15,23,42,.08));
  background-size: 200% 100%;
  animation: pcsShimmer 1.2s infinite linear;
}
.pcs-skeleton__line:nth-child(2){ width: 78%; }
.pcs-skeleton__line:nth-child(3){ width: 62%; }
@keyframes pcsShimmer{ 0%{ background-position:0 0 } 100%{ background-position:200% 0 } }

/* Woo checkout inside popup */
#pcs-popup-checkout-modal .woocommerce form .form-row input.input-text,
#pcs-popup-checkout-modal .woocommerce form .form-row textarea,
#pcs-popup-checkout-modal .select2-container .select2-selection--single{
  border: 1px solid rgba(15,23,42,.16) !important;
  border-radius: 12px !important;
  padding: 12px 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}
#pcs-popup-checkout-modal .woocommerce form .form-row label{
  font-weight: 700;
  color: rgba(15,23,42,.8);
  margin-bottom: 6px;
}
#pcs-popup-checkout-modal .woocommerce-checkout-review-order-table,
#pcs-popup-checkout-modal .woocommerce table.shop_table{
  border: 1px solid rgba(15,23,42,.10) !important;
  border-radius: 14px !important;
  overflow: hidden;
}
#pcs-popup-checkout-modal .woocommerce-checkout #place_order{
  border-radius: 14px !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
}
#pcs-popup-checkout-modal.pcs-fixed-place-order .woocommerce-checkout #place_order{
  position: sticky !important;
  bottom: 0 !important;
  z-index: 10 !important;
  box-shadow: 0 -10px 30px rgba(2,6,23,.10) !important;
}

/* Mobile */
@media (max-width: 640px){
  .pcs-modal__dialog{ margin: 18px auto; max-height: 94vh; }
  .pcs-modal__body{ padding: 12px 12px 18px 12px; }
}

/* Desktop popup width = 550px (mobile unchanged) */
@media (min-width: 641px){
  .pcs-modal__dialog{
    width: 550px !important;
    max-width: calc(100% - 28px) !important; /* small screens safe */
  }
}



.pcs-buy-now{
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  transition: all .2s ease;
}
.pcs-buy-now:hover{
  transform: translateY(-1px);
}



/* ===== Force full-width checkout fields inside popup ===== */
#pcs-popup-checkout-modal .woocommerce .col2-set,
#pcs-popup-checkout-modal .woocommerce .col-1,
#pcs-popup-checkout-modal .woocommerce .col-2{
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}

#pcs-popup-checkout-modal .woocommerce form .form-row{
  width: 100% !important;
  float: none !important;
}

#pcs-popup-checkout-modal .woocommerce form .form-row-first,
#pcs-popup-checkout-modal .woocommerce form .form-row-last{
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

/* Spacing improve */
#pcs-popup-checkout-modal .woocommerce form .form-row{
  margin-bottom: 14px !important;
}

/* Select2 full width fix */
#pcs-popup-checkout-modal .select2-container{
  width: 100% !important;
}


/* ===== Place Order button full width ===== */
#pcs-popup-checkout-modal .woocommerce-checkout #place_order{
  width: 100% !important;
  display: block !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Sticky / fixed mode থাকলেও full width থাকবে */
#pcs-popup-checkout-modal.pcs-fixed-place-order 
.woocommerce-checkout #place_order{
  left: 0;
  right: 0;
  width: 100% !important;
}

/*----------------------------*/


/* ===== Make checkout blocks feel like cards ===== */
#pcs-popup-checkout-modal .woocommerce-billing-fields,
#pcs-popup-checkout-modal .woocommerce-shipping-fields,
#pcs-popup-checkout-modal #order_review,
#pcs-popup-checkout-modal .woocommerce-checkout-payment{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(2,6,23,.06);
  margin-bottom: 14px;
}

/* headings cleaner */
#pcs-popup-checkout-modal h3,
#pcs-popup-checkout-modal #order_review_heading{
  font-size: 15px !important;
  font-weight: 900 !important;
  color: rgba(15,23,42,.90) !important;
  margin: 0 0 10px 0 !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout #place_order:hover{
  filter: brightness(1.02);
  box-shadow: 0 12px 30px rgba(2,6,23,.18) !important;
}


/* Popup checkout: theme checkout layout normalize */
#pcs-popup-checkout-modal .woocommerce,
#pcs-popup-checkout-modal .woocommerce * {
	box-sizing: border-box;
}

#pcs-popup-checkout-modal .woocommerce,
#pcs-popup-checkout-modal .woocommerce-checkout,
#pcs-popup-checkout-modal .woocommerce form.checkout {
	width: 100% !important;
	max-width: 100% !important;
}

/* Force single column in popup (fix Astra/Storefront col2-set) */
#pcs-popup-checkout-modal .woocommerce-checkout .col2-set,
#pcs-popup-checkout-modal .woocommerce-checkout .col2-set .col-1,
#pcs-popup-checkout-modal .woocommerce-checkout .col2-set .col-2,
#pcs-popup-checkout-modal #customer_details,
#pcs-popup-checkout-modal #order_review {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Fix half-width fields used by many themes */
#pcs-popup-checkout-modal .woocommerce form .form-row-first,
#pcs-popup-checkout-modal .woocommerce form .form-row-last {
	float: none !important;
	width: 100% !important;
}

/* Inputs full width */
#pcs-popup-checkout-modal .woocommerce form .form-row input.input-text,
#pcs-popup-checkout-modal .woocommerce form .form-row textarea,
#pcs-popup-checkout-modal .woocommerce form .form-row select,
#pcs-popup-checkout-modal .select2-container {
	width: 100% !important;
	max-width: 100% !important;
}

/* Prevent theme container constraints */
#pcs-popup-checkout-modal .woocommerce-checkout .woocommerce-NoticeGroup,
#pcs-popup-checkout-modal .woocommerce-checkout .woocommerce-checkout-review-order,
#pcs-popup-checkout-modal .woocommerce-checkout .woocommerce-billing-fields,
#pcs-popup-checkout-modal .woocommerce-checkout .woocommerce-shipping-fields {
	margin-left: 0 !important;
	margin-right: 0 !important;
}


#pcs-popup-checkout-modal .woocommerce form .form-row {
	display: block !important;
}

/* Popup billing lock: show only Full Name, Address, Phone in UI */
#pcs-popup-checkout-modal .woocommerce-billing-fields__field-wrapper > .form-row {
	display: none !important;
}
#pcs-popup-checkout-modal #billing_first_name_field,
#pcs-popup-checkout-modal #billing_address_1_field,
#pcs-popup-checkout-modal #billing_phone_field {
	display: block !important;
}
#pcs-popup-checkout-modal #billing_email_field,
#pcs-popup-checkout-modal #billing_last_name_field,
#pcs-popup-checkout-modal #billing_country_field,
#pcs-popup-checkout-modal #billing_state_field,
#pcs-popup-checkout-modal #billing_city_field,
#pcs-popup-checkout-modal #billing_postcode_field,
#pcs-popup-checkout-modal #billing_address_2_field {
	display: none !important;
}
#pcs-popup-checkout-modal .woocommerce-additional-fields,
#pcs-popup-checkout-modal .woocommerce-account-fields,
#pcs-popup-checkout-modal #ship-to-different-address,
#pcs-popup-checkout-modal .shipping_address,
#pcs-popup-checkout-modal .woocommerce-shipping-fields,
#pcs-popup-checkout-modal .woocommerce-shipping-fields__field-wrapper,
#pcs-popup-checkout-modal #customer_details .col-2,
#pcs-popup-checkout-modal .create-account {
	display: none !important;
}
#pcs-popup-checkout-modal #customer_details .col-1{
	width: 100% !important;
	float: none !important;
}



/* Close button (safe override, no all:unset) */
#pcs-popup-checkout-modal .pcs-modal__close{
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;

	width: 38px !important;
	height: 38px !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;

	background: rgba(0,0,0,0.45) !important;
	color: #fff !important;

	font-size: 0 !important;          /* 🔥 theme যদি text mess করে, আমরা 0 করে pseudo element ব্যবহার করবো */
	line-height: 1 !important;

	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;

	border-radius: 999px !important;
	cursor: pointer !important;

	box-shadow: none !important;
	text-decoration: none !important;
	outline: none !important;

	z-index: 999999 !important;
}

/* Force the X icon via CSS (theme-proof) */
#pcs-popup-checkout-modal .pcs-modal__close::before{
	content: "\00D7"; /* × */
	font-size: 22px !important;
	line-height: 1 !important;
	color: #fff !important;
	font-weight: 400 !important;
	font-family: Arial, sans-serif !important;
}

/* Hover */
#pcs-popup-checkout-modal .pcs-modal__close:hover{
	background: rgba(0,0,0,0.65) !important;
	transform: translateY(-1px);
}

/* ================= Premium Popup Checkout Theme ================= */
#pcs-popup-checkout-modal,
#pcs-popup-checkout-modal .woocommerce,
#pcs-popup-checkout-modal .woocommerce * {
	font-family: "Sora", "Hind Siliguri", sans-serif !important;
}

#pcs-popup-checkout-modal .pcs-modal__backdrop {
	background:
		radial-gradient(circle at 12% 12%, rgba(14, 165, 233, 0.14), transparent 36%),
		radial-gradient(circle at 88% 6%, rgba(16, 185, 129, 0.10), transparent 38%),
		linear-gradient(135deg, rgba(7, 14, 28, 0.40), rgba(12, 32, 58, 0.24)) !important;
	backdrop-filter: blur(1px);
}

#pcs-popup-checkout-modal .pcs-modal__dialog {
	position: relative;
	width: 515px !important;
	height: 660px !important;
	max-width: calc(100% - 20px) !important;
	max-height: calc(100vh - 20px) !important;
	margin: 0 !important;
	border: 1px solid rgba(148, 163, 184, 0.32) !important;
	border-radius: 24px !important;
	background: linear-gradient(160deg, #f8fbff 0%, #f2f7fb 100%) !important;
	box-shadow: 0 34px 90px rgba(6, 18, 42, 0.4) !important;
	overflow: hidden;
}

#pcs-popup-checkout-modal .pcs-modal__dialog::before {
	content: "";
	position: absolute;
	inset: -120px auto auto -100px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0));
	pointer-events: none;
}

#pcs-popup-checkout-modal .pcs-modal__header {
	position: sticky;
	top: 0;
	z-index: 3;
	padding: 18px 22px 16px 22px !important;
	background:
		linear-gradient(120deg, rgba(15, 23, 42, 0.93), rgba(3, 105, 161, 0.9)) !important;
	border-bottom: 1px solid rgba(148, 163, 184, 0.28) !important;
}

#pcs-popup-checkout-modal .pcs-modal__title {
	color: #f8fafc !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

#pcs-popup-checkout-modal .pcs-modal__subtitle {
	color: rgba(226, 232, 240, 0.92) !important;
	font-size: 11px !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
}

#pcs-popup-checkout-modal .pcs-modal__body {
	padding: 16px !important;
	background:
		linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92)) !important;
}

#pcs-popup-checkout-modal .woocommerce form.checkout {
	display: grid;
	gap: 12px;
}
#pcs-popup-checkout-modal .woocommerce {
	font-size: 14px !important;
}

#pcs-popup-checkout-modal .woocommerce-form-coupon-toggle .woocommerce-info,
#pcs-popup-checkout-modal .woocommerce-billing-fields,
#pcs-popup-checkout-modal #order_review,
#pcs-popup-checkout-modal .woocommerce-checkout-payment {
	background: #ffffff !important;
	border: 1px solid rgba(148, 163, 184, 0.34) !important;
	border-radius: 18px !important;
	padding: 14px !important;
	box-shadow: 0 14px 34px rgba(2, 6, 23, 0.08) !important;
}

#pcs-popup-checkout-modal .woocommerce-form-coupon-toggle .woocommerce-info {
	border-left: 4px solid #0284c7 !important;
	font-size: 13px !important;
	color: #0f172a !important;
}

#pcs-popup-checkout-modal .woocommerce-billing-fields h3,
#pcs-popup-checkout-modal #order_review_heading {
	margin: 0 0 12px 0 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #0f172a !important;
}

#pcs-popup-checkout-modal .woocommerce form .form-row {
	margin: 0 0 10px 0 !important;
}

#pcs-popup-checkout-modal .woocommerce form .form-row label {
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #334155 !important;
	margin-bottom: 6px !important;
}

#pcs-popup-checkout-modal .woocommerce form .form-row input.input-text,
#pcs-popup-checkout-modal .woocommerce form .form-row textarea,
#pcs-popup-checkout-modal .woocommerce form .form-row select {
	height: 44px !important;
	padding: 10px 12px !important;
	border-radius: 14px !important;
	border: 1.5px solid rgba(148, 163, 184, 0.55) !important;
	background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
	font-size: 14px !important;
	color: #0f172a !important;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#pcs-popup-checkout-modal .woocommerce form .form-row input.input-text:focus,
#pcs-popup-checkout-modal .woocommerce form .form-row textarea:focus,
#pcs-popup-checkout-modal .woocommerce form .form-row select:focus {
	border-color: #0284c7 !important;
	box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.14) !important;
	transform: translateY(-1px);
}

#pcs-popup-checkout-modal .woocommerce table.shop_table {
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0;
	overflow: hidden !important;
}

#pcs-popup-checkout-modal .woocommerce table.shop_table th {
	background: linear-gradient(180deg, #e7eef7, #dfe8f3) !important;
	color: #0f172a !important;
	font-weight: 700 !important;
	font-size: 11px !important;
}

#pcs-popup-checkout-modal .woocommerce table.shop_table td,
#pcs-popup-checkout-modal .woocommerce table.shop_table th {
	padding: 12px 10px !important;
	border-color: rgba(148, 163, 184, 0.35) !important;
}
#pcs-popup-checkout-modal .woocommerce table.shop_table td.product-name,
#pcs-popup-checkout-modal .woocommerce table.shop_table td.product-name a,
#pcs-popup-checkout-modal .woocommerce table.shop_table td.product-name * {
	font-size: 12px !important;
	line-height: 1.35 !important;
}
#pcs-popup-checkout-modal .woocommerce table.shop_table td.product-total,
#pcs-popup-checkout-modal .woocommerce table.shop_table td.product-total *,
#pcs-popup-checkout-modal .woocommerce table.shop_table tr.cart-subtotal th,
#pcs-popup-checkout-modal .woocommerce table.shop_table tr.cart-subtotal td,
#pcs-popup-checkout-modal .woocommerce table.shop_table tr.cart-subtotal td * {
	font-size: 11px !important;
}

#pcs-popup-checkout-modal .woocommerce table.shop_table tr:last-child th,
#pcs-popup-checkout-modal .woocommerce table.shop_table tr:last-child td {
	font-weight: 800 !important;
	font-size: 15px !important;
	color: #0f172a !important;
	background: linear-gradient(180deg, #f8fbff, #eef4fa) !important;
}

#pcs-popup-checkout-modal .wc_payment_methods {
	display: grid !important;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
}

#pcs-popup-checkout-modal .wc_payment_methods li {
	list-style: none !important;
	padding: 10px 10px !important;
	border: 1px solid rgba(148, 163, 184, 0.4) !important;
	border-radius: 14px !important;
	background: #ffffff !important;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

#pcs-popup-checkout-modal .wc_payment_methods li:hover {
	border-color: rgba(2, 132, 199, 0.6) !important;
	box-shadow: 0 10px 24px rgba(2, 132, 199, 0.12);
	transform: translateY(-1px);
}

#pcs-popup-checkout-modal .wc_payment_methods li input[type="radio"] {
	accent-color: #0284c7;
}

#pcs-popup-checkout-modal .wc_payment_methods li.payment_method_chosen,
#pcs-popup-checkout-modal .wc_payment_methods li:has(> input[type="radio"]:checked) {
	border-color: #0284c7 !important;
	background: linear-gradient(180deg, #eff9ff, #f8fbff) !important;
	box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

#pcs-popup-checkout-modal .woocommerce-checkout #place_order {
	width: 100% !important;
	height: 50px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: linear-gradient(120deg, #0284c7, #0f766e) !important;
	color: #ffffff !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em;
	box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28) !important;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#pcs-popup-checkout-modal .woocommerce-checkout #place_order:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
	box-shadow: 0 18px 34px rgba(13, 148, 136, 0.34) !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout #place_order:active {
	transform: translateY(0);
}

#pcs-popup-checkout-modal .woocommerce-terms-and-conditions-wrapper {
	margin-top: 8px !important;
	font-size: 11px !important;
	color: #475569 !important;
}

#pcs-popup-checkout-modal .woocommerce-error,
#pcs-popup-checkout-modal .woocommerce-message,
#pcs-popup-checkout-modal .woocommerce-info {
	border-radius: 12px !important;
	border: 1px solid rgba(248, 113, 113, 0.3) !important;
	background: #fff7f7 !important;
	color: #7f1d1d !important;
}

#pcs-popup-checkout-modal .pcs-modal__close {
	top: 12px !important;
	right: 12px !important;
	width: 38px !important;
	height: 38px !important;
	background: rgba(248, 250, 252, 0.26) !important;
	border: 1px solid rgba(226, 232, 240, 0.45) !important;
	backdrop-filter: blur(1px);
}

#pcs-popup-checkout-modal .pcs-modal__close::before {
	color: #f8fafc !important;
	font-family: "Sora", "Hind Siliguri", sans-serif !important;
}

#pcs-popup-checkout-modal .pcs-modal__close:hover {
	background: rgba(14, 165, 233, 0.36) !important;
	border-color: rgba(125, 211, 252, 0.9) !important;
}

@media (max-width: 640px) {
	#pcs-popup-checkout-modal .pcs-modal__dialog {
		width: calc(100% - 14px) !important;
		margin: 0 !important;
		max-height: calc(100vh - 14px) !important;
		border-radius: 18px !important;
	}

	#pcs-popup-checkout-modal .pcs-modal__header {
		padding: 14px 16px !important;
	}

	#pcs-popup-checkout-modal .pcs-modal__title {
		font-size: 17px !important;
	}

	#pcs-popup-checkout-modal .woocommerce-checkout #place_order {
		height: 48px !important;
		font-size: 16px !important;
	}
}

/* ================= Final Professional Cleanup ================= */
#pcs-popup-checkout-modal .pcs-modal__dialog::before {
	display: none !important;
}

#pcs-popup-checkout-modal .pcs-modal__dialog {
	background: #ffffff !important;
	box-shadow: 0 24px 56px rgba(15, 23, 42, 0.26) !important;
}

#pcs-popup-checkout-modal .pcs-modal__body {
	padding: 12px 12px 10px 12px !important;
	background: #ffffff !important;
}

#pcs-popup-checkout-modal .woocommerce form.checkout {
	gap: 10px !important;
}

#pcs-popup-checkout-modal .woocommerce-form-coupon-toggle .woocommerce-info,
#pcs-popup-checkout-modal .woocommerce-billing-fields,
#pcs-popup-checkout-modal #order_review,
#pcs-popup-checkout-modal .woocommerce-checkout-payment {
	background: #ffffff !important;
	border: 1px solid #d9e2ec !important;
	box-shadow: none !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout-payment {
	margin-bottom: 0 !important;
	padding-bottom: 10px !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout-payment .payment_methods {
	margin-bottom: 10px !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout-payment div.payment_box {
	background: #f3f7fb !important;
	border: 1px solid #d9e2ec !important;
	border-radius: 10px !important;
	padding: 10px 12px !important;
	margin: 8px 0 0 !important;
	color: #334155 !important;
	font-size: 13px !important;
	box-shadow: none !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout-payment div.payment_box::before {
	display: none !important;
}

#pcs-popup-checkout-modal .wc_payment_methods li {
	background: #ffffff !important;
	border: 1px solid #c9d5e4 !important;
	box-shadow: none !important;
}

#pcs-popup-checkout-modal .wc_payment_methods li.payment_method_chosen,
#pcs-popup-checkout-modal .wc_payment_methods li:has(> input[type="radio"]:checked) {
	background: #f2f8ff !important;
	border-color: #3b82f6 !important;
	box-shadow: none !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout #place_order {
	box-shadow: none !important;
}

/* Remove nested/double card feel in order/payment area */
#pcs-popup-checkout-modal #order_review {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

#pcs-popup-checkout-modal #order_review > table.shop_table,
#pcs-popup-checkout-modal #order_review .woocommerce-checkout-payment {
	background: #ffffff !important;
	border: 1px solid #d9e2ec !important;
	border-radius: 14px !important;
	box-shadow: none !important;
}

#pcs-popup-checkout-modal #order_review > table.shop_table {
	margin: 0 !important;
}

#pcs-popup-checkout-modal #order_review .woocommerce-checkout-payment {
	margin-top: 10px !important;
	padding: 12px !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout-payment .form-row.place-order {
	margin: 10px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

#pcs-popup-checkout-modal .woocommerce-checkout-payment div.payment_box {
	background: #ffffff !important;
}

/* Coupon text clarity fix (remove overlapping pseudo icon) */
#pcs-popup-checkout-modal .woocommerce-form-coupon-toggle .woocommerce-info {
	padding: 10px 14px !important;
	line-height: 1.45 !important;
}

#pcs-popup-checkout-modal .woocommerce-form-coupon-toggle .woocommerce-info::before {
	display: none !important;
	content: none !important;
}

/* ================= Popup Order Received: Box Layout ================= */
.pcs-popup-order-received #content,
.pcs-popup-order-received .site-content {
	background: #edf1f4;
	padding: 0 16px !important;
}

.pcs-popup-order-received > .woocommerce,
.pcs-popup-order-received .site-main > .woocommerce,
.pcs-popup-order-received #content .woocommerce,
.pcs-popup-order-received .entry-content > .woocommerce {
	width: min(760px, 100%) !important;
	max-width: 760px;
	margin: 50px auto !important;
	float: none !important;
	clear: both !important;
	display: block !important;
}

.pcs-popup-order-received > .woocommerce,
.pcs-popup-order-received .site-main > .woocommerce,
.pcs-popup-order-received #content .woocommerce,
.pcs-popup-order-received .entry-content > .woocommerce {
	padding: 30px !important;
	background: #ffffff;
	border: 1px solid #d6dde5;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.pcs-popup-order-received .woocommerce-order {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.pcs-popup-order-received .woocommerce-thankyou-order-received {
	font-size: 32px;
	font-weight: 800;
	color: #1f2937;
	text-align: center;
	margin: 0 0 22px 0;
}

.pcs-popup-order-received .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	list-style: none;
	margin: 0 0 18px 0 !important;
	padding: 14px 18px !important;
	background: #f2f5f8;
	border: 1px solid #e0e7ef;
	border-radius: 6px;
}

.pcs-popup-order-received .woocommerce-order-overview li {
	margin: 0 !important;
	padding: 6px 12px;
	float: none !important;
	width: 100% !important;
	min-width: 0;
	border-right: 1px solid #cfd8e3;
	background: transparent;
	font-size: 12px;
	color: #374151;
	text-transform: none;
}

.pcs-popup-order-received .woocommerce-order-overview li:last-child {
	border-right: 0;
}

.pcs-popup-order-received .woocommerce-order-overview li strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #1f2937;
	margin-top: 4px;
}

.pcs-popup-order-received .woocommerce-order > p {
	margin: 0 0 16px 0 !important;
	font-size: 14px;
	color: #374151;
}

.pcs-popup-order-received .woocommerce-order-details,
.pcs-popup-order-received .woocommerce-customer-details {
	background: #f2f5f8;
	border: 1px solid #e0e7ef;
	border-radius: 6px;
	padding: 24px 26px;
	margin-top: 18px;
}

.pcs-popup-order-received .woocommerce-order-details h2,
.pcs-popup-order-received .woocommerce-customer-details h2 {
	font-size: 34px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1f2937;
}

.pcs-popup-order-received .woocommerce table.shop_table {
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	margin: 0 !important;
}

.pcs-popup-order-received .woocommerce table.shop_table th {
	background: transparent !important;
	font-size: 14px;
	font-weight: 700;
	padding: 6px 0 10px !important;
	border-bottom: 1px dashed #c7ced8 !important;
}

.pcs-popup-order-received .woocommerce table.shop_table td {
	background: transparent !important;
	font-size: 14px;
	padding: 9px 0 !important;
	border-top: 0 !important;
}

.pcs-popup-order-received .woocommerce table.shop_table tr.order_item td {
	border-bottom: 1px dashed #c7ced8 !important;
}

.pcs-popup-order-received .woocommerce table.shop_table tfoot th,
.pcs-popup-order-received .woocommerce table.shop_table tfoot td {
	font-size: 14px;
	border-top: 0 !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}

.pcs-popup-order-received .woocommerce-customer-details address {
	border: 0 !important;
	border-radius: 0;
	padding: 0 !important;
	background: transparent !important;
	font-size: 14px;
	line-height: 1.6;
	color: #1f2937;
}

@media (max-width: 640px) {
	.pcs-popup-order-received #content,
	.pcs-popup-order-received .site-content {
		padding: 0 12px !important;
	}

	.pcs-popup-order-received > .woocommerce,
	.pcs-popup-order-received .site-main > .woocommerce,
	.pcs-popup-order-received #content .woocommerce,
	.pcs-popup-order-received .entry-content > .woocommerce {
		width: 100% !important;
		max-width: 100% !important;
	}

	.pcs-popup-order-received > .woocommerce,
	.pcs-popup-order-received .site-main > .woocommerce,
	.pcs-popup-order-received #content .woocommerce,
	.pcs-popup-order-received .entry-content > .woocommerce {
		padding: 16px !important;
		border-radius: 12px;
		margin: 24px auto !important;
	}

	.pcs-popup-order-received .woocommerce-order-overview {
		padding: 10px 12px !important;
		grid-template-columns: 1fr;
	}

	.pcs-popup-order-received .woocommerce-order-overview li {
		border-right: 0;
		border-bottom: 1px solid #d4dde8;
		padding: 8px 0;
	}

	.pcs-popup-order-received .woocommerce-order-overview li:last-child {
		border-bottom: 0;
	}

	.pcs-popup-order-received .woocommerce-order-details,
	.pcs-popup-order-received .woocommerce-customer-details {
		padding: 16px;
	}

	.pcs-popup-order-received .woocommerce-thankyou-order-received {
		font-size: 24px;
		margin-bottom: 14px;
	}

	.pcs-popup-order-received .woocommerce-order-details h2,
	.pcs-popup-order-received .woocommerce-customer-details h2 {
		font-size: 26px;
	}
}
