/* OakCrew cart drawer — loaded after the storefront design system. */

.oakcrew-cart-drawer {
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: 1000000;
}

.oakcrew-drawer-backdrop {
	background: rgba(20, 24, 21, 0.46);
	border: 0;
	inset: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	transition: opacity 220ms ease;
	width: 100%;
}

.oakcrew-drawer-panel {
	background: #fbfaf7;
	box-shadow: -28px 0 70px rgba(28, 23, 20, 0.18);
	height: 100%;
	max-width: 460px;
	outline: none;
	position: absolute;
	right: 0;
	top: 0;
	transform: translateX(105%);
	transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
	width: min(100%, 460px);
}

.oakcrew-drawer-panel > [data-oakcrew-drawer-content] {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.oakcrew-cart-drawer.is-open {
	pointer-events: auto;
}

.oakcrew-cart-drawer.is-open .oakcrew-drawer-backdrop {
	opacity: 1;
}

.oakcrew-cart-drawer.is-open .oakcrew-drawer-panel {
	transform: translateX(0);
}

html.oakcrew-drawer-open {
	overflow: hidden;
}

.oakcrew-drawer-header {
	align-items: center;
	border-bottom: 1px solid var(--sun-line, #e3ded6);
	display: flex;
	flex: 0 0 auto;
	justify-content: space-between;
	padding: 22px 24px 18px;
}

.oakcrew-drawer-header p,
.oakcrew-drawer-eyebrow {
	color: var(--sun-slate, #6e635b);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	margin: 0 0 3px;
	text-transform: uppercase;
}

.oakcrew-drawer-header h2 {
	color: var(--sun-ink, #382d27);
	font-family: var(--warm-serif, Fraunces, serif);
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
}

.oakcrew-drawer-header h2 span {
	color: var(--sun-slate, #6e635b);
	font-family: var(--sun-font, Nunito, sans-serif);
	font-size: 0.85rem;
	font-weight: 600;
}

.oakcrew-drawer-close {
	align-items: center;
	background: transparent;
	border: 1px solid var(--sun-line, #e3ded6);
	border-radius: 50%;
	color: var(--sun-ink, #382d27);
	display: inline-flex;
	font-size: 1.55rem;
	height: 42px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	width: 42px;
}

.oakcrew-drawer-close:hover,
.oakcrew-drawer-close:focus-visible {
	background: var(--sun-sand, #f3eadc);
	border-color: var(--sun-ink, #382d27);
}

.oakcrew-drawer-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 24px 28px;
}

.oakcrew-drawer-progress {
	background: var(--sun-sand, #f3eadc);
	border-radius: 12px;
	margin-bottom: 18px;
	padding: 12px 14px;
}

.oakcrew-drawer-progress p {
	color: var(--sun-ink, #382d27);
	font-size: 0.78rem;
	font-weight: 650;
	margin: 0 0 8px;
}

.oakcrew-drawer-progress > div {
	background: rgba(74, 58, 48, 0.12);
	border-radius: 999px;
	height: 5px;
	overflow: hidden;
}

.oakcrew-drawer-progress > div span {
	background: var(--sun-navy-deep, #173126);
	border-radius: inherit;
	display: block;
	height: 100%;
}

.oakcrew-drawer-items {
	display: grid;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.oakcrew-drawer-items > li {
	border-bottom: 1px solid var(--sun-line, #e3ded6);
	display: grid;
	gap: 13px;
	grid-template-columns: 76px minmax(0, 1fr) 28px;
	padding: 16px 0;
	position: relative;
}

.oakcrew-drawer-items > li:first-child {
	padding-top: 0;
}

.oakcrew-drawer-item-image {
	background: #efebe4;
	border-radius: 10px;
	display: block;
	height: 96px;
	overflow: hidden;
}

.oakcrew-drawer-item-image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.oakcrew-drawer-item-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.oakcrew-drawer-item-name {
	color: var(--sun-ink, #382d27);
	font-family: var(--warm-serif, Fraunces, serif);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.22;
	text-decoration: none;
}

.oakcrew-drawer-item-variation,
.oakcrew-drawer-item-variation dl {
	color: var(--sun-slate, #6e635b);
	font-size: 0.72rem;
	line-height: 1.4;
	margin: 4px 0 0;
}

.oakcrew-drawer-item-variation dt,
.oakcrew-drawer-item-variation dd {
	display: inline;
	float: none;
	margin: 0 3px 0 0;
}

.oakcrew-drawer-item-variation dd::after {
	content: " · ";
}

.oakcrew-drawer-item-variation dd:last-child::after {
	content: "";
}

.oakcrew-drawer-item-variation p {
	display: inline;
	margin: 0;
}

.oakcrew-drawer-item-bottom {
	align-items: end;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: auto;
}

.oakcrew-drawer-item-bottom > strong {
	color: var(--sun-ink, #382d27);
	font-size: 0.84rem;
	white-space: nowrap;
}

.oakcrew-drawer-quantity {
	align-items: center;
	border: 1px solid var(--sun-line, #e3ded6);
	border-radius: 999px;
	display: inline-flex;
	height: 32px;
	overflow: hidden;
}

.oakcrew-drawer-quantity button {
	background: transparent;
	border: 0;
	color: var(--sun-ink, #382d27);
	font-size: 1rem;
	height: 30px;
	padding: 0;
	width: 30px;
}

.oakcrew-drawer-quantity button:hover {
	background: var(--sun-sand, #f3eadc);
}

.oakcrew-drawer-quantity span {
	font-size: 0.78rem;
	min-width: 20px;
	text-align: center;
}

.oakcrew-drawer-remove {
	background: transparent;
	border: 0;
	color: var(--sun-slate, #6e635b);
	font-size: 1.25rem;
	height: 28px;
	line-height: 1;
	padding: 0;
	width: 28px;
}

.oakcrew-drawer-remove:hover {
	color: var(--sun-ink, #382d27);
}

.oakcrew-drawer-add-more {
	background: #fff;
	border: 1px solid var(--sun-line, #e3ded6);
	border-radius: 16px;
	margin-top: 22px;
	padding: 18px;
}

.oakcrew-drawer-add-more h3 {
	color: var(--sun-ink, #382d27);
	font-family: var(--warm-serif, Fraunces, serif);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 14px;
}

.oakcrew-drawer-product-tabs {
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oakcrew-drawer-product-tabs button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sun-line, #e3ded6);
	border-radius: 10px;
	color: var(--sun-ink, #382d27);
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 6px 5px 8px;
	text-align: center;
}

.oakcrew-drawer-product-tabs button.is-active {
	background: var(--sun-sand, #f3eadc);
	border-color: var(--sun-ink, #382d27);
}

.oakcrew-drawer-product-tabs img {
	border-radius: 7px;
	height: 52px;
	object-fit: cover;
	width: 44px;
}

.oakcrew-drawer-product-tabs button span,
.oakcrew-drawer-product-tabs strong,
.oakcrew-drawer-product-tabs small {
	display: block;
}

.oakcrew-drawer-product-tabs strong {
	font-size: 0.72rem;
}

.oakcrew-drawer-product-tabs small {
	color: var(--sun-slate, #6e635b);
	font-size: 0.66rem;
	margin-top: 2px;
}

.oakcrew-drawer-options {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
	margin-top: 12px;
}

.oakcrew-drawer-options label > span {
	color: var(--sun-slate, #6e635b);
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	margin: 0 0 4px;
}

.oakcrew-drawer-options select {
	appearance: auto;
	background: #fff;
	border: 1px solid var(--sun-line, #e3ded6);
	border-radius: 9px;
	color: var(--sun-ink, #382d27);
	font-family: var(--sun-font, Nunito, sans-serif);
	font-size: 0.78rem;
	height: 43px;
	padding: 0 8px;
	width: 100%;
}

.oakcrew-drawer-add-button,
.oakcrew-drawer-checkout {
	align-items: center;
	background: var(--sun-navy-deep, #173126);
	border: 1px solid var(--sun-navy-deep, #173126);
	border-radius: 999px;
	color: #fff;
	display: flex;
	font-family: var(--sun-font, Nunito, sans-serif);
	font-size: 0.78rem;
	font-weight: 800;
	height: 48px;
	justify-content: center;
	letter-spacing: 0.04em;
	margin-top: 12px;
	padding: 0 18px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.oakcrew-drawer-add-button:disabled {
	background: #d7d1c9;
	border-color: #d7d1c9;
	color: #746b64;
	cursor: not-allowed;
}

.oakcrew-drawer-status {
	color: var(--sun-slate, #6e635b);
	font-size: 0.72rem;
	margin: 7px 0 0;
	min-height: 1em;
	text-align: center;
}

.oakcrew-drawer-status.is-error {
	color: #9d332c;
}

.oakcrew-drawer-footer {
	background: #fff;
	border-top: 1px solid var(--sun-line, #e3ded6);
	box-shadow: 0 -14px 36px rgba(28, 23, 20, 0.06);
	flex: 0 0 auto;
	padding: 15px 24px 18px;
}

.oakcrew-drawer-footer p {
	display: flex;
	font-size: 0.82rem;
	justify-content: space-between;
	margin: 0;
}

.oakcrew-drawer-footer p strong {
	font-size: 0.95rem;
}

.oakcrew-drawer-checkout {
	margin-top: 11px;
}

.oakcrew-drawer-cart-link {
	color: var(--sun-ink, #382d27);
	display: block;
	font-size: 0.74rem;
	font-weight: 700;
	margin-top: 9px;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.oakcrew-drawer-empty {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 52vh;
	text-align: center;
}

.oakcrew-drawer-empty p {
	color: var(--sun-ink, #382d27);
	font-family: var(--warm-serif, Fraunces, serif);
	font-size: 1.65rem;
	line-height: 1.2;
	max-width: 12em;
}

.oakcrew-drawer-empty a {
	color: var(--sun-ink, #382d27);
	font-size: 0.8rem;
	font-weight: 800;
	text-underline-offset: 4px;
}

.oakcrew-cart-drawer.is-busy .oakcrew-drawer-panel::after {
	background: rgba(251, 250, 247, 0.62);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 10;
}

@media (max-width: 520px) {
	.oakcrew-drawer-panel {
		max-width: none;
		width: 100%;
	}

	.oakcrew-drawer-header {
		padding: 17px 18px 14px;
	}

	.oakcrew-drawer-scroll {
		padding: 16px 18px 24px;
	}

	.oakcrew-drawer-footer {
		padding: 13px 18px calc(14px + env(safe-area-inset-bottom));
	}

	.oakcrew-drawer-items > li {
		grid-template-columns: 68px minmax(0, 1fr) 24px;
	}

	.oakcrew-drawer-item-image {
		height: 88px;
	}

	.oakcrew-drawer-add-more {
		padding: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oakcrew-drawer-backdrop,
	.oakcrew-drawer-panel {
		transition: none;
	}
}
