/* Internal Right of Withdrawal — self-contained, theme-agnostic. All rules scoped to .cw-ar-* */

.cw-ar-wrap { display: inline; }

/* Reset the trigger to look like a regular inline text link. Inherits font,
 * size and color from surrounding copy; underlined like a default <a>. */
.cw-ar-trigger {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.cw-ar-trigger:hover { text-decoration: underline; }
.cw-ar-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.cw-ar-overlay[hidden] { display: none; }
.cw-ar-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 16px;
	overflow-y: auto;
	background: rgba(15, 23, 42, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	box-sizing: border-box;
}

.cw-ar-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: #fff;
	color: #1f2937;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	padding: 28px 26px 24px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.5;
	animation: cw-ar-pop .18s ease;
}
@keyframes cw-ar-pop {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.cw-ar-modal *, .cw-ar-modal *::before, .cw-ar-modal *::after { box-sizing: border-box; }

.cw-ar-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px 8px;
}
.cw-ar-close:hover { color: #1f2937; }

.cw-ar-title { margin: 0 30px 10px 0; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.cw-ar-help {
	position: relative;
	display: inline-block;
	font-size: 14px;
	font-weight: 400;
}
.cw-ar-help__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #1f2937;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	user-select: none;
	transition: background-color .15s ease, color .15s ease;
}
.cw-ar-help__icon:hover,
.cw-ar-help:focus-within .cw-ar-help__icon {
	background: #1f2937;
	color: #fff;
	outline: none;
}
.cw-ar-help__body {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(320px, 78vw);
	background: #fff;
	color: #1f2937;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
	padding: 14px 16px;
	font-size: 13px;
	line-height: 1.5;
	z-index: 5;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	pointer-events: none;
}
.cw-ar-help:hover .cw-ar-help__body,
.cw-ar-help:focus-within .cw-ar-help__body {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}
.cw-ar-help__body strong { display: block; margin-bottom: 6px; }
.cw-ar-help__body ol { margin: 0 0 8px; padding-left: 18px; }
.cw-ar-help__body li { margin-bottom: 4px; }
.cw-ar-help__note { display: block; margin-top: 8px; color: #4b5563; }

.cw-ar-loggedin {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #334155;
	font-size: 13px;
}
.cw-ar-notice {
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef3c7;
	color: #92400e;
	font-size: 13px;
}
.cw-ar-field select {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #1f2937;
}
.cw-ar-intro { margin: 0 0 18px; color: #4b5563; font-size: 14px; }
.cw-ar-intro p { margin: 0 0 8px; }

.cw-ar-field { margin-bottom: 14px; }
.cw-ar-row { display: flex; gap: 12px; }
.cw-ar-row .cw-ar-field { flex: 1; }
@media (max-width: 460px) { .cw-ar-row { flex-direction: column; gap: 0; } }

.cw-ar-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #374151;
}
.cw-ar-req { color: #dc2626; }

.cw-ar-field input,
.cw-ar-field textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #1f2937;
}
.cw-ar-field input:focus,
.cw-ar-field textarea:focus {
	outline: none;
	border-color: #1f2937;
	box-shadow: 0 0 0 3px rgba(31, 41, 55, .12);
}
.cw-ar-field input.cw-ar-invalid,
.cw-ar-field textarea.cw-ar-invalid { border-color: #dc2626; }

.cw-ar-help { margin: 5px 0 0; font-size: 12px; color: #6b7280; }

.cw-ar-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 6px 0 16px;
	font-size: 14px;
	cursor: pointer;
}
.cw-ar-check input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }

.cw-ar-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cw-ar-feedback {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.cw-ar-feedback[hidden] { display: none; }

.cw-ar-actions { display: flex; justify-content: flex-end; gap: 10px; }
.cw-ar-actions[hidden] { display: none; }

.cw-ar-myaccount-order {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 4px 0 16px;
	padding: 12px 14px;
	border: 1px solid #e6ecf1;
	border-radius: 10px;
	background: #f8fafc;
}
.cw-ar-myaccount-order__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #6b7280;
	font-weight: 600;
}
.cw-ar-myaccount-order__value { font-weight: 700; color: #0f172a; }

.cw-ar-cancel, .cw-ar-submit, .cw-ar-done {
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	padding: .65em 1.2em;
	border-radius: 8px;
	border: 1px solid #d1d5db;
}
.cw-ar-cancel { background: #fff; color: #374151; }
.cw-ar-cancel:hover { background: #f3f4f6; }
.cw-ar-submit, .cw-ar-done { background: #1f2937; color: #fff; border-color: #1f2937; }
.cw-ar-submit:hover, .cw-ar-done:hover { opacity: .92; }
.cw-ar-submit:disabled { opacity: .55; cursor: progress; }

.cw-ar-success { text-align: center; padding: 14px 0 6px; }
.cw-ar-success[hidden] { display: none; }
.cw-ar-success__icon {
	width: 56px; height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	font-size: 30px;
	line-height: 56px;
}
.cw-ar-success__text { font-size: 15px; color: #374151; margin-bottom: 18px; }

.cw-ar-form[hidden] { display: none; }

html.cw-ar-lock, body.cw-ar-lock { overflow: hidden; }
