/**
 * Online Subscription frontend — aligned with Novo theme tokens.
 * Accent: #C48F56, radius 4px, RTL.
 */

.os-frontend-wrap,
.os-purchase,
.os-result,
.os-watch,
.os-gateway-page {
	direction: rtl;
	text-align: right;
	color: #404040;
	font-size: 16px;
	line-height: 1.7;
}

.os-card {
	background: #fff;
	border: 1px solid #e8e4df;
	border-radius: 4px;
	padding: 28px 30px;
	margin-bottom: 24px;
}

.os-section-title,
.os-purchase .h4 {
	margin: 0 0 16px;
	font-weight: 700;
}

.os-description p:last-child {
	margin-bottom: 0;
}

.os-amount-box .os-amount {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 18px;
	margin: 0;
}

.os-amount strong {
	color: #c48f56;
	font-size: 28px;
	font-weight: 700;
}

.os-gateways {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.os-gateway-item {
	border: 1px solid #e8e4df;
	border-radius: 4px;
	padding: 14px 16px;
	margin-bottom: 10px;
	background: #faf9f7;
}

.os-gateway-item label {
	font-weight: 700;
	cursor: pointer;
	margin-right: 8px;
}

.os-gateway-box {
	margin-top: 8px;
	font-size: 14px;
	color: #6b6560;
}

.os-guest-note {
	font-size: 14px;
	color: #6b6560;
	margin-bottom: 16px;
}

.os-guest-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.os-guest-grid label {
	display: block;
	font-size: 14px;
}

.os-guest-grid input {
	width: 100%;
	margin-top: 6px;
	border: 1px solid #c48f56;
	border-radius: 4px;
	padding: 10px 12px;
}

@media (max-width: 768px) {
	.os-guest-grid {
		grid-template-columns: 1fr;
	}
}

.os-actions {
	margin-top: 18px;
}

.os-pay-btn,
.os-purchase .button-style1,
.os-result .button-style1,
.os-watch .button-style1,
.os-denied .button-style1 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 28px;
	border: 1px solid #c48f56;
	border-radius: 4px;
	background: #c48f56;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.os-pay-btn:hover,
.os-purchase .button-style1:hover,
.os-result .button-style1:hover,
.os-watch .button-style1.fill:hover {
	background: #b07d45;
	border-color: #b07d45;
	color: #fff !important;
}

.os-pay-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.os-validation {
	color: #8d1b1b;
	margin-top: 10px;
}

.os-alert {
	border-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.os-alert-success {
	background: #f4f8f2;
	border: 1px solid #c48f56;
}

.os-alert-link {
	color: #c48f56;
	margin-right: 8px;
}

.os-modal[hidden] {
	display: none !important;
}

.os-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.os-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(33, 33, 33, 0.65);
}

.os-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.os-modal-close {
	position: absolute;
	top: 8px;
	left: 10px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
}

.os-bank-head {
	background: #c48f56;
	color: #fff;
	padding: 18px 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.os-bank-head span {
	font-size: 12px;
	opacity: 0.9;
}

.os-bank-body,
.os-bank-standalone {
	padding: 20px;
}

.os-bank-amount {
	margin-bottom: 16px;
}

.os-bank-form label {
	display: block;
	margin-bottom: 12px;
	font-size: 13px;
}

.os-bank-form input {
	width: 100%;
	margin-top: 6px;
	border: 1px solid #c48f56;
	border-radius: 4px;
	padding: 10px 12px;
	background: #fff;
}

.os-bank-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.os-bank-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.os-bank-actions .button-style1:not(.fill) {
	background: transparent;
	color: #c48f56 !important;
}

.os-bank-note {
	font-size: 12px;
	color: #888;
	margin-top: 12px;
	margin-bottom: 0;
}

.os-success-state,
.os-error-state,
.os-empty {
	text-align: center;
	padding: 40px 24px;
}

.os-success-icon,
.os-error-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin-bottom: 16px;
}

.os-success-icon {
	background: #c48f56;
	color: #fff;
}

.os-error-icon {
	background: #8d1b1b;
	color: #fff;
}

.os-result-meta {
	list-style: none;
	padding: 0;
	margin: 24px auto;
	max-width: 360px;
	text-align: right;
}

.os-result-meta li {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #eee;
	padding: 10px 0;
}

.os-watch-meta {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.os-watch-meta li span {
	display: block;
	font-size: 13px;
	color: #888;
}

.os-player-frame {
	position: relative;
	padding-top: 56.25%;
	background: #111;
	border-radius: 4px;
	overflow: hidden;
}

.os-player-frame iframe,
.os-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.os-player {
	position: relative;
	width: 100%;
	height: auto;
	background: #111;
	border-radius: 4px;
}

.os-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 13px;
}

.os-status-completed {
	background: #eef6ea;
	color: #2f6b2f;
}

.os-status-failed,
.os-status-cancelled {
	background: #f8ecec;
	color: #8d1b1b;
}

.os-status-pending,
.os-status-processing {
	background: #f7f1e8;
	color: #8a6a3a;
}

.os-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: #212121;
	color: #fff;
	padding: 12px 18px;
	border-radius: 4px;
	z-index: 100000;
	max-width: 90%;
}

.os-toast.is-success {
	background: #c48f56;
}

.os-toast.is-error {
	background: #8d1b1b;
}

@media (max-width: 768px) {
	.os-card {
		padding: 20px 16px;
	}

	.os-amount strong {
		font-size: 22px;
	}

	.os-bank-row,
	.os-bank-actions {
		grid-template-columns: 1fr;
		display: flex;
		flex-direction: column;
	}

	.os-watch-meta {
		flex-direction: column;
		gap: 10px;
	}
}
