/**
 * Pelican case + custom foam add-on on firearm product pages.
 * Colors match the rest of the store: #c05530 CTA, #2c4562 headings, #e6e2db borders.
 */

.wla-case-cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	margin: 16px 0 20px;
	padding: 16px;
	border: 1px solid #e6e2db;
	border-radius: 6px;
	background: #faf9f7;
	width: 100%;
	box-sizing: border-box;
}

.wla-case-cta__top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.wla-case-cta__logo {
	display: block;
	width: 118px;
	height: auto;
	flex: 0 0 auto;
}

.wla-case-cta__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.wla-case-cta__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #2c4562;
	line-height: 1.3;
}

.wla-case-cta__sub {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #5a5a5a;
}

.wla-case-cta__btn.button {
	flex: 0 0 auto;
	width: 100%;
	margin: 0;
	background-color: #c05530 !important;
	border-color: #c05530 !important;
	color: #fff !important;
	text-align: center;
	white-space: nowrap;
}

.wla-case-cta__btn.button:hover,
.wla-case-cta__btn.button:focus {
	background-color: #a34527 !important;
	border-color: #a34527 !important;
	color: #fff !important;
}

.wla-case-backdrop {
	background: rgba(16, 24, 32, 0.45);
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wla-case-drawer {
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
	transition: right 0.22s ease, visibility 0.22s ease;
}

.wla-case-drawer__form {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.wla-case-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px 12px;
	border-bottom: 1px solid #e6e2db;
	flex: 0 0 auto;
}

.wla-case-drawer__logo {
	width: 132px;
	height: auto;
}

/* Same 36px orange square as Quick View (.mfp-close) and Finder (.wla-finder-close).
   Theme button padding/min-width was stretching the old text × into a rectangle. */
.wla-case-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	box-sizing: border-box;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	margin: 0;
	border: none;
	border-radius: 5px !important;
	background: #c05530;
	color: #fff;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: background 0.15s ease;
}

.wla-case-drawer__close svg {
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0;
	display: block;
}

.wla-case-drawer__close:hover,
.wla-case-drawer__close:focus {
	background: #a34527;
}

.wla-case-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 20px 12px;
}

.wla-case-drawer__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: #2c4562;
	line-height: 1.25;
}

.wla-case-drawer__lede {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: #4a4a4a;
}

.wla-case-field {
	display: block;
	margin: 0 0 16px;
}

.wla-case-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #2c4562;
}

.wla-case-field select,
.wla-case-field textarea,
.wla-case-field input[type="file"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wla-case-field select,
.wla-case-field textarea {
	border: 1px solid #cfc8be;
	border-radius: 5px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	background: #fff;
	color: #222;
}

.wla-case-field select {
	height: auto;
	min-height: 44px;
}

.wla-case-field textarea {
	resize: vertical;
	min-height: 96px;
}

.wla-case-field__help {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: #5a5a5a;
}

.wla-case-foam-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 4px 0 8px;
	padding: 12px 14px;
	border: 1px solid #2c4562;
	border-radius: 6px;
	background: #fff;
	color: #2c4562;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
}

.wla-case-foam-btn:hover,
.wla-case-foam-btn:focus {
	border-color: #c05530;
	color: #c05530;
}

.wla-case-foam-btn[aria-pressed="true"] {
	background: #2c4562;
	border-color: #2c4562;
	color: #fff;
}

.wla-case-foam-btn__price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wla-case-foam-hint {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.45;
	color: #5a5a5a;
}

.wla-case-policy {
	margin: 4px 0 8px;
	padding: 12px 14px;
	border-left: 3px solid #2c4562;
	background: #f4f6f8;
	border-radius: 0 4px 4px 0;
}

.wla-case-policy p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
}

.wla-case-status {
	margin: 8px 0 0;
	padding: 10px 12px;
	border-radius: 5px;
	font-size: 14px;
}

.wla-case-status.is-error {
	background: #f8e8e4;
	color: #8a2b16;
}

.wla-case-status.is-ok {
	background: #e7f3ea;
	color: #1e5a2c;
}

.wla-case-drawer__foot {
	flex: 0 0 auto;
	padding: 14px 20px 18px;
	border-top: 1px solid #e6e2db;
	background: #fff;
}

.wla-case-total {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #2c4562;
}

.wla-case-submit.button {
	width: 100%;
	margin: 0;
	background-color: #c05530 !important;
	border-color: #c05530 !important;
	color: #fff !important;
}

.wla-case-submit.button:hover,
.wla-case-submit.button:focus {
	background-color: #a34527 !important;
	border-color: #a34527 !important;
}

.wla-case-submit.button:disabled {
	opacity: 0.65;
	cursor: wait;
}

@media (max-width: 600px) {
	.wla-case-cta {
		flex-direction: column;
		align-items: stretch;
	}

	.wla-case-cta__top {
		flex-direction: column;
		align-items: flex-start;
	}

	.wla-case-cta__btn.button {
		width: 100%;
		white-space: normal;
	}

	.wla-case-drawer {
		width: 100vw;
	}
}

body.wla-case-open {
	overflow: hidden;
}
