/**
 * RR Returns — frontend styles.
 * Version: 1.1.2
 *
 * Fonts (Cormorant Garamond / Inter) are provided by Elementor Pro — no @import here.
 */

.rr-ret {
	--rr-primary: #800020;
	--rr-accent: #D9B382;
	--rr-text: #1A1A1A;
	--rr-grey: #333333;
	--rr-light: #F9F9F9;
	--rr-white: #FFFFFF;
	--rr-secondary: #F5F5F5;
	font-family: "Inter", sans-serif;
	color: var(--rr-text);
	max-width: 720px;
}

.rr-ret .rr-ret-title {
	font-family: "Cormorant Garamond", serif !important;
	font-size: 26px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: 0.01em;
	color: var(--rr-text) !important;
	margin: 0 0 12px;
}

/* Stage (loaded form) — breathing room below the orders/requests list. */
#rr-ret-stage:not(:empty) {
	margin-top: 48px;
}

#rr-ret-stage .rr-ret-form > .rr-ret-title,
#rr-ret-stage .rr-ret-panel > .rr-ret-title {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rr-accent);
	margin-bottom: 20px;
}

.rr-ret-title--spaced {
	margin-top: 36px;
}

.rr-ret-intro {
	font-size: 15px;
	color: var(--rr-grey);
	margin: 0 0 20px;
}

/* Fields */
.rr-ret-field {
	margin-bottom: 16px;
}

.rr-ret-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
	color: var(--rr-grey);
}

.rr-ret-field input[type="text"],
.rr-ret-field input[type="email"],
.rr-ret-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	background: var(--rr-white);
	font-family: "Inter", sans-serif;
	font-size: 15px;
	color: var(--rr-text);
	box-sizing: border-box;
}

.rr-ret-field input:focus,
.rr-ret-field textarea:focus {
	outline: none;
	border-color: var(--rr-primary);
	box-shadow: 0 0 0 1px var(--rr-primary);
}

.rr-ret-req {
	color: var(--rr-primary);
}

/* Buttons */
.rr-ret-btn {
	display: inline-block;
	background: var(--rr-primary);
	color: var(--rr-white);
	border: 1px solid var(--rr-primary);
	padding: 11px 24px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.rr-ret-btn:hover {
	background: #66001a;
	color: var(--rr-white);
}

.rr-ret-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rr-ret-btn-ghost {
	background: transparent;
	color: var(--rr-primary);
	margin-left: 8px;
}

.rr-ret-btn-ghost:hover {
	background: var(--rr-secondary);
	color: var(--rr-primary);
}

.rr-ret-btn-sm {
	padding: 8px 14px;
	font-size: 13px;
}

/* Type panel */
.rr-ret-types {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.rr-ret-type.is-disabled {
	padding: 12px 14px;
	background: var(--rr-light);
	border: 1px solid #eee;
}

.rr-ret-type-off {
	display: block;
	font-weight: 500;
	color: #999;
}

.rr-ret-type-reason {
	display: block;
	font-size: 13px;
	color: #999;
	margin-top: 2px;
}

/* Items */
.rr-ret-items {
	border: 1px solid #eee;
	padding: 16px;
	margin: 0 0 20px;
}

.rr-ret-items legend {
	font-family: "Cormorant Garamond", serif;
	font-size: 18px;
	font-weight: 600;
	padding: 0 8px;
}

.rr-ret-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--rr-secondary);
}

.rr-ret-item:last-child {
	border-bottom: none;
}

.rr-ret-item.is-excluded .rr-ret-item-name {
	color: #999;
}

.rr-ret-item-main {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 15px;
}

.rr-ret-item-main input[type="checkbox"] {
	accent-color: #800020;
	width: 17px;
	height: 17px;
}

.rr-ret-item-note {
	font-size: 12px;
	color: var(--rr-accent);
	white-space: nowrap;
}

.rr-ret-item-qty {
	font-size: 13px;
	color: var(--rr-grey);
	display: flex;
	align-items: center;
	gap: 6px;
}

.rr-ret-item-qty-input {
	width: 64px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	font-family: "Inter", sans-serif;
}

/* Legal + meta */
.rr-ret-legal {
	font-size: 14px;
	font-style: italic;
	color: var(--rr-grey);
	border-left: 3px solid var(--rr-accent);
	padding-left: 12px;
	margin: 0 0 18px;
}

.rr-ret-meta {
	background: var(--rr-light);
	padding: 14px 16px;
	margin: 0 0 18px;
	font-size: 14px;
}

.rr-ret-meta p {
	margin: 4px 0;
}

.rr-ret-note {
	font-size: 13px;
	color: var(--rr-grey);
	margin: 0 0 16px;
}

/* Messages */
.rr-ret-msg {
	margin-top: 14px;
	font-size: 14px;
	min-height: 1em;
}

.rr-ret-msg--error {
	color: var(--rr-primary);
	font-weight: 500;
}

.rr-ret-success {
	background: var(--rr-light);
	border: 1px solid var(--rr-accent);
	padding: 28px;
	text-align: center;
}

.rr-ret-success .rr-ret-title {
	color: var(--rr-primary);
	font-size: 34px;
	margin-bottom: 8px;
}

/* Account: requests table */
.rr-ret-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 8px;
}

.rr-ret-table th,
.rr-ret-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--rr-secondary);
}

.rr-ret-table th {
	font-weight: 600;
	background: var(--rr-light);
}

/* Account: orders list */
.rr-ret-orders {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rr-ret-order {
	border: 1px solid #eee;
	padding: 14px 16px;
}

.rr-ret-order-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
}

.rr-ret-order-num {
	font-family: "Cormorant Garamond", serif;
	font-size: 19px;
	font-weight: 600;
}

.rr-ret-order-date {
	font-size: 13px;
	color: #999;
}

.rr-ret-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rr-ret-order-note {
	font-size: 13px;
	color: #999;
	margin: 8px 0 0;
}

/* Badges */
.rr-ret-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	background: var(--rr-secondary);
	color: var(--rr-grey);
}

.rr-ret-badge--pending {
	background: #FBF3E4;
	color: #8a6a2f;
}

.rr-ret-badge--approved {
	background: #E8F3E8;
	color: #2e6b2e;
}

.rr-ret-badge--rejected {
	background: #F9E6EA;
	color: #800020;
}

.rr-ret-badge--received {
	background: #E8EEF5;
	color: #2f5a8a;
}

.rr-ret-badge--refunded {
	background: #333333;
	color: #FFFFFF;
}

@media (max-width: 600px) {
	.rr-ret-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.rr-ret-order-head {
		flex-direction: column;
		gap: 2px;
	}
}
