/* AHG Made to Measure: the order box on the product page. Palette only: olive actions, antique gold accents, walnut text. */
.ahg-mtm{
	--mtm-action:var(--global-palette1,#556B2F);
	--mtm-action-hover:var(--global-palette11,#44561F);
	--mtm-gold:var(--global-palette2,#7D600C);
	--mtm-text:var(--global-palette4,#1F1B16);
	--mtm-muted:var(--global-palette5,#6B6258);
	--mtm-border:var(--global-palette6,#DDD5C6);
	--mtm-field:var(--global-palette12,#8E8678);
	--mtm-soft:var(--global-palette7,#EEE7D9);
	--mtm-white:var(--global-palette9,#FFFFFF);
	--mtm-error:var(--global-palette13,#A12E35);
	margin:6px 0 22px;
	padding:18px 18px 16px;
	width:100%;
	max-width:100%;
	min-width:0;
	box-sizing:border-box;
	border:1px solid var(--mtm-border);
	border-radius:12px;
	background:var(--mtm-white);
	text-align:right;
	font-family:var(--global-body-font-family,'Heebo',sans-serif);
	color:var(--mtm-text);
}
.ahg-mtm *,.ahg-mtm *::before,.ahg-mtm *::after{box-sizing:border-box}
.ahg-mtm__head{margin-bottom:14px}
.ahg-mtm__title{font-family:var(--global-heading-font-family,'Frank Ruhl Libre',serif);font-weight:700;font-size:20px;line-height:1.2;color:var(--mtm-text)}
.ahg-mtm__title::before{content:"";display:inline-block;width:22px;height:2px;background:var(--mtm-gold);vertical-align:middle;margin-left:10px}

/* choice groups */
.ahg-mtm__group{border:0;margin:0 0 16px;padding:0;min-width:0}
.ahg-mtm__label{display:block;float:none;width:auto;padding:0;margin:0 0 7px;font-size:14px;font-weight:600;line-height:1.3;color:var(--mtm-text)}
.ahg-mtm__opts{display:flex;flex-wrap:wrap;gap:8px}
.ahg-mtm__opt{position:relative;margin:0;cursor:pointer;display:inline-flex;flex-direction:column;justify-content:center;gap:2px;min-height:44px;padding:9px 14px;border:1px solid var(--mtm-border);border-radius:10px;background:var(--mtm-white);transition:border-color .15s,background .15s,box-shadow .15s;-webkit-tap-highlight-color:transparent}
.ahg-mtm__opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.ahg-mtm__opt-name{font-size:15px;font-weight:500;line-height:1.2;color:var(--mtm-text);white-space:nowrap}
.ahg-mtm__opt-hint{font-size:12.5px;line-height:1.35;color:var(--mtm-muted)}
.ahg-mtm__opt:hover{border-color:var(--mtm-gold)}
.ahg-mtm__opt.is-active{border-color:var(--mtm-action);box-shadow:inset 0 0 0 1px var(--mtm-action);background:var(--mtm-soft)}
.ahg-mtm__opt.is-active .ahg-mtm__opt-name{font-weight:600}
.ahg-mtm__opt input:focus-visible ~ .ahg-mtm__opt-name{outline:2px solid var(--mtm-gold);outline-offset:3px;border-radius:2px}
/* options with a short explanation become cards, two per row */
.ahg-mtm__opts--cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.ahg-mtm__opts--cards .ahg-mtm__opt{align-items:flex-start;min-height:58px}
.ahg-mtm__opts--cards .ahg-mtm__opt-name{white-space:normal}
/* how the shelf gets to the customer: pickup or delivery; the town field and the prices by area open with "delivery" */
.ahg-mtm__delivery{border:0;margin:0 0 14px;padding:0;min-width:0}
.ahg-mtm__delivery-more{margin-top:12px}
.ahg-mtm .ahg-mtm__city{display:block;width:100%;height:46px;margin:0 0 12px;padding:0 12px;border:1px solid var(--mtm-field);border-radius:10px;background:var(--mtm-white);color:var(--mtm-text);font-family:inherit;font-size:16px;line-height:1.2;box-shadow:none}
.ahg-mtm .ahg-mtm__city:focus{outline:none;border-color:var(--mtm-gold);box-shadow:0 0 0 2px rgba(125,96,12,.15)}
.ahg-mtm .ahg-mtm-zones{width:100%;margin:0 0 8px;border:0;border-collapse:collapse;font-size:13.5px;line-height:1.4}
.ahg-mtm .ahg-mtm-zones th,.ahg-mtm .ahg-mtm-zones td{padding:7px 0;border:0;border-bottom:1px solid var(--mtm-border);background:none;text-align:right;vertical-align:top;color:var(--mtm-text)}
.ahg-mtm .ahg-mtm-zones th{font-weight:600}
.ahg-mtm .ahg-mtm-zones th:last-child,.ahg-mtm .ahg-mtm-zones td:last-child{padding-right:12px;text-align:left;white-space:nowrap;font-weight:600}
.ahg-mtm .ahg-mtm-zones tbody tr:last-child td{border-bottom:0}
.ahg-mtm__delivery-more .ahg-mtm__hint{display:block;margin:0}
.ahg-mtm__note--terms{margin-top:6px}

/* sizes */
.ahg-mtm__sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
.ahg-mtm__size{display:flex;flex-direction:column;margin:0;min-width:0}
.ahg-mtm__input{position:relative;display:block}
.ahg-mtm .ahg-mtm__input input{
	width:100%;height:46px;margin:0;padding:0 12px 0 44px;border:1px solid var(--mtm-field);border-radius:10px;background:var(--mtm-white);
	color:var(--mtm-text);font-family:inherit;font-size:17px;line-height:1;text-align:right;box-shadow:none;-moz-appearance:textfield;transition:border-color .15s
}
.ahg-mtm .ahg-mtm__input input::-webkit-outer-spin-button,.ahg-mtm .ahg-mtm__input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ahg-mtm .ahg-mtm__input input::placeholder{color:var(--mtm-field);font-size:14px}
.ahg-mtm .ahg-mtm__input input:focus{outline:none;border-color:var(--mtm-gold);box-shadow:0 0 0 2px rgba(125,96,12,.15)}
.ahg-mtm__unit{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--mtm-muted);pointer-events:none}
.ahg-mtm__hint{margin-top:5px;font-size:12.5px;line-height:1.3;color:var(--mtm-muted)}
.ahg-mtm__hint bdi{direction:ltr;unicode-bidi:isolate}

/* quantity */
.ahg-mtm__qty-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.ahg-mtm__qty-row .ahg-mtm__label{margin:0}
.ahg-mtm__qty{display:inline-flex;align-items:center;border:1px solid var(--mtm-field);border-radius:50px;overflow:hidden;background:var(--mtm-white)}
.ahg-mtm .ahg-mtm__qty input{width:48px;height:40px;margin:0;padding:0;border:0;background:transparent;text-align:center;font-size:16px;font-family:inherit;color:var(--mtm-text);-moz-appearance:textfield;box-shadow:none}
.ahg-mtm .ahg-mtm__qty input::-webkit-outer-spin-button,.ahg-mtm .ahg-mtm__qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ahg-mtm__qty-btn{width:40px;height:40px;margin:0;padding:0;border:0;background:transparent;color:var(--mtm-text);font-size:20px;line-height:1;cursor:pointer}
.ahg-mtm__qty-btn:hover{background:var(--mtm-soft);color:var(--mtm-text)}

/* checkboxes */
.ahg-mtm__checks{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.ahg-mtm__check{position:relative;display:flex;align-items:center;gap:10px;margin:0;padding:10px 12px;border:1px solid var(--mtm-border);border-radius:10px;cursor:pointer;font-size:14.5px;line-height:1.35;color:var(--mtm-text);transition:border-color .15s,background .15s}
.ahg-mtm__check[hidden]{display:none}
.ahg-mtm__check input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.ahg-mtm__box{flex:0 0 22px;width:22px;height:22px;border:1.5px solid var(--mtm-field);border-radius:6px;background:var(--mtm-white);display:inline-flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s}
.ahg-mtm__box::after{content:"";width:5px;height:10px;margin-top:-2px;border:solid var(--mtm-white);border-width:0 2px 2px 0;transform:rotate(45deg);opacity:0;transition:opacity .12s}
.ahg-mtm__check:hover{border-color:var(--mtm-gold)}
.ahg-mtm__check.is-active{border-color:var(--mtm-action);background:var(--mtm-soft)}
.ahg-mtm__check.is-active .ahg-mtm__box{background:var(--mtm-action);border-color:var(--mtm-action)}
.ahg-mtm__check.is-active .ahg-mtm__box::after{opacity:1}
.ahg-mtm__check input:focus-visible ~ .ahg-mtm__box{outline:2px solid var(--mtm-gold);outline-offset:2px}

/* notes */
.ahg-mtm__toggle{background:none;border:0;padding:0;margin:2px 0 12px;font:inherit;font-size:14px;color:var(--mtm-gold);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.ahg-mtm__toggle span{display:inline-block;width:18px;height:18px;border:1px solid var(--mtm-gold);border-radius:50%;line-height:16px;text-align:center;font-size:14px}
.ahg-mtm__toggle.is-open span{transform:rotate(45deg)}
.ahg-mtm__toggle:hover{color:var(--mtm-text)}
#ahg_mtm_notes_wrap{margin:-4px 0 12px}
.ahg-mtm textarea{width:100%;min-height:64px;margin:0;padding:10px 12px;border:1px solid var(--mtm-field);border-radius:10px;background:var(--mtm-white);color:var(--mtm-text);font-family:inherit;font-size:16px;line-height:1.45;resize:vertical;box-shadow:none}
.ahg-mtm textarea:focus{outline:none;border-color:var(--mtm-gold);box-shadow:0 0 0 2px rgba(125,96,12,.15)}

/* errors */
.ahg-mtm__error{margin:0 0 12px;padding:9px 12px;border-radius:10px;background:rgba(161,46,53,.08);color:var(--mtm-error);font-size:14px;line-height:1.4}
.ahg-mtm__group.is-invalid .ahg-mtm__opt{border-color:var(--mtm-error)}
.ahg-mtm__group.is-invalid .ahg-mtm__label,.ahg-mtm__size.is-invalid .ahg-mtm__label{color:var(--mtm-error)}
.ahg-mtm .ahg-mtm__size.is-invalid input{border-color:var(--mtm-error)}

/* send */
.ahg-mtm__send{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:0;padding:12px 18px;border:0;border-radius:50px;background:var(--mtm-action);color:var(--mtm-white);font-family:inherit;font-size:17px;font-weight:600;line-height:1.2;cursor:pointer;transition:background .15s}
.ahg-mtm__send:hover,.ahg-mtm__send:focus-visible{background:var(--mtm-action-hover);color:var(--mtm-white)}
.ahg-mtm__send:focus-visible{outline:2px solid var(--mtm-gold);outline-offset:2px}
.ahg-mtm__wa{width:22px;height:22px;flex:none}
.ahg-mtm__note{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--mtm-muted);text-align:center}
.ahg-mtm__sent{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:var(--mtm-soft);font-size:14px;line-height:1.45;color:var(--mtm-text);text-align:center}
.ahg-mtm__sent a{color:var(--mtm-action);font-weight:600;text-decoration:underline}

/* "price by size" line where the price usually is */
.ahg-mtm-price{font-size:16px;font-weight:500;color:var(--global-palette5,#6B6258)}

/* on made-to-measure products: no "go to checkout" button, no generic shipping and returns pane */
body.ahg-mtm-product .kb-btnspt-direct-btns,
body.ahg-mtm-product .kt-panept-pane-ship{display:none!important}
/* no related products yet: hide the lone "you may also like" heading */
body.ahg-mtm-product .kb-row-layout-idpt-related:not(:has(.products)){display:none}

@media (max-width:767px){
	.ahg-mtm{padding:14px 14px 14px}
	.ahg-mtm__title{font-size:18px}
	.ahg-mtm__sizes{gap:8px}
	.ahg-mtm .ahg-mtm__input input{padding:0 10px 0 36px}
	.ahg-mtm__unit{left:10px;font-size:12px}
	.ahg-mtm__opt{padding:9px 12px}
}
@media (max-width:380px){
	.ahg-mtm__sizes{grid-template-columns:1fr 1fr}
	.ahg-mtm__sizes .ahg-mtm__size:first-child{grid-column:1 / -1}
}

/* ---------- one page per made-to-measure product ---------- */
/* the description moves out of the accordion into a full-width section */
body.ahg-mtm-content-full .kt-panept-pane-desc{display:none!important}
.ahg-mtm-content{background:var(--global-palette9,#FFFFFF);border-top:1px solid var(--global-palette6,#DDD5C6);border-bottom:1px solid var(--global-palette6,#DDD5C6)}
.ahg-mtm-content__inner{max-width:860px;margin:0 auto;padding:56px 20px 48px;color:var(--global-palette4,#1F1B16);font-size:17px;line-height:1.75;text-align:right}
.ahg-mtm-content__inner > :first-child{margin-top:0}
.ahg-mtm-content__inner h2{margin:40px 0 12px;font-size:28px;line-height:1.25}
.ahg-mtm-content__inner h2:first-child{margin-top:0;font-size:34px}
.ahg-mtm-content__inner h3{margin:24px 0 8px;font-size:20px}
.ahg-mtm-content__inner p{margin:0 0 14px}
.ahg-mtm-content__inner ul,.ahg-mtm-content__inner ol{margin:0 0 16px;padding-right:22px;padding-left:0}
.ahg-mtm-content__inner li{margin:0 0 6px}
.ahg-mtm-content__inner strong{color:var(--global-palette4,#1F1B16)}
.ahg-mtm-content__inner a{color:var(--global-palette1,#556B2F);text-decoration:underline}

/* our work */
.ahg-mtm-works__inner{max-width:1240px;margin:0 auto;padding:56px 20px 64px}
.ahg-mtm-works__title{margin:0 0 24px;text-align:center;font-size:30px;line-height:1.25}
.ahg-mtm-works__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ahg-mtm-works__item{display:block;position:relative;overflow:hidden;border-radius:10px;background:var(--global-palette7,#EEE7D9);aspect-ratio:1/1}
.ahg-mtm-works__img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.ahg-mtm-works__item:hover .ahg-mtm-works__img{transform:scale(1.04)}
.ahg-mtm-works__item:focus-visible{outline:2px solid var(--global-palette2,#7D600C);outline-offset:2px}

/* lightbox */
.ahg-mtm-lb{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;background:rgba(31,27,22,.92);padding:56px 64px}
.ahg-mtm-lb.is-open{display:flex}
html.ahg-mtm-lb-open{overflow:hidden}
.ahg-mtm-lb__fig{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
.ahg-mtm-lb__img{display:block;max-width:100%;max-height:calc(100vh - 150px);width:auto;height:auto;border-radius:6px}
.ahg-mtm-lb__cap{color:var(--global-palette7,#EEE7D9);font-size:14px;text-align:center}
.ahg-mtm-lb__close,.ahg-mtm-lb__nav{position:absolute;display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:var(--global-palette9,#FFFFFF);font-size:30px;line-height:1;cursor:pointer;transition:background .15s}
.ahg-mtm-lb__close:hover,.ahg-mtm-lb__nav:hover{background:rgba(255,255,255,.24)}
.ahg-mtm-lb__close:focus-visible,.ahg-mtm-lb__nav:focus-visible{outline:2px solid var(--global-palette10,#D4AF37);outline-offset:2px}
.ahg-mtm-lb__close{top:14px;left:14px}
.ahg-mtm-lb__prev{right:14px;top:50%;transform:translateY(-50%)}
.ahg-mtm-lb__next{left:14px;top:50%;transform:translateY(-50%)}

@media (max-width:767px){
	.ahg-mtm-content__inner{padding:40px 16px 32px;font-size:16px}
	.ahg-mtm-content__inner h2{font-size:24px;margin-top:32px}
	.ahg-mtm-content__inner h2:first-child{font-size:27px}
	.ahg-mtm-works__inner{padding:40px 16px 48px}
	.ahg-mtm-works__title{font-size:25px;margin-bottom:18px}
	.ahg-mtm-works__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
	.ahg-mtm-lb{padding:56px 8px 72px}
	.ahg-mtm-lb__nav{top:auto;bottom:14px;transform:none}
	.ahg-mtm-lb__prev{right:calc(50% + 8px)}
	.ahg-mtm-lb__next{left:calc(50% + 8px)}
}


/* ---------- 1.4: headings inside the wood choice, fixed thicknesses, hanging ---------- */
.ahg-mtm__optrow + .ahg-mtm__optrow{margin-top:12px}
.ahg-mtm__sub{display:block;margin:0 0 6px;font-size:12.5px;font-weight:500;line-height:1.3;color:var(--mtm-muted)}
.ahg-mtm__opt[hidden],.ahg-mtm__group[hidden],.ahg-mtm__pick[hidden],.ahg-mtm__size[hidden]{display:none}
.ahg-mtm__pick{border:0;margin:0 0 16px;padding:0;min-width:0}
.ahg-mtm__sizes--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ahg-mtm__opt-name bdi{direction:ltr;unicode-bidi:isolate}
.ahg-mtm__hang > .ahg-mtm__hint{display:block;margin-top:8px}
.ahg-mtm__opt.is-off{opacity:.55;cursor:not-allowed;background:var(--mtm-soft)}
.ahg-mtm__opt.is-off:hover{border-color:var(--mtm-border)}
.ahg-mtm__pick.is-invalid .ahg-mtm__opt{border-color:var(--mtm-error)}
.ahg-mtm__pick.is-invalid .ahg-mtm__label{color:var(--mtm-error)}
@media (max-width:380px){
.ahg-mtm__sizes--two .ahg-mtm__size:first-child{grid-column:auto}
}

/* the picked wood, shown inside the form when the gallery is above it (phones) */
.ahg-mtm__preview{margin:-4px 0 16px;border-radius:10px;overflow:hidden;background:var(--mtm-soft);aspect-ratio:16/9}
.ahg-mtm__preview[hidden]{display:none}
.ahg-mtm__preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 55%}
