/**
 * Thenine Paddle checkout styles
 *
 * 1. Overlay mode (toast + hidden panel)
 * 2. Inline mode (embedded frame)
 * 3. Shared toast
 */

/* 1. Overlay — hide panel; toast provides feedback */
.thenine-paddle-pay--overlay {
	display: none !important;
}

/* 2. Inline — visible payment area on checkout / order-pay */
.thenine-paddle-pay--inline {
	display: block;
	width: 100%;
	max-width: 640px;
	margin: 1.5rem auto 2rem;
	padding: 0;
	background: transparent;
}

.thenine-paddle-pay--inline .thenine-paddle-status {
	display: none;
	min-height: 0;
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	text-align: center;
}

.thenine-paddle-pay--inline .thenine-paddle-status:not(:empty) {
	display: block;
}

.thenine-paddle-inline-frame {
	width: 100%;
	min-height: 450px;
	margin: 0 auto;
	background: transparent;
}

.thenine-paddle-inline-frame iframe {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
}

.thenine-paddle-pay--inline .thenine-paddle-pay-button {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 1rem auto 0;
}

body.thenine-paddle-inline-auto .thenine-paddle-pay--inline {
	max-width: none;
	margin: 0;
	width: 100%;
}

.checkout-panel__sidebar .thenine-paddle-pay--inline .thenine-paddle-status {
	text-align: left;
}

.checkout-panel__sidebar .thenine-paddle-inline-frame {
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: hidden;
}

body.thenine-paddle-inline-auto .thenine-paddle-pay--inline .thenine-paddle-pay-button {
	display: none;
}

body.thenine-paddle-inline-auto .thenine-paddle-pay--inline.is-error .thenine-paddle-pay-button {
	display: block;
}

/* 3. Toast (overlay feedback) */
.thenine-paddle-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 400;
	max-width: min(420px, 92vw);
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 500;
	color: #0a0a0a;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, 120%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	pointer-events: none;
	text-align: center;
}

.thenine-paddle-toast.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
	pointer-events: auto;
}
