.af-tp-pay-wrap {
	margin: 0;
}

.af-tp-modal[hidden] {
	display: none !important;
}

.af-tp-pay-open,
.af-tp-submit {
	display: inline-block;
	padding: 12px 28px;
	background: #c81e3b;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease;
}

.af-tp-pay-open:hover,
.af-tp-submit:hover {
	background: #a4162f;
}

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

.af-tp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.af-tp-modal-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 16px;
	background: #fff;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	font-family: inherit;
	text-align: right;
}

.af-tp-modal-close {
	position: absolute;
	top: 10px;
	left: 14px;
	background: none;
	border: 0;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #777;
}

.af-tp-modal-box h3 {
	margin: 0 0 6px;
	font-size: 18px;
}

.af-tp-modal-price {
	margin: 0 0 18px;
	padding: 10px 14px;
	background: #f6f7f9;
	border-radius: 8px;
	font-weight: 700;
	color: #c81e3b;
}

.af-tp-form label {
	display: block;
	margin: 12px 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.af-tp-form input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d3d7dd;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
}

.af-tp-form input:focus {
	outline: none;
	border-color: #c81e3b;
}

.af-tp-methods {
	margin: 18px 0 0;
	padding: 0;
	border: 0;
}

.af-tp-methods legend {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.af-tp-method {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 10px 12px;
	border: 1px solid #d3d7dd;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.af-tp-method input[type="radio"] {
	width: auto;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.af-tp-method.is-active {
	border-color: #c81e3b;
	background: #fdf3f4;
}

.af-tp-warning {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: #fff7e0;
	color: #b7791f;
	border-radius: 8px;
	font-size: 14px;
}

.af-tp-elementor-warning {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: #fff7e0;
	color: #b7791f;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
}

.af-tp-submit {
	width: 100%;
	margin-top: 18px;
}

.af-tp-error {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: #fdecea;
	color: #c0392b;
	border-radius: 8px;
	font-size: 14px;
}

.af-tp-result {
	font-family: inherit;
	text-align: right;
}

.af-tp-result-head {
	text-align: center;
	padding: 12px 0 20px;
}

.af-tp-result-head h2 {
	margin: 10px 0 6px;
	font-size: 22px;
}

.af-tp-result-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	font-size: 28px;
	color: #fff;
}

.af-tp-result-success .af-tp-result-icon {
	background: #27ae60;
}

.af-tp-result-fail .af-tp-result-icon {
	background: #c0392b;
}

.af-tp-invoice {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 20px;
	direction: rtl;
	table-layout: auto;
	text-align: right;
}

.af-tp-invoice th,
.af-tp-invoice td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid #e9ecef;
	text-align: right;
	font-size: 15px;
}

.af-tp-invoice tbody tr:hover {
	background: transparent;
	font-weight: inherit;
}

.af-tp-invoice th {
	width: 40%;
	color: #667085;
	font-weight: 600;
}

.af-tp-print {
	text-align: center;
}

.af-tp-print button {
	padding: 10px 24px;
	border: 1px solid #c81e3b;
	color: #c81e3b;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
}

.af-tp-retry {
	display: inline-block;
	padding: 12px 28px;
	background: #c81e3b;
	color: #fff;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease;
}

.af-tp-retry:hover {
	background: #a4162f;
	color: #fff;
}

@media print {
	.af-tp-modal,
	.af-tp-print {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.af-tp-box {
		box-shadow: none;
		border: 0;
	}
}
