/* Sebtran PowerFeatures — customer withdrawal (return) UI */

/* Brand accent. Auto-inherits the site theme's primary colour; to force an exact
   brand colour just set --rp-accent on .pf-return-block in your theme CSS. */
.pf-return-block,
.pf-return-account {
	--rp-accent: var(--wp--preset--color--primary, var(--wc-primary, #334e9c));
	--rp-accent-strong: color-mix(in srgb, var(--rp-accent) 80%, #000);
	--rp-accent-soft: color-mix(in srgb, var(--rp-accent) 12%, #fff);
}

.pf-return-block {
	margin: 26px 0;
	padding: 22px 24px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.pf-return-block h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	margin: 0 0 12px;
}
.pf-r-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rp-accent-soft);
	color: var(--rp-accent);
	font-size: 17px;
}
.pf-r-window { margin: 4px 0 14px; color: #334155; }
.pf-r-muted { color: #94a3b8; }

/* Alerts */
.pf-r-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.pf-r-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pf-r-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Existing requests */
.pf-r-existing { margin-bottom: 16px; }
.pf-r-existing h3 { font-size: 14px; margin: 0 0 8px; color: #475569; }
.pf-r-existing ul { list-style: none; margin: 0; padding: 0; }
.pf-r-existing li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-r-date { color: #94a3b8; font-size: 13px; }
.pf-r-reject { flex-basis: 100%; color: #991b1b; font-size: 13px; }

/* Status badges */
.pf-r-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.pf-r-new { background: var(--rp-accent-soft); color: var(--rp-accent); }
.pf-r-approved { background: #ecfdf5; color: #065f46; }
.pf-r-received { background: #fef9c3; color: #854d0e; }
.pf-r-refunded { background: #dcfce7; color: #166534; }
.pf-r-rejected { background: #fef2f2; color: #991b1b; }

/* Form */
.pf-r-details { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.pf-r-details summary {
	cursor: pointer; list-style: none; padding: 14px 18px;
	background: var(--rp-accent); color: #fff; font-weight: 700; font-size: 15px;
	display: flex; align-items: center; justify-content: space-between;
}
.pf-r-details summary::-webkit-details-marker { display: none; }
.pf-r-details summary::after { content: "＋"; font-size: 18px; }
.pf-r-details[open] summary::after { content: "－"; }
.pf-r-formwrap { padding: 18px; }
.pf-r-help { color: #64748b; font-size: 13px; margin: 0 0 12px; }

.pf-r-items { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.pf-r-items th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: #64748b; padding: 6px 8px; border-bottom: 2px solid #e5e7eb; }
.pf-r-items td { padding: 10px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.pf-r-qty { width: 64px; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 8px; }
.pf-r-of { color: #94a3b8; font-size: 13px; margin-left: 4px; }
.pf-r-check { width: 18px; height: 18px; }

/* Product name + ordered-quantity hint */
.pf-r-prod { display: flex; flex-direction: column; gap: 2px; }
.pf-r-prod-name { font-weight: 600; color: #1f2933; }
.pf-r-avail { font-size: 12px; color: #94a3b8; }

.pf-r-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.pf-r-field label { font-weight: 600; font-size: 14px; margin-bottom: 5px; color: #334155; }
.pf-r-field textarea, .pf-r-field input[type=text] {
	padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 9px; font-size: 14px; width: 100%;
}
.pf-r-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #334155; margin: 6px 0 16px; cursor: pointer; }
.pf-r-consent input { margin-top: 3px; }

.pf-r-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-r-submit { background: var(--rp-accent) !important; color: #fff !important; border: none !important; padding: 11px 24px !important; font-weight: 700 !important; border-radius: 9px !important; }
.pf-r-submit:hover { background: var(--rp-accent-strong) !important; }
.pf-r-blank { font-size: 13px; color: var(--rp-accent); }

.pf-r-account-table .pf-r-badge { display: inline-block; }
