/* ==========================================================
   Recovery Centers Modal
   ========================================================== */

:root {
    --rc-blue: #002b4d;
    --rc-blue-light: #0b5fff;
    --rc-border: rgba(0, 43, 77, .12);
    --rc-bg: #f6f9fc;
}

/* Overlay
========================================================== */

.recovery-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    background: rgba(0, 27, 51, .58);

    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.recovery-modal.is-open {
    opacity: 1;
    visibility: visible;
}

body.recovery-modal-open {
	overflow: hidden;
}

button.wildfire-recovery-action-card {
	width: 100%;
	border: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

/* Window
========================================================== */

.recovery-modal__dialog {
    width: min(900px, 100%);
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 22px 60px rgba(0,0,0,.24);
}

/* Header
========================================================== */

.recovery-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.75rem;
    margin: 0;
    background: var(--rc-blue);
    color: #fff;
}

.recovery-modal__title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
}

.recovery-modal__subtitle {
    margin: .45rem 0 0;
    color: rgba(255,255,255,.9);
    line-height: 1.6;
}

.recovery-modal__close {
    width: 34px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: .2s;

    position: relative;
    top: -0.5rem;
    right: -1rem;
}

.recovery-modal__close:hover {
    background: rgba(255,255,255,.2);
}

/* Body
========================================================== */

.recovery-modal__body {
    overflow-y: auto;

    padding: 1.75rem;

    background: var(--rc-bg);
}

/* Grid
========================================================== */

.recovery-centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1.25rem;
}

/* Card
========================================================== */

.recovery-center-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
	padding: 1.3rem;

	background: #fff;

	border: 1px solid var(--rc-border);
	border-radius: 18px;

	transition:
		transform .2s ease,
		box-shadow .2s ease,
		border-color .2s ease;
}

.recovery-center-card:hover {
	border-color: rgba(0, 43, 77, .22);

	box-shadow:
		0 12px 30px rgba(0, 43, 77, .10);
}

/* Icon and heading row */

.recovery-center-card__header {
	display: flex;
	align-items: center;
	gap: .85rem;
	min-width: 0;
}

.recovery-center-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;

	width: 46px;
	height: 46px;

	border-radius: 12px;

	background: rgba(11, 95, 255, .12);
	color: var(--rc-blue-light);

	font-size: 1.15rem;
}

.recovery-center-card h3 {
	min-width: 0;
	margin: 0;

	color: var(--rc-blue);

	font-size: 1.05rem;
	font-weight: 750;
	line-height: 1.35;
}

/* Address */

.recovery-center-card__address {
	margin: -1rem 0 0 0;
	padding-left: calc(46px + .85rem);

	color: #4a5568;

	font-size: .95rem;
	font-style: normal;
	line-height: 1.6;
}

/* Buttons
========================================================== */

.recovery-center-card__actions {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: .65rem;

	margin-top: auto;
}

.recovery-center-card__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;

	min-width: 0;
	padding: .55rem .75rem;

	border: 1px solid transparent;
	border-radius: 10px;

	font-size: .86rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;

	transition:
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease,
		transform .2s ease;
}

.recovery-center-card__actions a:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.recovery-center-card__actions a:focus-visible {
	outline: 3px solid rgba(11, 95, 255, .3);
	outline-offset: 2px;
}

.recovery-center-card__actions a:first-child {
	background: var(--rc-blue);
	color: #fff;
}

.recovery-center-card__actions a:first-child:hover {
	background: #003c6b;
}

.recovery-center-card__actions a:last-child {
	background: #fff;
	border-color: rgba(0, 43, 77, .2);
	color: var(--rc-blue);
}

.recovery-center-card__actions a:last-child:hover {
	background: rgba(0, 43, 77, .06);
	border-color: rgba(0, 43, 77, .32);
}

/* Scrollbar
========================================================== */

.recovery-modal__body::-webkit-scrollbar {
    width: 10px;
}

.recovery-modal__body::-webkit-scrollbar-thumb {
    background: rgba(0,43,77,.25);
    border-radius: 999px;
}

/* Responsive
========================================================== */

@media (max-width: 768px) {
	.recovery-modal {
		padding: 1rem;
	}

	.recovery-modal__header {
		padding: 1.25rem;
	}

	.recovery-modal__body {
		padding: 1.25rem;
	}

	.recovery-centers-grid {
		grid-template-columns: 1fr;
	}

	.recovery-center-card__actions {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.recovery-center-card {
		padding: 1.1rem;
	}

	.recovery-center-card__address {
		padding-left: 0;
	}

	.recovery-center-card__actions a {
		padding: .55rem .45rem;
		font-size: .82rem;
	}
}