/* Glass PayPal (Manual) — checkout styling. Mirrors the glassy, RTL-friendly
   look of the host Glass Checkout plugin. Palette: #b46b49 → #965437, font iransans. */

/* PayPal payment box */
.gpm-pay-box {
	margin-top: 10px;
	padding: 14px 16px;
	background: #f4f5f7;
	border: 1px solid #e3e5ea;
	border-radius: 12px;
	line-height: 1.9;
}

.gpm-pay-box .gpm-label {
	font-weight: 700;
	color: #2b2f36;
}

.gpm-paypal-link-row {
	margin-bottom: 10px;
}

/* "Pay on PayPal" button — same compact shape as the copy buttons, in PayPal blue
   with the PayPal logo icon. */
.gpm-paypal-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #0070ba;
	background: #0070ba;
	border-radius: 8px;
	padding: 6px 14px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
}

.gpm-paypal-link-btn:hover,
.gpm-paypal-link-btn:focus {
	background: #005ea6;
	border-color: #005ea6;
	color: #fff !important;
	text-decoration: none;
}

.gpm-pp-icon {
	flex: 0 0 auto;
}

.gpm-pp-label { font-weight: 700; }

.gpm-amount-row {
	margin: 6px 0;
	font-size: 1.05em;
}

.gpm-instructions {
	margin: 8px 0;
	color: #555;
	font-size: 0.95em;
}

/* Payer-name field */
.gpm-payer-field {
	margin-top: 12px;
}

.gpm-payer-field .gpm-label {
	display: block;
	margin-bottom: 6px;
}

.gpm-payer-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #cdd2db;
	border-radius: 10px;
	font: inherit;
	color: #2b2f36;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.gpm-payer-input:focus {
	outline: none;
	border-color: #b46b49;
	box-shadow: 0 0 0 3px rgba(180, 107, 73, 0.15);
}

.gpm-payer-input::placeholder {
	color: #aeb4bf;
}

.gpm-receipt-field {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #d8dbe2;
}

/* Native file input is hidden; the dropzone label is the interactive target. */
.gpm-file-input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gpm-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 8px;
	padding: 22px 16px;
	text-align: center;
	background: #fff;
	border: 2px dashed #cdd2db;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.gpm-dropzone:hover,
.gpm-dropzone.is-dragover {
	border-color: #b46b49;
	background: #fbf6f2;
}

.gpm-dropzone.is-done {
	border-style: solid;
	border-color: #a8dcb9;
	background: #f1faf4;
}

.gpm-dropzone.is-loading {
	opacity: .7;
	pointer-events: none;
}

.gpm-dropzone__icon {
	font-size: 1.6em;
	line-height: 1;
	color: #b46b49;
}

.gpm-dropzone__text {
	font-weight: 700;
	color: #2b2f36;
}

.gpm-dropzone__hint {
	font-size: 0.82em;
	color: #888;
}

.gpm-receipt-status {
	margin-top: 6px;
	font-size: 0.9em;
	min-height: 1.2em;
}

.gpm-receipt-status.is-ok {
	color: #1c7a3e;
}

.gpm-receipt-status.is-error {
	color: #c0392b;
}

/* Country-warning modal */
.gpm-modal[hidden] {
	display: none;
}

.gpm-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gpm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 22, 28, 0.55);
	backdrop-filter: blur(2px);
}

.gpm-modal__box {
	position: relative;
	max-width: 440px;
	width: calc(100% - 40px);
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	text-align: center;
	font-family: 'iransans', sans-serif;
}

.gpm-modal__title {
	margin: 0 0 10px;
	font-size: 1.25em;
	font-weight: 700;
	color: #965437;
	font-family: 'iransans', sans-serif;
}

.gpm-modal__text,
.gpm-modal__text p {
	color: #333;
	font-size: 0.95em;
	font-weight: 400;
	line-height: 1.9;
	margin: 0 0 18px;
	font-family: 'iransans', sans-serif;
}

.gpm-modal__text p:last-child {
	margin-bottom: 0;
}

/* Matches the host place-order CTA palette. */
.gpm-modal__ok {
	background: linear-gradient(135deg, #b46b49, #965437);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 28px;
	cursor: pointer;
	font-family: 'iransans', sans-serif !important;
	font-size: 1em;
	font-weight: 700;
	transition: filter .15s ease;
}

.gpm-modal__ok:hover {
	filter: brightness(1.07);
}

/* Full-width modal on phones: the box fills the viewport edge-to-edge and pins
   to the bottom as a sheet, instead of a narrow centered card. */
@media (max-width: 560px) {
	.gpm-modal {
		align-items: flex-end;
	}

	.gpm-modal__box {
		max-width: none;
		width: 100%;
		border-radius: 18px 18px 0 0;
		padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
	}

	.gpm-modal__ok {
		width: 100%;
	}
}
