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

.internal-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>. */
.internal-trigger {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.internal-trigger:hover { text-decoration: underline; }
.internal-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.internal-overlay[hidden] { display: none; }
.internal-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;
}

.internal-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: internal-pop .18s ease;
}
@keyframes internal-pop {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

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

/* !important throughout so page-builder / theme `button` styling can never
 * hijack the close control's appearance or position. */
.internal-close {
	position: absolute !important;
	top: 12px !important;
	right: 14px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 28px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	color: #9ca3af !important;
	padding: 4px 8px !important;
}
.internal-close:hover { color: #1f2937 !important; }

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

.internal-help {
	position: relative;
	display: inline-block;
	font-size: 14px;
	font-weight: 400;
}
.internal-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;
}
.internal-help__icon:hover,
.internal-help:focus-within .internal-help__icon {
	background: #1f2937;
	color: #fff;
	outline: none;
}
.internal-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;
}
.internal-help:hover .internal-help__body,
.internal-help:focus-within .internal-help__body {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}
.internal-help__body strong { display: block; margin-bottom: 6px; }
.internal-help__body ol { margin: 0 0 8px; padding-left: 18px; }
.internal-help__body li { margin-bottom: 4px; }
.internal-help__note { display: block; margin-top: 8px; color: #4b5563; }

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

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

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

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

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

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

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

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

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

.internal_withdrawal-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;
}
.internal_withdrawal-myaccount-order__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #6b7280;
	font-weight: 600;
}
.internal_withdrawal-myaccount-order__value { font-weight: 700; color: #0f172a; }

/* !important throughout so page-builder / theme `button` styling can never
 * hijack the modal's own action buttons. */
.internal-cancel, .internal-submit, .internal-done {
	font: inherit !important;
	font-weight: 600 !important;
	width: auto !important;
	margin: 0 !important;
	cursor: pointer !important;
	padding: .65em 1.2em !important;
	border-radius: 8px !important;
	border: 1px solid #d1d5db !important;
	box-shadow: none !important;
	text-transform: none !important;
	text-decoration: none !important;
}
.internal-cancel { background: #fff !important; color: #374151 !important; }
.internal-cancel:hover { background: #f3f4f6 !important; }
.internal-submit, .internal-done { background: #1f2937 !important; color: #fff !important; border-color: #1f2937 !important; }
.internal-submit:hover, .internal-done:hover { opacity: .92 !important; }
.internal-submit:disabled { opacity: .55 !important; cursor: progress !important; }

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

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

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