/* =========================================================
   WC One Page Checkout — Dark Purple Theme
   ========================================================= */

#wcopc-wrapper {
	margin-top: 18px;
	margin-bottom: 12px;
	--wcopc-bg-deep: #1c0f38;
	--wcopc-bg-mid: #2a1655;
	--wcopc-bg-card: #331b68;
	--wcopc-bg-card-soft: #3a1f76;
	--wcopc-border: #ddd0f5;
	--wcopc-border-soft: #d3c4f2;
	--wcopc-accent: #9b4dff;
	--wcopc-accent-2: #7b2ff7;
	--wcopc-accent-light: #7b2ff7;
	--wcopc-text: #241442;
	--wcopc-text-dim: #6f6690;
	--wcopc-white-card: #ffffff;
	--wcopc-radius-lg: 18px;
	--wcopc-radius-md: 12px;
	--wcopc-radius-sm: 8px;
	font-family: inherit;
}

.wcopc-card {
	background: transparent;
	border: 1.5px solid var(--wcopc-border);
	border-radius: var(--wcopc-radius-lg);
	padding: 20px 18px 24px;
	color: var(--wcopc-text);
}

/* ---------- Section header / step badge ---------- */

.wcopc-section {
	margin-bottom: 16px;
}

.wcopc-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 12px;
	cursor: default;
	text-align: left;
	color: var(--wcopc-text);
}

.wcopc-step-badge {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wcopc-accent) 0%, var(--wcopc-accent-2) 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.18);
}

.wcopc-heading {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	color: var(--wcopc-text);
	flex: 1 1 auto;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	width: auto !important;
}

/* Theme er default h3 style prai full-width background/box hisebe render hoy -
   eta shudhu ei plugin er section/accordion heading theke strip kora hocche,
   baki site er onno h3 e effect porbe na (selector gulo specific rakha hoyeche). */
.wcopc-section-header,
.wcopc-accordion-toggle {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

/* ---------- Billing fields (dark inputs) ---------- */

#wcopc-billing-fields .form-row {
	margin: 0 0 12px;
}

#wcopc-billing-fields label {
	display: block;
	font-size: 12.5px;
	color: var(--wcopc-text-dim);
	margin-bottom: 6px;
}

#wcopc-billing-fields input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wcopc-border-soft);
	border-radius: var(--wcopc-radius-sm);
	box-sizing: border-box;
	background: #ffffff;
	color: var(--wcopc-text);
	font-size: 14px;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

#wcopc-billing-fields input::placeholder {
	color: rgba(36, 20, 66, 0.35);
}

#wcopc-billing-fields input:focus {
	outline: none;
	border-color: var(--wcopc-accent);
	background: #faf6ff;
	box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.16);
}

/* ---------- Billing already-filled summary ---------- */

.wcopc-billing-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--wcopc-border-soft);
	border-radius: var(--wcopc-radius-sm);
	background: rgba(255, 255, 255, 0.9);
	margin-bottom: 12px;
}

.wcopc-billing-summary-text {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wcopc-text);
}

.wcopc-billing-edit-btn {
	flex: 0 0 auto;
	border: 1px solid var(--wcopc-accent);
	background: transparent;
	color: var(--wcopc-accent);
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: var(--wcopc-radius-sm);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.wcopc-billing-edit-btn:hover {
	background: var(--wcopc-accent);
	color: #fff;
}

.wcopc-billing-save-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
	margin-bottom: 12px;
}

.wcopc-billing-save-btn {
	flex: 0 0 auto;
	border: none;
	background: linear-gradient(135deg, var(--wcopc-accent) 0%, var(--wcopc-accent-2) 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: var(--wcopc-radius-sm);
	cursor: pointer;
	transition: opacity 0.15s;
}

.wcopc-billing-save-btn:hover {
	opacity: 0.9;
}

.wcopc-billing-save-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.wcopc-billing-save-msg {
	font-size: 12.5px;
	font-weight: 600;
	color: #2f9e44;
}

.wcopc-billing-save-msg.is-error {
	color: #e03131;
}

/* ---------- Accordion group sections ---------- */

.wcopc-accordion {
	background: var(--wcopc-white-card);
	border: 1.5px solid var(--wcopc-border);
	border-radius: var(--wcopc-radius-md);
	padding: 14px 14px 6px;
	margin-bottom: 12px;
}

.wcopc-accordion .wcopc-accordion-panel {
	padding-top: 2px;
}

.wcopc-accordion-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.wcopc-chevron {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--wcopc-text-dim);
	border-bottom: 2px solid var(--wcopc-text-dim);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-right: 2px;
}

.wcopc-accordion.is-open > .wcopc-accordion-toggle .wcopc-chevron {
	transform: rotate(-135deg);
}

/* ---------- Payment method grid (white cards on dark bg) ---------- */

.wcopc-gateway-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 8px;
}

@media (max-width: 480px) {
	.wcopc-gateway-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wcopc-gateway-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 2px solid transparent;
	border-radius: var(--wcopc-radius-sm);
	padding: 10px 8px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
	background: var(--wcopc-white-card);
	position: relative;
	/* Card-er total height fixed, jate logo-r aspect ratio jai hok na keno
	   proti card ek-i shize e thake ebong 70/30 split-ta reliably hishab
	   kora jay (column-flex e flex-basis %-age tokhoni thik-vabe kaj kore
	   jokhon parent-er height definite thake). */
	height: 108px;
	box-sizing: border-box;
}

.wcopc-gateway-card:hover {
	transform: translateY(-1px);
}

.wcopc-gateway-card.active {
	border-color: var(--wcopc-accent);
	box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.28), 0 6px 16px rgba(123, 47, 247, 0.25);
}

.wcopc-gateway-card.active::after {
	content: '\2713';
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wcopc-accent) 0%, var(--wcopc-accent-2) 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(123, 47, 247, 0.45), 0 0 0 2px #fff;
	z-index: 2;
}

.wcopc-gateway-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wcopc-gateway-icon {
	/* Card-er 70% - logo-r jonno fixed zone. flex-shrink:0 diye eta kokhono
	   choto hoye jabe na, image bhitore fit hobe (object-fit diye), card-er
	   shize kokhono change hobe na. */
	flex: 0 0 70%;
	width: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
}

/* Separator line - card-er nijer horizontal padding (8px) cancel kore ::after
   diye eta card-er BAM/DAN border porjonto full-bleed kore deya hocche, jate
   line-ta card-er left/right border-er shathe connected mone hoy. */
.wcopc-gateway-icon::after {
	content: '';
	position: absolute;
	left: -8px;
	right: -8px;
	bottom: 0;
	border-bottom: 1px solid var(--wcopc-border-soft);
}

.wcopc-gateway-icon img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.wcopc-gateway-title {
	/* Card-er baki 30% - gateway name-er jonno fixed zone, shobshomoy
	   bottom-e thake. */
	flex: 0 0 30%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.25;
	color: #2a1655;
	overflow: hidden;
}

.wcopc-gateway-fields {
	grid-column: 1 / -1;
	border: 1px dashed var(--wcopc-border-soft);
	border-radius: var(--wcopc-radius-sm);
	padding: 10px 12px;
	margin: -2px 0 10px;
	color: var(--wcopc-text-dim);
	font-size: 13px;
}

.wcopc-gateway-fields a {
	color: var(--wcopc-accent-light);
}

/* ---------- Error box ---------- */

.wcopc-error {
	background: rgba(255, 70, 70, 0.12);
	color: #ff9b9b;
	border: 1px solid rgba(255, 70, 70, 0.3);
	padding: 10px 12px;
	border-radius: var(--wcopc-radius-sm);
	margin: 4px 0 14px;
	font-size: 13.5px;
}

/* Wallet balance-insufficient/login-required warning-er jonno alada,
   beshi-prominent red/white style - onno shob shadharon error message
   (fill_required, select_payment_text etc.) er default style-e kono
   change hoy na, shudhu ei nirdishto warning-eই ei class ta lage. */
.wcopc-error.wcopc-error--wallet {
	background: #d32f2f;
	color: #ffffff;
	border: 1px solid #d32f2f;
	font-weight: 600;
}

/* ---------- Place Order button ---------- */

.wcopc-place-order-btn {
	display: block;
	width: 100%;
	border: none;
	border-radius: 999px;
	padding: 15px 20px;
	/* Active/clickable obosthay dark blue - user er request onujayi. */
	background: linear-gradient(90deg, #0f2f66 0%, #163d80 100%);
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 47, 102, 0.45);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, opacity 0.12s ease;
}

.wcopc-place-order-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(15, 47, 102, 0.55);
}

.wcopc-place-order-btn:active:not(:disabled) {
	transform: translateY(0);
}

.wcopc-place-order-btn.wcopc-loading,
.wcopc-place-order-btn:disabled {
	/* Disabled obosthay flat, muted gray - jate active (dark blue) obosthar
	   shathe clearly alada bojha jay, shudhu shei-i gradient-er opacity kome
	   gele "bujha jay na" problem-ta hoy. */
	background: #ced2d9;
	color: #7a8290;
	opacity: 1;
	pointer-events: none;
	box-shadow: none;
	cursor: not-allowed;
}

/* Original theme "Add to cart" button is replaced by wcopc-place-order-btn above. */
form.cart .single_add_to_cart_button,
form.variations_form .single_add_to_cart_button {
	display: none !important;
}

/* ===== Gateway Grid Fix ===== */
/* NOTE: age eikhane ekta `repeat(auto-fit, minmax(220px, 1fr))` fluid grid
   rule chilo, jeta upor-e defined fixed 3/2-column grid-take OVERRIDE kore
   dito (CSS-e pore ashar karone win kore jeto). auto-fit fluid hoya-r fole
   column shonkha container width ebong KOTOgulo gateway card ache tar upor
   nirbhor kore change hoye jeto - kono ekta payment method disable/hide
   thakle ba width thik na mile card gulo line-break/uneven hoye jeto. Ekhon
   eta shoriye deya hoy, upor-er fixed `repeat(3,1fr)` / mobile-e `repeat(2,1fr)`
   grid-i eken shobshomoy effective thakbe - kotogulo gateway card ache
   (2/3/4/onno kono shonkha) tar upor nirbhor na kore, layout shobshomoy
   fixed thakbe: Desktop 3-ta pashapashi, Mobile 2-ta pashapashi. */

.wcopc-gateway-fields{
    grid-column:1 / -1;
    width:100%;
    margin-top:15px;
    clear:both;
}


.wcopc-wallet .wcopc-gateway-grid{
    grid-template-columns:1fr !important;
}

.wcopc-wallet .wcopc-gateway-card{
    width:100%;
    max-width:100%;
}

/* Wallet card-er icon/image box-e (logo image-er bodole) balance amount
   text hisebe boshe (jemon "Current Balance: 1,721৳") - green + bold. */
.wcopc-wallet .wcopc-gateway-icon{
    color:#1c7a33;
    font-weight:800;
    font-size:14.5px;
    line-height:1.35;
    text-align:center;
}

/* ===============================
   Checkout Separator
================================= */

.wcopc-checkout-separator{
    height:1px;
    background:var(--wcopc-border);
    clear:both;
    width:100%;
    margin:22px 0 20px;
}

/* ---------- Payment Method heading (above gateway groups) ---------- */

.wcopc-payment-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--wcopc-text);
}

.wcopc-payment-title-text {
	font-size: 15px;
	font-weight: 700;
}

/* ---------- Gateway group: whole section (header + content), not just the
   header bar, gets the dark background when opened - matching the intended
   design where an open section is visually one unified dark panel. ---------- */

.wcopc-accordion.is-open {
	background: linear-gradient( 135deg, var( --wcopc-bg-mid ) 0%, var( --wcopc-bg-deep ) 100% );
	border-color: transparent;
}

.wcopc-accordion.is-open > .wcopc-accordion-toggle {
	padding-bottom: 12px;
	margin-bottom: 10px;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.15 );
}

.wcopc-accordion.is-open .wcopc-heading {
	color: #ffffff !important;
}

.wcopc-accordion.is-open .wcopc-chevron {
	border-right-color: #ffffff;
	border-bottom-color: #ffffff;
}

/* Gateway card (white tile) content stays as-is for contrast - shudhu
   dashed description box (.wcopc-gateway-fields) ta shorashori dark
   background er upor boshe, tai eta a light color/border chai. */
.wcopc-accordion.is-open .wcopc-gateway-fields {
	color: #e7defa;
	border-color: rgba( 255, 255, 255, 0.35 );
}

.wcopc-accordion.is-open .wcopc-gateway-fields a {
	color: #d9b8ff;
}

.wcopc-checkout-container{
    clear:both;
    width:100%;
    display:block;
}

/* ---------- Wallet: insufficient balance (disabled) state ---------- */

/* Section-ta dim dekhabe, jate customer bujhte pare eta ei muhurte
   use kora jabe na, kintu poRte/dekhte parbe. */
.wcopc-accordion.wcopc-disabled {
	opacity: 0.55;
}

.wcopc-accordion.wcopc-disabled .wcopc-accordion-toggle {
	cursor: not-allowed;
}

.wcopc-accordion.wcopc-disabled .wcopc-gateway-card {
	cursor: not-allowed;
	pointer-events: none;
}

/* ---------- Coupon Code ---------- */

.wcopc-coupon-wrap {
	margin: 2px 0 18px;
}

.wcopc-coupon-toggle-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px dashed var(--wcopc-accent);
	border-radius: var(--wcopc-radius-md);
	background: rgba(155, 77, 255, 0.06);
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.wcopc-coupon-toggle-row:hover {
	background: rgba(155, 77, 255, 0.12);
}

.wcopc-coupon-icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wcopc-accent) 0%, var(--wcopc-accent-2) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.18);
}

.wcopc-coupon-toggle-text {
	flex: 1 1 auto;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wcopc-text);
}

.wcopc-coupon-toggle-arrow {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--wcopc-accent);
	border-bottom: 2px solid var(--wcopc-accent);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-right: 3px;
}

.wcopc-coupon-toggle-row.is-open .wcopc-coupon-toggle-arrow {
	transform: rotate(-135deg);
	margin-right: 0;
	margin-top: 4px;
}

.wcopc-coupon-box {
	margin-top: 10px;
	padding: 14px;
	border: 1.5px solid var(--wcopc-border-soft);
	border-radius: var(--wcopc-radius-md);
	background: #ffffff;
}

.wcopc-coupon-input-row {
	display: flex;
	gap: 8px;
}

.wcopc-coupon-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--wcopc-border-soft);
	border-radius: var(--wcopc-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--wcopc-text);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.wcopc-coupon-input::placeholder {
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	color: rgba(36, 20, 66, 0.35);
}

.wcopc-coupon-input:focus {
	outline: none;
	border-color: var(--wcopc-accent);
	background: #faf6ff;
	box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.16);
}

.wcopc-coupon-input:disabled {
	opacity: 0.6;
}

.wcopc-coupon-apply-btn {
	flex: 0 0 auto;
	border: none;
	background: linear-gradient(135deg, var(--wcopc-accent) 0%, var(--wcopc-accent-2) 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 0 20px;
	border-radius: var(--wcopc-radius-sm);
	cursor: pointer;
	transition: opacity 0.15s, transform 0.12s ease;
	white-space: nowrap;
}

.wcopc-coupon-apply-btn:hover:not(:disabled) {
	opacity: 0.92;
	transform: translateY(-1px);
}

.wcopc-coupon-apply-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.wcopc-coupon-msg {
	font-size: 12.5px;
	font-weight: 600;
	margin-top: 8px;
	min-height: 0;
}

.wcopc-coupon-msg.is-error {
	color: #e03131;
}

.wcopc-coupon-msg.is-success {
	color: #2f9e44;
}

.wcopc-coupon-applied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.wcopc-coupon-applied-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(47, 158, 68, 0.14) 0%, rgba(47, 158, 68, 0.06) 100%);
	border: 1px solid rgba(47, 158, 68, 0.35);
}

.wcopc-coupon-applied-code {
	font-size: 12.5px;
	font-weight: 800;
	color: #1c7a33;
	letter-spacing: 0.5px;
}

.wcopc-coupon-applied-code::before {
	content: '\2713 ';
}

.wcopc-coupon-applied-amount {
	font-size: 12.5px;
	font-weight: 700;
	color: #2f9e44;
}

.wcopc-coupon-remove-btn {
	flex: 0 0 auto;
	border: 1px solid #e03131;
	background: transparent;
	color: #e03131;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: var(--wcopc-radius-sm);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.wcopc-coupon-remove-btn:hover:not(:disabled) {
	background: #e03131;
	color: #fff;
}

.wcopc-coupon-remove-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.wcopc-wallet-note {
	font-size: 11.5px;
	font-weight: 700;
	color: #d92d2d;
	background: rgba(217, 45, 45, 0.1);
	border-radius: 10px;
	padding: 3px 10px;
	margin-left: auto;
	white-space: normal;
	text-align: left;
	line-height: 1.35;
	max-width: 60%;
	flex: 0 1 auto;
}