/* DevF Custom Payments — frontend */
.devf-custom-pay-elementor-messages {
	margin-bottom: 1rem;
}

.devf-custom-pay-elementor-message {
	padding: 0.65rem 0.85rem;
	border-radius: 4px;
	margin-bottom: 0.5rem;
	font-size: 0.95em;
}

.devf-custom-pay-elementor-message--success {
	background: #edfaef;
	border: 1px solid #46b450;
}

.devf-custom-pay-elementor-message--pending {
	background: #fff8e5;
	border: 1px solid #dba617;
}

.devf-custom-pay-elementor-message--failed {
	background: #fcf0f1;
	border: 1px solid #d63638;
}

/* Theme hooks: --borderradius, --maincolor; plugin fallbacks */
.devf-custom-pay-form-wrap {
	--devf-pay-borderradius: 8px;
	--devf-pay-maincolor: #2271b1;
	--devf-pay-button-bg: #26a69a;
	--devf-pay-panel-border: #e8e8e8;
	--devf-pay-input-border: #e0e0e0;
}

.devf-custom-pay-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

.devf-custom-pay-panel {
	background: #fff;
	border: 1px solid var(--devf-pay-panel-border);
	border-radius: var(--borderradius, var(--devf-pay-borderradius));
	padding: 1.1rem 1.25rem 1.15rem;
	box-sizing: border-box;
}

.devf-custom-pay-panel--contact .devf-custom-pay-field:last-child,
.devf-custom-pay-panel--contact .devf-custom-pay-field--last {
	margin-bottom: 0;
}

.devf-custom-pay-rule {
	display: block;
	width: 100%;
	height: 0;
	margin: 1.1rem 0 0.85rem;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--devf-pay-panel-border);
	box-sizing: border-box;
}

.devf-custom-pay-title {
	margin-bottom: 1rem;
}

.devf-custom-pay-label,
.devf-custom-pay-gateways-legend {
	font-weight: 500;
	color: #666;
	font-size: 12px;
	line-height: 2em;
	padding: 5px 0;
	display: block;
}

.devf-custom-pay-panel--payment .devf-custom-pay-gateways {
	margin-top: 0;
}

.devf-custom-pay-gateways {
	border: 0;
	padding: 0;
	margin: 0 0 0.25rem;
	min-inline-size: 0;
}

.devf-custom-pay-gateways-legend {
	padding: 0;
	margin-bottom: 0.35rem;
}

.devf-custom-pay-field--terms {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.devf-custom-pay-terms-label {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.55rem;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.55;
	font-weight: normal;
	color: #333;
}

.devf-custom-pay-terms-checkbox {
	flex-shrink: 0;
	margin-top: 0.2em;
	width: 18px;
	height: 18px;
	accent-color: var(--maincolor, var(--devf-pay-maincolor));
	cursor: pointer;
}

.devf-custom-pay-terms-text {
	flex: 1 1 auto;
	min-width: 0;
}

.devf-custom-pay-terms-required {
	color: #d63638;
	font-weight: 600;
	margin-inline-start: 0.15em;
	white-space: nowrap;
}

.devf-custom-pay-terms-text .devf-custom-pay-terms-link {
	color: var(--maincolor, var(--devf-pay-maincolor));
	text-decoration: underline;
}

.devf-custom-pay-input--readonly,
.devf-custom-pay-input[readonly] {
	background-color: #f7f7f7;
	cursor: not-allowed;
	border-color: var(--devf-pay-input-border);
}

.devf-custom-pay-amount-hint {
	display: block;
	margin-top: 0.4rem;
	font-size: 12px;
	line-height: 1.55;
	color: #666;
	font-weight: 400;
}

.devf-custom-pay-amount-hint[hidden] {
	display: none;
}

.devf-custom-pay-input[type="tel"],
.devf-custom-pay-input[type="number"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	outline: 0;
	padding: 10px 14px;
	border: 1px solid var(--devf-pay-input-border);
	border-radius: var(--borderradius, var(--devf-pay-borderradius));
	line-height: 22px;
	font-size: 13px;
	display: block;
	background: #fff;
	color: #222;
}

.devf-custom-pay-gateway-item {
	margin: 0 0 0.65rem;
}

.devf-custom-pay-gateway-item:last-child {
	margin-bottom: 0;
}

.devf-custom-pay-gateway-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	margin: 0;
}

.devf-custom-pay-gateway-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 24px;
}

.devf-custom-pay-gateway-icon img {
	max-height: 28px;
	width: auto;
	vertical-align: middle;
	display: inline-block;
}

.devf-custom-pay-gateway-label-group {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
}

.devf-custom-pay-gateway-title {
	font-size: inherit;
	color: inherit;
	line-height: 1.4;
	text-align: end;
}

.devf-custom-pay-gateway-radio {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--maincolor, var(--devf-pay-maincolor));
	cursor: pointer;
}

.devf-custom-pay-gateway-desc {
	display: none;
	margin-top: 10px;
	padding: 15px 20px;
	background: #f7f8fa;
	border-radius: var(--borderradius, var(--devf-pay-borderradius));
	font-size: 12px;
	line-height: 1.5;
	color: #666;
	text-align: start;
	width: 100%;
	box-sizing: border-box;
}

.devf-custom-pay-gateway-item:has(.devf-custom-pay-gateway-radio:checked) .devf-custom-pay-gateway-desc {
	display: block;
}

.devf-custom-pay-gateways + .devf-custom-pay-submit {
	margin-top: 0.75rem;
}

.devf-custom-pay-submit {
	margin: 0;
	padding-top: 0.15rem;
}

.devf-custom-pay-button.button,
.devf-custom-pay-button {
	background-color: var(--devf-pay-button-bg, var(--maincolor, var(--devf-pay-maincolor))) !important;
	display: block;
	width: 100%;
	line-height: 1.35;
	font-size: 15px;
	font-weight: 600;
	margin-top: 0;
	color: #fff !important;
	border: none !important;
	padding: 0.85rem 1rem;
	border-radius: var(--borderradius, var(--devf-pay-borderradius));
	transition: opacity 0.2s ease, filter 0.2s ease, transform 0.15s ease;
	font-family: inherit;
	cursor: pointer;
	box-sizing: border-box;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	text-shadow: none;
}

.devf-custom-pay-button:hover,
.devf-custom-pay-button:focus {
	opacity: 0.95;
	filter: brightness(1.04);
}

.devf-custom-pay-button:active {
	transform: translateY(1px);
}

.devf-custom-pay-notice--error {
	padding: 0.75rem 1rem;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	margin-bottom: 1rem;
}

.devf-custom-pay-receipt-message {
	margin-bottom: 20px;
}

.devf-custom-pay-receipt-card {
	--devf-receipt-paper-bg: #ffffff;
	max-width: 460px;
	margin: 0 auto;
	background-color: var(--devf-receipt-paper-bg);
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	position: relative;
}

.devf-custom-pay-receipt-card--success {
	--devf-receipt-paper-bg: #f8fff5;
	background-color: #f8fff5;
	border-color: #c4efb1;
	border-bottom: none;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.devf-custom-pay-receipt-card--waiting {
	--devf-receipt-paper-bg: #fffdf5;
	background-color: #fffdf5;
	border-color: #efe5b1;
}

.devf-custom-pay-receipt-card--failed {
	--devf-receipt-paper-bg: #fff5f5;
	background-color: #fff5f5;
	border-color: #efb1b1;
}

.devf-custom-pay-receipt-inner {
	padding: 24px 22px 20px;
	position: relative;
}

.devf-custom-pay-receipt-card::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -7px;
	width: 100%;
	height: 14px;
	background-size: 14px 14px;
	background-repeat: repeat-x;
	background-image: radial-gradient(circle at 7px 7px, var(--devf-receipt-paper-bg) 7px, transparent 7px);
	pointer-events: none;
}

.devf-custom-pay-receipt-title {
	text-align: center;
	margin: 0 0 16px;
	font-size: 28px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #2f2f2f;
}

.devf-custom-pay-receipt-lines {
	border-top: 2px dashed #d8d8d8;
	border-bottom: 2px dashed #d8d8d8;
	padding: 14px 0 10px;
}

.devf-custom-pay-receipt-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 6px 0;
	border-bottom: 1px dotted #ececec;
}

.devf-custom-pay-receipt-row:last-child {
	border-bottom: 0;
}

.devf-custom-pay-receipt-label {
	font-weight: 500;
	font-size: 13px;
	color: #666;
}

.devf-custom-pay-receipt-value {
	font-size: 13px;
	color: #222;
	text-align: right;
	word-break: break-word;
}

.devf-custom-pay-receipt-row--total .devf-custom-pay-receipt-label,
.devf-custom-pay-receipt-row--total .devf-custom-pay-receipt-value {
	font-weight: 700;
	color: #111;
}

.devf-custom-pay-receipt-qr {
	margin-top: 16px;
	text-align: center;
}

.devf-custom-pay-receipt-qr-target {
	display: inline-block;
	line-height: 0;
}

.devf-custom-pay-receipt-qr-target canvas,
.devf-custom-pay-receipt-qr-target img {
	display: inline-block;
	vertical-align: top;
}

.devf-custom-pay-my-account {
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
	width: 100%;
	margin-bottom: 10px;
	border-radius: var(--borderradius, var(--devf-pay-borderradius));
	overflow: hidden;
	display: block;
	padding: 15px;
	background-color: #fff;
	box-sizing: border-box;
}

.devf-custom-pay-my-account .my_account_transactions {
	box-shadow: 0 0 0 1px rgb(0 0 0 / 5%);
	border-right: none;
	margin: 5px 0 0;
	text-align: right;
	width: 100%;
	clear: both;
	font-family: var(--mainfontnum, inherit);
	background-color: #fff;
	border-collapse: collapse;
	border-radius: var(--borderradius, var(--devf-pay-borderradius));
}

.devf-custom-pay-my-account .my_account_transactions tr {
	border-bottom: 1px solid #eeeff1;
	transition: all 0.3s ease-in-out;
}

.devf-custom-pay-my-account .my_account_transactions th,
.devf-custom-pay-my-account .my_account_transactions td {
	padding: 13px 10px !important;
	vertical-align: middle;
	text-align: center !important;
	font-weight: 500 !important;
	font-size: 12px !important;
}

.devf-custom-pay-my-account .my_account_transactions tbody tr:last-child {
	border-bottom: none;
}

.devf-custom-pay-my-account .my_account_transactions td:last-child {
	border-left: none;
}

.devf-custom-pay-my-account .devf-custom-pay-receipt-link {
	white-space: nowrap;
	display: inline-block;
	font-size: 11px;
	padding: 6px 15px;
	border: none;
	color: #fff;
	background: lightseagreen;
	border-radius: 7px;
	text-decoration: none;
	transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.devf-custom-pay-my-account .devf-custom-pay-receipt-link:hover,
.devf-custom-pay-my-account .devf-custom-pay-receipt-link:focus {
	color: #333;
	background-color: #fff !important;
	box-shadow: 0 0 0 1px #eee !important;
}

.devf-custom-pay-pagination {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}
