/* arma-tu-mesa.php */

.arma-page {
	background: #f2f2f0;
}

.arma.bdy {
	margin: 0 auto;
	max-width: 1220px;
	padding: 22px 20px 46px;
}

.arma-intro {
	align-items: end;
	background: #ffffff;
	border: 1px solid #deded9;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(240px, 1fr) minmax(260px, 0.9fr);
	margin-bottom: 18px;
	padding: 22px;
}

.arma-intro h1 {
	color: #202020;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	text-transform: uppercase;
}

.arma-intro p {
	color: #4d4d4d;
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

.arma-intro .arma-kicker {
	color: #8a1118;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.arma-builder {
	align-items: start;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(230px, 1fr) minmax(320px, 0.9fr) minmax(230px, 1fr);
	position: relative;
}

.arma-picker,
.arma-preview,
.arma-empty {
	background: #ffffff;
	border: 1px solid #deded9;
	box-sizing: border-box;
}

.arma-picker {
	min-width: 0;
	padding: 14px;
}

.arma-picker-head {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.arma-picker-head h2 {
	color: #202020;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.arma-step {
	align-items: center;
	background: #8a1118;
	color: #ffffff;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.arma.bdy ul.c-exp,
.arma-options {
	background: transparent;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	max-height: 640px;
	overflow: auto;
	padding: 0 4px 0 0;
}

.arma.bdy ul.c-exp li,
.arma-option {
	box-sizing: border-box;
	display: block;
	margin: 0;
	padding: 0;
	width: auto;
}

.arma-option input[type="radio"] {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.arma-option label {
	background: #fbfbfa;
	border: 1px solid #d9d9d3;
	box-sizing: border-box;
	color: #202020;
	cursor: pointer;
	display: grid;
	gap: 8px;
	grid-template-rows: 104px minmax(34px, auto);
	height: 100%;
	padding: 8px;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.arma-option label:hover {
	border-color: #8a1118;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.arma-option input[type="radio"]:focus + label {
	outline: 3px solid rgba(138, 17, 24, 0.25);
	outline-offset: 2px;
}

.arma-option input[type="radio"]:checked + label {
	background: #ffffff;
	border-color: #8a1118;
	box-shadow: inset 0 0 0 2px #8a1118;
}

.arma-thumb {
	align-items: center;
	background: #ffffff;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.arma-thumb img {
	display: block;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.arma-option-title {
	align-items: center;
	color: #303030;
	display: flex;
	font-size: 11px;
	font-weight: 800;
	justify-content: center;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	word-break: normal;
	overflow-wrap: anywhere;
}

.arma-preview {
	padding: 14px;
	position: sticky;
	top: 12px;
}

.arma-preview-frame {
	background: #ffffff;
	border: 1px solid #e1e1dc;
	padding: 10px;
}

.img-con {
	height: 500px;
	margin: 0 auto;
	max-width: 360px;
	position: relative;
	width: 100%;
}

.imgLogo {
	bottom: 8px;
	left: 8px;
	max-width: 72px;
	position: absolute;
	z-index: 11;
}

.imgTop,
.imgBot {
	display: block;
	left: 0;
	margin: auto;
	max-height: 100%;
	max-width: 100%;
	position: absolute;
	right: 0;
	top: 0;
	transition: opacity 140ms ease;
}

.imgTop {
	z-index: 10;
}

.imgBot {
	z-index: 9;
}

.arma-summary {
	border-bottom: 1px solid #deded9;
	border-top: 1px solid #deded9;
	display: grid;
	gap: 10px;
	margin-top: 14px;
	padding: 12px 0;
}

.arma-summary div {
	display: grid;
	gap: 3px;
}

.spanBot,
.spanTop {
	color: #707070;
	display: block;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.titleTop,
.titleBot {
	color: #202020;
	display: block;
	font-size: 14px;
	line-height: 1.35;
	text-transform: uppercase;
}

.arma-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	margin-top: 14px;
}

#armatable .arma-action {
	border: 1px solid #8a1118;
	cursor: pointer;
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	padding: 13px 16px;
	text-align: center;
	text-transform: uppercase;
	width: 100%;
}

#armatable .arma-action-primary {
	background: #8a1118;
	color: #ffffff;
}

#armatable .arma-action-secondary {
	background: #ffffff;
	color: #8a1118;
}

#armatable .arma-action:hover {
	opacity: 0.88;
}

.arma-term-con {
	background: #ffffff;
	border: 1px solid #deded9;
	clear: both;
	margin-top: 18px;
	padding: 18px;
	position: relative;
	z-index: 1;
}

.arma-term-con h2 {
	color: #202020;
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.arma-terms-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.arma-term {
	box-sizing: border-box;
	display: block;
	font-size: 15px;
	font-weight: bold;
	margin: 0;
	width: auto;
}

.arma-term h3 {
	background: #e7e7e1;
	color: #000000;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
	min-height: 42px;
	padding: 7px;
	text-transform: capitalize;
}

.arma-term-border {
	background: #ffffff;
	border: 1px solid #dddddd;
	padding: 8px;
}

.arma-term-border .main-img {
	align-items: center;
	cursor: zoom-in;
	display: flex;
	height: 190px;
	justify-content: center;
}

.arma-term-border .main-img img {
	display: block;
	max-height: 175px;
	max-width: 100%;
	object-fit: contain;
}

.arma-term-gallery {
	display: none;
}

.arma-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, 0.78);
	box-sizing: border-box;
	display: none;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 10000;
}

.arma-lightbox.is-open {
	display: flex;
}

.arma-lightbox__backdrop {
	inset: 0;
	position: absolute;
}

.arma-lightbox__dialog {
	align-items: center;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 46px minmax(0, auto) 46px;
	grid-template-rows: minmax(0, 1fr) auto;
	max-height: calc(100vh - 48px);
	max-width: min(940px, calc(100vw - 32px));
	position: relative;
	z-index: 1;
}

.arma-lightbox__image {
	background: #ffffff;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
	display: block;
	grid-column: 2;
	grid-row: 1;
	max-height: calc(100vh - 130px);
	max-width: 100%;
	object-fit: contain;
}

.arma-lightbox__caption {
	background: #ffffff;
	box-sizing: border-box;
	color: #202020;
	font-size: 13px;
	font-weight: 800;
	grid-column: 2;
	grid-row: 2;
	line-height: 1.35;
	padding: 10px 12px;
	text-align: center;
	text-transform: uppercase;
	width: 100%;
}

.arma-lightbox__close,
.arma-lightbox__nav {
	align-items: center;
	background: #8a1118;
	border: 0;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	font-weight: 800;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0;
}

.arma-lightbox__close {
	font-size: 30px;
	height: 42px;
	position: absolute;
	right: 0;
	top: -48px;
	width: 42px;
}

.arma-lightbox__nav {
	font-size: 42px;
	grid-row: 1;
	height: 58px;
	width: 42px;
}

.arma-lightbox__nav--prev {
	grid-column: 1;
	justify-self: start;
}

.arma-lightbox__nav--next {
	grid-column: 3;
	justify-self: end;
}

.arma-lightbox__close:hover,
.arma-lightbox__close:focus,
.arma-lightbox__nav:hover,
.arma-lightbox__nav:focus {
	background: #620b10;
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

body.arma-lightbox-open {
	overflow: hidden;
}

.arma-empty {
	padding: 22px;
}

.arma-empty h2 {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 10px;
}

.arma-empty p {
	margin: 0;
}

@media (max-width: 1020px) {
	.arma-builder {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
	}

	.arma-preview {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.arma-terms-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.arma.bdy {
		padding: 14px 10px 34px;
	}

	.arma-intro,
	.arma-builder {
		grid-template-columns: 1fr;
	}

	.arma-intro {
		align-items: start;
		padding: 18px;
	}

	.arma-intro h1 {
		font-size: 28px;
	}

	.arma-preview {
		grid-column: auto;
		grid-row: auto;
		order: 3;
		position: static;
	}

	.arma-picker-top {
		order: 1;
	}

	.arma-picker-base {
		order: 2;
	}

	.arma-term-con {
		order: 4;
	}

	.img-con {
		height: 320px;
		max-width: 300px;
	}

	.arma.bdy ul.c-exp,
	.arma-options {
		display: flex;
		gap: 10px;
		max-height: none;
		overflow-x: auto;
		padding: 0 0 8px;
		scroll-snap-type: x proximity;
	}

	.arma-option {
		flex: 0 0 148px;
		scroll-snap-align: start;
	}

	.arma-option label {
		grid-template-rows: 96px minmax(42px, auto);
	}

	.arma-terms-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.arma-term-border .main-img {
		height: 170px;
	}

	.arma-lightbox {
		padding: 18px 12px;
	}

	.arma-lightbox__dialog {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: minmax(0, 1fr) auto auto;
		max-height: calc(100vh - 36px);
		max-width: calc(100vw - 24px);
	}

	.arma-lightbox__image {
		grid-column: 1 / span 2;
		max-height: calc(100vh - 160px);
	}

	.arma-lightbox__caption {
		grid-column: 1 / span 2;
	}

	.arma-lightbox__close {
		right: 0;
		top: -50px;
	}

	.arma-lightbox__nav {
		grid-row: 3;
		height: 44px;
		width: 100%;
	}

	.arma-lightbox__nav--prev {
		grid-column: 1;
	}

	.arma-lightbox__nav--next {
		grid-column: 2;
	}
}

@media (max-width: 420px) {
	.arma-intro h1 {
		font-size: 24px;
	}

	.img-con {
		height: 250px;
		max-width: 240px;
	}

	.imgLogo {
		max-width: 56px;
	}

	.arma-option {
		flex-basis: 132px;
	}

	.arma-option label {
		grid-template-rows: 86px minmax(46px, auto);
		padding: 7px;
	}

	.arma-option-title {
		font-size: 10px;
	}

	.arma-term-con {
		padding: 12px;
	}

	.arma-term-border .main-img {
		height: 145px;
	}
}
