/* Client Care page: feature pop-ups. Loaded on the Client Care page only. */

/* The feature line that opens a pop-up */
.care-pop-trigger { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; line-height: inherit; color: inherit; text-align: left; cursor: pointer; }
.care-pop-trigger__text { text-decoration: underline dotted; text-decoration-color: var(--lime-dark, #8aa600); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.care-pop-trigger__ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 8px; border-radius: 50%; border: 1.5px solid var(--lime-dark, #8aa600); color: #111; vertical-align: -4px; transition: background-color .2s, border-color .2s; }
.care-pop-trigger:hover .care-pop-trigger__text { text-decoration-style: solid; }
.care-pop-trigger:hover .care-pop-trigger__ic { background: var(--lime, #c5e000); border-color: var(--lime, #c5e000); }
.care-pop-trigger:focus-visible { outline: 2px solid #111; outline-offset: 4px; border-radius: 4px; }
.care-pop-trigger .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The pop-up */
.care-pop { width: min(640px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink-2, #333); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: hidden; cursor: auto; }
.care-pop::backdrop { background: rgba(10, 10, 10, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.care-pop__inner { position: relative; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 46px) clamp(26px, 4vw, 42px); }
.care-pop button, .care-pop a { cursor: pointer; }

.care-pop__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #e2e2e2; border-radius: 50%; background: #fff; color: #111; transition: background-color .2s, border-color .2s; }
.care-pop__close:hover { background: var(--lime, #c5e000); border-color: var(--lime, #c5e000); }
.care-pop__close:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.care-pop__label { margin: 0 56px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .22em; color: var(--lime-dark, #8aa600); }
.care-pop__title { margin: 10px 56px 0 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; color: var(--ink, #111); }
.care-pop__label + .care-pop__title { margin-right: 0; }
.care-pop__list { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid #ececec; }
.care-pop__list li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px 0; border-bottom: 1px solid #ececec; font-size: 17px; line-height: 1.45; }
.care-pop__list li span:last-child { padding-top: 2px; }
.care-pop__tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lime, #c5e000); display: flex; align-items: center; justify-content: center; }
.care-pop__note { margin: 22px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-3, #666); }

/* Keep the site's reveal animations off the pop-up content */
.care-pop__title, .care-pop__list li, .care-pop__label { opacity: 1 !important; visibility: visible !important; }

/* Opening */
.care-pop[open] { animation: care-pop-in .35s cubic-bezier(.2, .8, .2, 1); }
.care-pop[open]::backdrop { animation: care-pop-fade .35s ease; }
@keyframes care-pop-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes care-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .care-pop[open], .care-pop[open]::backdrop { animation: none; } }

@media (max-width: 599px) {
	.care-pop { border-radius: 22px; max-height: calc(100dvh - 32px); }
	.care-pop__inner { max-height: calc(100dvh - 32px); padding-top: 26px; }
	.care-pop__close { top: 12px; right: 12px; }
	.care-pop__list li { font-size: 16px; gap: 12px; }
}
