.raf-box {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 20px;
}

.raf-refer-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.raf-refer-form input[type="text"],
.raf-refer-form input[type="email"],
.raf-refer-form input[type="tel"] {
	width: 100%;
	max-width: 100%;
	padding: 8px;
	margin-bottom: 10px;
}

.raf-button {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
}

.raf-button:hover {
	background: #135e96;
}

.raf-button-secondary {
	background: #f0f0f1;
	color: #1d2327;
	border: 1px solid #ccc;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
}

.raf-form-message {
	margin-top: 10px;
	padding: 10px;
	border-radius: 4px;
}

.raf-form-message.success {
	background: #edfaef;
	color: #1a7a2e;
	border: 1px solid #b7e5bd;
}

.raf-form-message.error {
	background: #fdecea;
	color: #b32d2e;
	border: 1px solid #f5c2c0;
}

.raf-boxes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.raf-stat-box {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.raf-stat-number {
	font-size: 28px;
	font-weight: 700;
	color: #1d2327;
}

.raf-stat-label {
	margin-top: 6px;
	color: #555;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.raf-total-earned {
	cursor: pointer;
	border-color: #2271b1;
	transition: box-shadow 0.15s ease;
}

.raf-total-earned:hover,
.raf-total-earned:focus {
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.35);
	outline: none;
}

.raf-stat-hint {
	margin-top: 4px;
	font-size: 12px;
	color: #2271b1;
}

.raf-modal {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.raf-modal-inner {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 90%;
	max-width: 420px;
	max-height: 80vh;
	overflow-y: auto;
    margin-top: 20px;
}

.raf-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

.raf-modal-error {
	background: #fdecea;
	color: #b32d2e;
	border: 1px solid #f5c2c0;
	padding: 8px;
	border-radius: 4px;
	margin-top: 10px;
}

#raf-withdraw-amount {
	width: 100%;
	padding: 8px;
	font-size: 16px;
}

.raf-order-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 260px;
	overflow-y: auto;
}

.raf-order-option {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px 12px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.raf-order-option.selected {
	border-color: #2271b1;
	background: #f0f6fb;
}

.raf-order-option .raf-order-total {
	font-weight: 600;
}

.recommend_a_friend_wrapper {
    position: relative;
}

@media (max-width: 600px) {
	.raf-boxes {
		grid-template-columns: 1fr;
	}
}
