/* =============================================================================
   Arco Studio — Booking Calendar Widget
   ============================================================================= */

/* Prevent Elementor's CSS reset from overriding the HTML `hidden` attribute. */
.arco-booking-calendar [hidden] {
	display: none !important;
}

.arco-booking-calendar {
	font-family: inherit;
	color: inherit;
}

.arco-calendar__title {
	margin: 0 0 24px;
	font-size: 1.4em;
	line-height: 1.3;
}

.arco-label {
	display: block;
	margin-bottom: 12px;
	font-weight: 600;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.65;
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */

.arco-progress {
	margin-bottom: 32px;
}

.arco-progress__steps {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.arco-progress__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.arco-progress__bullet {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid #d5d8dc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85em;
	color: #aaa;
	background: #fff;
	transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.arco-progress__connector {
	flex: 1;
	height: 2px;
	background: #e0e0e0;
	margin-bottom: 22px;
	transition: background 0.35s;
}

.arco-progress__connector.is-filled {
	background: #27ae60;
}

.arco-progress__label {
	font-size: 0.72em;
	font-weight: 600;
	color: #bbb;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: color 0.3s;
}

.arco-progress__step.is-active .arco-progress__bullet {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}
.arco-progress__step.is-active .arco-progress__label {
	color: #c0392b;
}

.arco-progress__step.is-done .arco-progress__bullet {
	background: #27ae60;
	border-color: #27ae60;
	color: #fff;
}
.arco-progress__step.is-done .arco-progress__label {
	color: #27ae60;
}

/* ── Step 1: Service cards — Horizontal layout ──────────────────────────── */

.arco-step--service {
	width: 100%;
}

.arco-service-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 16px;
	width: 100%;
}

.arco-service-card {
	display: flex;
	flex-direction: row;
	width: 100%;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	cursor: default;
	transition: border-color .2s, box-shadow .2s;
}

.arco-service-card:hover {
	border-color: #bbb;
	box-shadow: 0 4px 20px rgba( 0, 0, 0, 0.08 );
}

.arco-service-card--selected {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba( 192, 57, 43, 0.12 );
}

/* ── Media (image) ────────────────────────────────────────────────────────── */

.arco-service-card__media {
	flex: 0 0 40%;
	max-width: 40%;
	overflow: hidden;
	position: relative;
	min-height: 200px;
}

.arco-service-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.arco-service-card__media-placeholder {
	width: 100%;
	height: 100%;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	background: #f4f6f7;
}

/* ── Body (content) ──────────────────────────────────────────────────────── */

.arco-service-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 28px;
}

.arco-service-card__title {
	margin: 0;
	font-size: 1.3em;
	font-weight: 700;
	line-height: 1.2;
}

/* ── Description / Incluye ───────────────────────────────────────────────── */

.arco-service-card__description {
	flex: 1;
	font-size: .9em;
	line-height: 1.6;
	color: inherit;
	position: relative;
	overflow: hidden;
	max-height: 120px;
	transition: max-height .35s ease;
}

.arco-service-card__description.is-expanded {
	max-height: 800px;
}

/* Fade gradient visible solo cuando está truncado */
.arco-service-card__description:not( .is-expanded )::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 36px;
	background: linear-gradient( transparent, #fff );
	pointer-events: none;
}

.arco-service-card__includes-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

/* Asegurar que los bullets del editor de WordPress se muestren */
.arco-service-card__description ul,
.arco-service-card__description ol {
	margin: 4px 0 0;
	padding-left: 1.4em;
}

.arco-service-card__description ul {
	list-style: disc;
}

.arco-service-card__description ol {
	list-style: decimal;
}

.arco-service-card__description li {
	margin-bottom: 2px;
	display: list-item;
}

.arco-service-card__description p {
	margin: 0 0 4px;
}

/* ── Read more toggle ────────────────────────────────────────────────────── */

.arco-service-card__read-more {
	display: inline-block;
	margin-top: 2px;
	padding: 0;
	font-size: .82em;
	font-weight: 600;
	font-family: inherit;
	color: inherit;
	opacity: .6;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	transition: opacity .15s;
	flex-shrink: 0;
}

.arco-service-card__read-more:hover,
.arco-service-card__read-more:active {
	opacity: 1;
	background: none;
}

/* ── Footer (price + button) ─────────────────────────────────────────────── */

.arco-service-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
}

.arco-service-card__price {
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1;
}

.arco-service-card__price .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
}

/* ── Agendar button ──────────────────────────────────────────────────────── */

.arco-service-card__btn {
	display: inline-block;
	padding: 10px 24px;
	font-size: .9em;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
	border-radius: 6px;
	transition: opacity .15s;
}

.arco-service-card__btn:hover {
	opacity: .8;
}

/* ── Responsive: stack on small screens ──────────────────────────────────── */

@media ( max-width: 640px ) {
	.arco-service-grid {
		grid-template-columns: 1fr;
	}
}

@media ( max-width: 480px ) {
	.arco-service-card {
		flex-direction: column;
	}

	.arco-service-card__media {
		flex: none;
		max-width: 100%;
		min-height: 180px;
	}
}

/* ── Two-column layout (steps 2+) ─────────────────────────────────────────── */

.arco-booking-layout {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 28px;
	align-items: start;
}

@media ( max-width: 640px ) {
	.arco-booking-layout {
		grid-template-columns: 1fr;
	}
	.arco-booking-layout__sidebar {
		order: -1;
	}
}

.arco-booking-layout__main {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.arco-booking-layout__main .arco-step {
	margin-top: 0;
}

/* ── Back button ─────────────────────────────────────────────────────────── */

.arco-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: 0.875em;
	font-weight: 600;
	color: #888;
	cursor: pointer;
	transition: color 0.2s;
	align-self: flex-start;
}

.arco-back-btn:hover {
	color: #333;
}

.arco-back-btn svg {
	flex-shrink: 0;
}

/* ── Summary card (right column) ─────────────────────────────────────────── */

.arco-booking-layout__sidebar {
	min-width: 0;
}

.arco-summary-card {
	position: sticky;
	top: 24px;
	background: #f8f9fa;
	border: 1px solid #e8eaed;
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.arco-summary-card__heading {
	margin: 0;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #999;
}

.arco-summary-card__service {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.arco-summary-card__svc-icon {
	font-size: 1.6em;
	line-height: 1;
	flex-shrink: 0;
}

.arco-summary-card__svc-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.arco-summary-card__svc-label {
	font-size: 0.95em;
	font-weight: 700;
	color: inherit;
	line-height: 1.3;
}

.arco-summary-card__badge {
	display: inline-block;
	font-size: 0.68em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: 20px;
	align-self: flex-start;
}

.arco-summary-card__price {
	font-size: 0.88em;
	font-weight: 700;
	color: #333;
	white-space: nowrap;
	flex-shrink: 0;
}

.arco-summary-card__datetime {
	border-top: 1px solid #e4e6e9;
	padding-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.arco-summary-card__dt-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88em;
	color: #444;
}

.arco-summary-card__dt-row svg {
	flex-shrink: 0;
	color: #888;
}

/* ── Step 2a: Subscription choice ─────────────────────────────────────────── */

.arco-sub-choice-card {
	padding: 24px;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
}

.arco-sub-choice__question {
	margin: 0 0 20px;
	font-size: 1.05em;
	font-weight: 500;
	line-height: 1.5;
}

.arco-sub-choice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.arco-sub-yes-btn,
.arco-sub-no-btn {
	flex: 1;
	min-width: 130px;
	padding: 12px 20px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.12s;
}

.arco-sub-yes-btn {
	background: #c0392b;
	color: #fff;
}

.arco-sub-no-btn {
	background: transparent;
	border-color: #ccc;
	color: inherit;
}

.arco-sub-yes-btn:hover { opacity: 0.88; }
.arco-sub-no-btn:hover  { border-color: #888; }

.arco-sub-yes-btn:disabled,
.arco-sub-no-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ── Step 2b: Visual calendar ─────────────────────────────────────────────── */

.arco-cal {
	width: 80%;
	margin: 0 auto;
	font-family: inherit;
}

@media ( max-width: 768px ) {
	.arco-cal { width: 100%; }
}

/* Header: prev / month label / next */
.arco-cal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.arco-cal__month-label {
	font-size: 1em;
	font-weight: 700;
	text-transform: capitalize;
	color: inherit;
}

.arco-cal__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	background: none;
	font-size: 1.3em;
	line-height: 1;
	color: inherit;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.arco-cal__nav:hover:not( :disabled ) {
	background: #f0f3f5;
	border-color: #b0b7be;
}

.arco-cal__nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Weekday labels */
.arco-cal__weekdays {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	margin-bottom: 6px;
}

.arco-cal__weekdays span {
	text-align: center;
	font-size: 0.75em;
	font-weight: 600;
	color: #888;
	padding: 4px 0;
	text-transform: uppercase;
}

/* Day grid */
.arco-cal__grid {
	display: grid;
	grid-template-columns: repeat( 7, 1fr );
	gap: 4px;
}

.arco-cal__loading {
	grid-column: 1 / -1;
	text-align: center;
	padding: 24px 0;
	font-size: 0.88em;
	color: #888;
}

.arco-cal__day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 2px solid transparent;
	font-family: inherit;
	font-size: 0.88em;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
	background: none;
	color: inherit;
}

.arco-cal__day--empty {
	background: none;
	border: none;
	pointer-events: none;
}

/* Availability levels */
.arco-cal__day--high {
	background: #e8f8ef;
	color: #1a7a42;
	border-color: #b8eacb;
}

.arco-cal__day--high:hover {
	background: #27ae60;
	color: #fff;
	border-color: #27ae60;
	transform: translateY( -2px );
	box-shadow: 0 4px 12px rgba( 39, 174, 96, 0.3 );
}

.arco-cal__day--low {
	background: #fff8e6;
	color: #966200;
	border-color: #f5d88a;
}

.arco-cal__day--low:hover {
	background: #f39c12;
	color: #fff;
	border-color: #f39c12;
	transform: translateY( -2px );
	box-shadow: 0 4px 12px rgba( 243, 156, 18, 0.3 );
}

.arco-cal__day--none {
	background: #f5f6f7;
	color: #bbb;
	border-color: transparent;
	cursor: not-allowed;
}

.arco-cal__day--past {
	background: none;
	color: #ccc;
	border-color: transparent;
	cursor: not-allowed;
	text-decoration: line-through;
}

.arco-cal__day--selected,
.arco-cal__day--high.arco-cal__day--selected,
.arco-cal__day--low.arco-cal__day--selected {
	background: #2980b9;
	color: #fff;
	border-color: #2980b9;
	box-shadow: 0 0 0 3px rgba( 41, 128, 185, 0.28 );
	transform: translateY( -2px );
}

/* Legend */
.arco-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.arco-cal__legend li {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78em;
	color: #666;
}

.arco-cal__legend-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex-shrink: 0;
}

.arco-cal__legend-dot--high { background: #27ae60; }
.arco-cal__legend-dot--low  { background: #f39c12; }
.arco-cal__legend-dot--none { background: #d5d8dc; }

/* ── Step 2c: Slot grid ───────────────────────────────────────────────────── */

.arco-slots-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 0;
	font-size: 0.9em;
	color: #666;
}

.arco-spinner {
	flex-shrink: 0;
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid #dde;
	border-top-color: #2980b9;
	border-radius: 50%;
	animation: arco-spin 0.65s linear infinite;
}

@keyframes arco-spin { to { transform: rotate( 360deg ); } }

.arco-slots-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 120px, 1fr ) );
	gap: 10px;
}

.arco-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
	word-break: break-word;
	padding: 13px 8px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.88em;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.arco-slot--available                        { background: var( --arco-slot-color, #27ae60 ); border-color: var( --arco-slot-color, #27ae60 ); }
.arco-slot--available:hover                  { background: var( --arco-slot-hover-color, var( --arco-slot-color, #27ae60 ) ); border-color: var( --arco-slot-hover-color, var( --arco-slot-color, #27ae60 ) ); opacity: 0.85; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.14); }
.arco-slot--blocked                          { background: #bdc3c7; border-color: #bdc3c7; cursor: not-allowed; opacity: 0.5; }
/* Selector doble para ganar en especificidad a .arco-slot--available sin usar !important */
.arco-slot--selected,
.arco-slot--available.arco-slot--selected    { background: #2980b9; border-color: #2980b9; box-shadow: 0 0 0 3px rgba( 41, 128, 185, 0.3 ); transform: translateY(-2px); }

/* ── Slots legend ────────────────────────────────────────────────────────── */

.arco-slots-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.arco-slots-legend__item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78em;
	color: #666;
}

.arco-slots-legend__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex-shrink: 0;
}

.arco-slots-legend__dot--available { background: #27ae60; }
.arco-slots-legend__dot--selected  { background: #2980b9; }
.arco-slots-legend__dot--blocked   { background: #bdc3c7; }

/* ── Step 3: Confirm button ──────────────────────────────────────────────── */

.arco-confirm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 32px;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s, box-shadow 0.2s, transform 0.12s;
}

.arco-confirm-btn:hover:not(:disabled) { opacity: 0.88; box-shadow: 0 4px 16px rgba(192,57,43,.35); }
.arco-confirm-btn:active:not(:disabled){ transform: scale(.97); }
.arco-confirm-btn:disabled             { opacity: 0.45; cursor: not-allowed; }

/* ── Feedback messages ───────────────────────────────────────────────────── */

.arco-feedback {
	margin-top: 14px;
	padding: 11px 16px;
	border-radius: 8px;
	font-size: 0.9em;
	font-weight: 500;
	line-height: 1.5;
}

.arco-feedback--info    { background: #eaf4fb; color: #1a6490; border: 1px solid #aed6f1; }
.arco-feedback--success { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }
.arco-feedback--error   { background: #fdedec; color: #922b21; border: 1px solid #f1948a; }

/* ── Empty state ─────────────────────────────────────────────────────────── */

.arco-empty {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.9em;
	color: #888;
	font-style: italic;
}

/* ── Shared form fields ───────────────────────────────────────────────────── */

.arco-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.arco-field__label {
	font-size: 0.82em;
	font-weight: 600;
	color: #555;
}

.arco-input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d5d8dc;
	border-radius: 8px;
	font-size: 0.95em;
	font-family: inherit;
	background: #fff;
	color: #222;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.arco-input:focus {
	outline: none;
	border-color: #2980b9;
	box-shadow: 0 0 0 3px rgba( 41, 128, 185, 0.15 );
}

/* ── Step 3a: Auth card ───────────────────────────────────────────────────── */

.arco-auth-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
}

.arco-auth-tabs {
	display: flex;
	border-bottom: 1px solid #e5e7eb;
}

.arco-auth-tab {
	flex: 1;
	padding: 14px 16px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 0.9em;
	font-weight: 600;
	color: #888;
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.arco-auth-tab:hover {
	color: #333;
	background: #f5f6f7;
}

.arco-auth-tab.is-active {
	color: #c0392b;
	background: #fff;
	box-shadow: inset 0 -2px 0 #c0392b;
}

.arco-auth-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
}

.arco-auth-panel__hint {
	margin: 0 0 4px;
	font-size: 0.875rem;
	color: #666;
	line-height: 1.5;
}

.arco-auth-submit {
	align-self: flex-start;
	padding: 12px 28px;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s;
}

.arco-auth-submit:hover:not( :disabled ) {
	opacity: 0.86;
}

.arco-auth-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.arco-auth-feedback {
	margin: 0 22px 16px;
}

.arco-reg-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.arco-pass-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.arco-pass-wrap .arco-input {
	padding-right: 44px;
}

.arco-pass-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY( -50% );
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #888;
	line-height: 0;
	transition: color 0.2s;
}

.arco-pass-toggle:hover {
	color: #333;
}

/* ── Step 3b: Identity card ───────────────────────────────────────────────── */

.arco-identity-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
}

.arco-identity-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.arco-identity-header__icon {
	font-size: 2em;
	line-height: 1;
	flex-shrink: 0;
}

.arco-identity-header__title {
	margin: 0 0 4px;
	font-size: 1em;
	font-weight: 700;
}

.arco-identity-header__desc {
	margin: 0;
	font-size: 0.875em;
	color: #666;
	line-height: 1.5;
}

/* ── Textos de verificación de identidad ─────────────────────────────────── */

.arco-identity-intro {
	background: #f0f7ff;
	border-left: 3px solid #2980b9;
	border-radius: 6px;
	padding: 14px 16px;
}

.arco-identity-intro p {
	margin: 0;
	color: #1a3a52;
	white-space: pre-line;
}

.arco-identity-footer-note {
	background: #fafafa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 14px 16px;
}

.arco-identity-footer-note p {
	margin: 0;
	color: #555;
	white-space: pre-line;
}

/* ── File drop zone ───────────────────────────────────────────────────────── */

.arco-ine-uploads {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media ( max-width: 500px ) {
	.arco-ine-uploads {
		grid-template-columns: 1fr;
	}
}

.arco-field--file {
	gap: 8px;
}

.arco-file-drop__label {
	display: block;
	font-size: 0.82em;
	font-weight: 600;
	color: #555;
}

/* Visually hidden real input */
.arco-id-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.arco-file-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 24px 16px;
	border: 2px dashed #c8cdd2;
	border-radius: 10px;
	background: #fafbfc;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s, background 0.2s;
}

.arco-file-drop:hover {
	border-color: #2980b9;
	background: #f0f6fb;
}

.arco-field--error .arco-file-drop {
	border-color: #e74c3c;
	background: #fff5f5;
}

.arco-field--error .arco-file-drop:hover {
	border-color: #c0392b;
	background: #fdecea;
}

.arco-file-drop__icon {
	font-size: 2em;
	line-height: 1;
}

.arco-file-drop__text {
	font-size: 0.9em;
	font-weight: 600;
	color: #333;
}

.arco-file-drop__hint {
	font-size: 0.78em;
	color: #888;
}

.arco-file-drop__name {
	font-size: 0.82em;
	color: #27ae60;
	word-break: break-all;
}


/* ── Identity: Gemini validating notice ─────────────────────────────────── */

.arco-validating-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #eef6ff;
	border: 1px solid #b3d4f5;
	border-radius: 8px;
	font-size: 0.88em;
	color: #1a5fa8;
	line-height: 1.4;
}

.arco-validating-notice__spinner {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2.5px solid #b3d4f5;
	border-top-color: #2980b9;
	border-radius: 50%;
	animation: arco-spin 0.75s linear infinite;
}

@keyframes arco-spin {
	to { transform: rotate( 360deg ); }
}

/* ── Agreements (custom checkboxes) ─────────────────────────────────────── */

.arco-agreements {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.arco-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	line-height: 1.4;
}

.arco-check__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.arco-check__box {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 2px solid #c8cdd2;
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.2s, background 0.2s;
}

.arco-check__input:checked + .arco-check__box {
	border-color: #27ae60;
	background: #27ae60;
}

.arco-check__input:checked + .arco-check__box::after {
	content: '';
	display: block;
	width: 4px;
	height: 8px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate( 45deg ) translate( -1px, -1px );
}

.arco-check__label {
	font-size: 0.875em;
	color: #444;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

/* ── Agreement error state ───────────────────────────────────────────────── */

.arco-check--error .arco-check__box {
	border-color: #e74c3c;
	background: #fdf2f2;
	animation: arco-shake 0.35s ease;
}

.arco-check--error .arco-check__label {
	color: #c0392b;
}

@keyframes arco-shake {
	0%, 100% { transform: translateX(0); }
	25%       { transform: translateX(-4px); }
	75%       { transform: translateX(4px); }
}

/* ── Agreement info button ───────────────────────────────────────────────── */

.arco-agreement-info-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: #2980b9;
	opacity: 0.8;
	transition: opacity 0.15s, color 0.15s;
	line-height: 1;
}

.arco-agreement-info-btn:hover {
	opacity: 1;
	color: #1a5e8a;
}

/* ── Agreement popup ─────────────────────────────────────────────────────── */

.arco-agreement-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.arco-agreement-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.arco-agreement-popup__box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	width: 100%;
	max-width: 560px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.arco-agreement-popup__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px 14px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.arco-agreement-popup__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.arco-agreement-popup__close {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.4rem;
	color: #666;
	line-height: 1;
	transition: background 0.15s, color 0.15s;
}

.arco-agreement-popup__close:hover {
	background: #f3f4f6;
	color: #111;
}

.arco-agreement-popup__body {
	padding: 18px 22px 22px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	font-size: 0.9rem;
	color: #333;
	line-height: 1.65;
}

.arco-agreement-popup__body p { margin: 0 0 12px; }
.arco-agreement-popup__body p:last-child { margin-bottom: 0; }
.arco-agreement-popup__body ul,
.arco-agreement-popup__body ol { padding-left: 20px; margin: 0 0 12px; }
.arco-agreement-popup__body h1,
.arco-agreement-popup__body h2,
.arco-agreement-popup__body h3,
.arco-agreement-popup__body h4 {
	margin: 16px 0 6px;
	font-weight: 700;
	line-height: 1.3;
}

/* ── Identity submit ─────────────────────────────────────────────────────── */

.arco-identity-submit {
	align-self: flex-start;
	padding: 12px 28px;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s;
}

.arco-identity-submit:hover:not( :disabled ) { opacity: 0.86; }
.arco-identity-submit:disabled               { opacity: 0.45; cursor: not-allowed; }

/* ── Step 4: Extras list ─────────────────────────────────────────────────── */

.arco-extras {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.arco-extra-item-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.arco-extra-error {
	margin: 0;
	padding: 6px 10px;
	font-size: 0.8em;
	color: #c0392b;
	background: #fdf2f0;
	border-left: 3px solid #e74c3c;
	border-radius: 0 4px 4px 0;
}

.arco-extra-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s;
}

.arco-extra-item:has( .arco-extra-check:checked ) {
	border-color: #27ae60;
	background: #f4fdf7;
}

/* Visually hidden checkbox inside label */
.arco-extra-check {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.arco-extra-item__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.arco-extra-item__name {
	font-size: 0.92em;
	font-weight: 700;
	color: inherit;
}

.arco-extra-item__desc {
	font-size: 0.8em;
	color: #777;
}

.arco-extra-item__desc ul,
.arco-extra-item__desc ol {
	margin: 4px 0 0;
	padding-left: 1.4em;
}

.arco-extra-item__desc ul { list-style: disc; }
.arco-extra-item__desc ol { list-style: decimal; }
.arco-extra-item__desc li { margin-bottom: 2px; display: list-item; }
.arco-extra-item__desc p  { margin: 0 0 4px; }

.arco-extra-item__price {
	font-size: 0.9em;
	font-weight: 700;
	color: #333;
	white-space: nowrap;
}

/* ── Step 4: Pay total + button ──────────────────────────────────────────── */

.arco-pay-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-top: 1px solid #e5e7eb;
	font-size: 1em;
	font-weight: 600;
	color: #333;
}

.arco-pay-total strong {
	font-size: 1.2em;
}

.arco-pay-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.arco-pay-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 36px;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s, box-shadow 0.2s, transform 0.12s;
}

.arco-pay-btn:hover:not( :disabled ) { opacity: 0.88; box-shadow: 0 4px 16px rgba( 192, 57, 43, 0.35 ); }
.arco-pay-btn:active:not( :disabled ){ transform: scale( 0.97 ); }
.arco-pay-btn:disabled               { opacity: 0.45; cursor: not-allowed; }

/* ── Pending notice ──────────────────────────────────────────────────────── */

.arco-pending-notice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 20px;
	background: #fdf6e3;
	border: 1px solid #f0c040;
	border-radius: 10px;
	color: #7d5a00;
}

.arco-pending-notice__icon {
	font-size: 1.6em;
	line-height: 1;
	flex-shrink: 0;
}

.arco-pending-notice strong {
	display: block;
	margin-bottom: 4px;
	font-size: 0.92em;
}

.arco-pending-notice p {
	margin: 0;
	font-size: 0.85em;
	line-height: 1.5;
}

/* ── Summary card: extras + total ────────────────────────────────────────── */

.arco-summary-card__extras {
	border-top: 1px solid #e4e6e9;
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.arco-summary-card__extras-title {
	margin: 0;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #999;
}

.arco-summary-card__extras-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.arco-summary-card__extra-item {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.83em;
	color: #555;
}

.arco-summary-card__total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #e4e6e9;
	padding-top: 12px;
	font-size: 0.9em;
	font-weight: 600;
	color: #222;
}

/* ── Membership Direct widget ─────────────────────────────────────────────── */

.arco-membership-direct [hidden] {
	display: none !important;
}

.arco-membership-direct__status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #f4f6f8;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 0.88em;
}

.arco-membership-direct__status-hours {
	font-weight: 600;
	color: var( --arco-accent, #2c3e50 );
}

.arco-membership-direct__status-expiry {
	font-size: 0.85em;
	color: #888;
}

.arco-mbd-summary {
	padding: 16px;
	background: #f8f9fa;
	border: 1px solid #e8eaed;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 0.9em;
	color: #444;
}

.arco-mbd-confirm-btn {
	width: 100%;
}

