/**
 * Shipping guide modal (cart + checkout).
 */

.silvan-shipping-guide__heading {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 6px;
	width: 100%;
}

.silvan-shipping-guide__open {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1e88e5;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	text-decoration: none;
}

.silvan-shipping-guide__open:hover,
.silvan-shipping-guide__open:focus {
	color: #1565c0;
}

.silvan-shipping-guide__open:hover .silvan-shipping-guide__help,
.silvan-shipping-guide__open:focus .silvan-shipping-guide__help {
	background: #1565c0;
}

.silvan-shipping-guide__open .silvan-shipping-guide__help {
	width: 16px;
	height: 16px;
	font-size: 0.65rem;
}

.silvan-shipping-guide__open-text {
	text-decoration: none;
}

.silvan-shipping-guide[hidden] {
	display: none !important;
}

.silvan-shipping-guide {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.silvan-shipping-guide__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.silvan-shipping-guide__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: min(80vh, 560px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

.silvan-shipping-guide__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #e8e8e8;
	flex-shrink: 0;
}

.silvan-shipping-guide__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111;
	line-height: 1.3;
}

.silvan-shipping-guide__help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1e88e5;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.silvan-shipping-guide__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #444;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.silvan-shipping-guide__close:hover {
	background: #f2f2f2;
}

.silvan-shipping-guide__body {
	padding: 12px 16px 18px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.silvan-shipping-guide__item {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.silvan-shipping-guide__item:last-child {
	border-bottom: 0;
	padding-bottom: 4px;
}

.silvan-shipping-guide__name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #222;
	margin-bottom: 6px;
}

.silvan-shipping-guide__desc {
	font-size: 0.85rem;
	font-weight: 400;
	color: #555;
	line-height: 1.6;
}

.silvan-shipping-guide__desc p {
	margin: 0 0 0.4em;
}

.silvan-shipping-guide__desc p:last-child {
	margin-bottom: 0;
}

body.silvan-shipping-guide-open {
	overflow: hidden;
}
