.mwr-wrap {
	display: inline-block;
}

.mwr-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1rem;
	border: none;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mwr-trigger:hover,
.mwr-trigger:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
	outline: 2px solid #128c7e;
	outline-offset: 2px;
}

.mwr-trigger__icon {
	display: flex;
	line-height: 0;
}

/* Modal */
.mwr-modal[hidden] {
	display: none !important;
}

.mwr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.mwr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.mwr-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mwr-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.mwr-modal__title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
}

.mwr-form__section {
	border: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.mwr-form__section legend,
.mwr-form__section label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.mwr-input,
.mwr-select,
.mwr-textarea {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

.mwr-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.5rem;
	gap: 0.5rem;
}

.mwr-cal-month {
	font-weight: 600;
	flex: 1;
	text-align: center;
}

.mwr-calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	font-size: 0.85rem;
}

.mwr-cal-dow {
	text-align: center;
	font-weight: 600;
	color: #666;
	padding: 0.25rem 0;
}

.mwr-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 6px;
	background: #f0f0f0;
	cursor: default;
	color: #999;
	font-size: inherit;
	padding: 0;
}

.mwr-cal-day--empty {
	background: transparent;
}

.mwr-cal-day--open {
	background: #e8f8ee;
	color: #1a1a1a;
	cursor: pointer;
}

.mwr-cal-day--open:hover {
	background: #25d366;
	color: #fff;
}

.mwr-cal-day--selected {
	background: #128c7e !important;
	color: #fff !important;
}

.mwr-cal-day--past,
.mwr-cal-day--closed {
	opacity: 0.45;
}

.mwr-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 8px;
	max-height: 220px;
	overflow-y: auto;
	padding: 2px;
}

.mwr-time-grid__hint {
	margin: 0;
	color: #666;
	font-size: 0.9rem;
	grid-column: 1 / -1;
}

.mwr-time-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	min-height: 68px;
	padding: 6px 4px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fff;
	color: #1a1a1a;
	font: inherit;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mwr-time-btn:hover:not(:disabled):not(.mwr-time-btn--full) {
	border-color: #25d366;
	background: #f4fdf7;
}

.mwr-time-btn--selected {
	border-color: #128c7e;
	background: #e8f8ee;
	color: #128c7e;
	box-shadow: 0 0 0 2px rgba(18, 140, 126, 0.15);
}

.mwr-time-btn--full {
	opacity: 0.4;
	cursor: not-allowed;
	background: #f5f5f5;
}

.mwr-time-btn__label {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
}

.mwr-time-btn__sub {
	margin-top: 2px;
	font-size: 0.7rem;
	font-weight: 500;
	color: #666;
	line-height: 1;
}

.mwr-time-btn--selected .mwr-time-btn__sub {
	color: #128c7e;
}

.mwr-form__error {
	color: #b32d2e;
	font-size: 0.9rem;
	margin: 0 0 0.75rem;
}

.mwr-form__actions {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.mwr-btn {
	padding: 0.6rem 1rem;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	cursor: pointer;
	font-size: 0.95rem;
}

.mwr-btn--secondary {
	background: #f0f0f0;
	color: #333;
}

.mwr-btn--whatsapp {
	background: #25d366;
	color: #fff;
}

.mwr-btn--whatsapp:hover {
	background: #20bd5a;
}

/* Solo icono (sin etiqueta) */
.mwr-trigger:not(:has(.mwr-trigger__label)) {
	padding: 0.75rem;
	border-radius: 50%;
}

.mwr-optional {
	font-weight: 400;
	color: #646970;
	font-size: 0.9em;
}

.mwr-field-hint {
	margin: 6px 0 0;
	font-size: 0.85em;
	color: #646970;
}
