/**
 * Credelio Recordatorio — Agenda.
 */

.credelio-recordatorio-agenda {
	width: 100%;
	max-width: min(100%, 1920px);
	margin: 0 auto;
	padding: clamp(8px, 1.5vw, 24px) clamp(16px, 2.8vw, 40px) clamp(48px, 5vw, 80px);
	box-sizing: border-box;
	background: #ffffff;
}

.credelio-recordatorio-agenda__inner {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}

.credelio-recordatorio-agenda__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: clamp(36px, 4vw, 52px);
}

.credelio-recordatorio-agenda__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.credelio-recordatorio-agenda__label {
	color: #1a1a1a;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.credelio-recordatorio-agenda__control {
	position: relative;
	display: flex;
	align-items: center;
}

.credelio-recordatorio-agenda__icon,
.elementor .credelio-recordatorio-agenda__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
	pointer-events: none;
	z-index: 1;
}

.credelio-recordatorio-agenda__icon--fallback {
	border-radius: 50%;
	background: #005032;
}

.credelio-recordatorio-agenda__icon--fallback.credelio-recordatorio-agenda__icon--paw::after,
.credelio-recordatorio-agenda__icon--fallback.credelio-recordatorio-agenda__icon--box::after,
.credelio-recordatorio-agenda__icon--fallback.credelio-recordatorio-agenda__icon--calendar::after,
.credelio-recordatorio-agenda__icon--fallback.credelio-recordatorio-agenda__icon--bell::after {
	content: "";
	position: absolute;
	inset: 5px;
	border: 2px solid #fff;
	border-radius: 2px;
}

.credelio-recordatorio-agenda__input {
	width: 100%;
	min-height: 52px;
	padding: 12px 18px 12px 48px;
	border: 1.5px solid #a8dec0;
	border-radius: 999px;
	background: #ffffff;
	color: #1a1a1a;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.3;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.credelio-recordatorio-agenda__control .credelio-recordatorio-agenda__input,
.elementor .credelio-recordatorio-agenda__control .credelio-recordatorio-agenda__input {
	padding-left: 48px;
	border: 1.5px solid #a8dec0;
	border-radius: 999px;
	background-color: #ffffff;
	box-shadow: none;
}

.credelio-recordatorio-agenda__input:focus {
	outline: none;
	border-color: #005032;
	box-shadow: 0 0 0 3px rgba(0, 80, 50, 0.12);
}

.credelio-recordatorio-agenda__select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23005032' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	cursor: pointer;
}

.credelio-recordatorio-agenda__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-height: 52px;
	margin-top: 6px;
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	background: #005032;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.credelio-recordatorio-agenda__submit:hover {
	background: #003d26;
}

.credelio-recordatorio-agenda__form-error {
	margin: 0;
	color: #b42318;
	font-size: 13px;
	line-height: 1.35;
}

.credelio-recordatorio-agenda__list-block {
	margin-bottom: clamp(28px, 3vw, 40px);
}

.credelio-recordatorio-agenda__list-block:has(.credelio-recordatorio-agenda__list:empty) .credelio-recordatorio-agenda__list-head {
	display: none;
}

.credelio-recordatorio-agenda__list-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.credelio-recordatorio-agenda__list-title {
	margin: 0;
	color: #005032;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 700;
	line-height: 1.25;
}

.credelio-recordatorio-agenda__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 50%;
	background: #e7f5ee;
	color: #005032;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.credelio-recordatorio-agenda__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.credelio-recordatorio-agenda__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid #e8e8e8;
	border-radius: 16px;
	background: #ffffff;
	box-sizing: border-box;
}

.credelio-recordatorio-agenda__item-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.credelio-recordatorio-agenda__item-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #e7f5ee;
	flex-shrink: 0;
}

.credelio-recordatorio-agenda__item-icon,
.elementor .credelio-recordatorio-agenda__item-icon {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.credelio-recordatorio-agenda__item-icon--fallback {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #005032;
}

.credelio-recordatorio-agenda__item-copy {
	min-width: 0;
}

.credelio-recordatorio-agenda__item-name {
	margin: 0;
	color: #1a1a1a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.credelio-recordatorio-agenda__item-meta {
	margin: 2px 0 0;
	color: #6b6b6b;
	font-size: 13px;
	line-height: 1.3;
}

.credelio-recordatorio-agenda__item-aside {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.credelio-recordatorio-agenda__dose {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #e7f5ee;
	color: #005032;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.credelio-recordatorio-agenda__dose-icon {
	width: 14px;
	height: 14px;
	border-radius: 2px;
	background: #005032;
	flex-shrink: 0;
}

.credelio-recordatorio-agenda__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1.5px solid #e0e0e0;
	border-radius: 50%;
	background: #ffffff;
	color: #005032;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.credelio-recordatorio-agenda__action:hover {
	background: #e7f5ee;
	border-color: #005032;
}

.credelio-recordatorio-agenda__action svg {
	display: block;
	width: 16px;
	height: 16px;
}

.credelio-recordatorio-agenda__empty {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #6b6b6b;
	font-size: 14px;
	line-height: 1.4;
}

.credelio-recordatorio-agenda__empty-icon,
.elementor .credelio-recordatorio-agenda__empty-icon {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.credelio-recordatorio-agenda__list:not(:empty) + .credelio-recordatorio-agenda__empty {
	display: none;
}

.credelio-recordatorio-agenda__calendars {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.credelio-recordatorio-agenda__calendar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: #005032;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
	flex: 0 1 220px;
}

.credelio-recordatorio-agenda__calendar-btn:hover {
	background: #003d26;
}

.credelio-recordatorio-agenda__calendar-btn:disabled {
	opacity: 1;
	cursor: not-allowed;
}

.credelio-recordatorio-agenda__calendar-icon,
.elementor .credelio-recordatorio-agenda__calendar-icon {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.credelio-recordatorio-agenda__calendar-icon--fallback {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	background: #ffffff;
}

@media (max-width: 800px) {
	.credelio-recordatorio-agenda__calendars {
		display: grid;
		grid-template-columns: 1fr;
	}

	.credelio-recordatorio-agenda__item {
		flex-direction: column;
		align-items: flex-start;
	}

	.credelio-recordatorio-agenda__item-aside {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

@media (max-width: 640px) {
	.credelio-recordatorio-agenda {
		padding-left: 12px;
		padding-right: 12px;
	}

	.credelio-recordatorio-agenda__inner {
		max-width: 100%;
	}
}
