/**
 * Shared styling for the PayPal JS SDK popup: the container the SDK
 * renders its buttons into, the blocking "Finishing up" overlay shown while
 * an approved payment is captured, and the inline "cancelled" banner shown when the buyer
 * closes the popup without paying. Used on the signup wizard, the
 * renewal page, and the checkout-result page's Retry button -- see
 * assets/paypal-buttons.js.
 */

/* The buttons themselves are laid out by wp-paypal-gateway-core's
   checkout-buttons.css (a dependency of this stylesheet). */
.mship-paypal-buttons {
	width: 100%;
	margin: 16px 0;
}

.mship-paypal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

.mship-paypal-overlay[hidden] {
	display: none;
}

.mship-paypal-overlay__box {
	background: #fff;
	border-radius: 8px;
	padding: 32px 28px;
	max-width: 360px;
	width: calc( 100% - 32px );
	text-align: center;
	box-shadow: 0 12px 32px rgba( 0, 0, 0, 0.25 );
}

.mship-paypal-overlay__message {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.mship-paypal-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fdf1f1;
	border-left: 4px solid #d63638;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 12px 0;
	color: #7a1a1a;
	font-size: 0.95rem;
	line-height: 1.5;
}

.mship-paypal-banner[hidden] {
	display: none;
}

.mship-paypal-banner__icon {
	flex: 0 0 auto;
	line-height: 1;
	font-size: 1.1rem;
}
