/* AMS store: matched to the landing page and automatedmachineryservices.com.au
   (white floating header, orange actions, charcoal band, grey page, Noto Sans headings, Source Sans body).
   The colours, fonts and button/header/footer/form looks are copied from ams-landing/assets/ams.css, so the
   two sites match without depending on each other. Written phone-first: the base rules are for a phone and
   the @media (min-width) rules widen it. */
:root{
  --orange:#DD6326; --orange-dk:#B84A18; --orange-lt:#E8882B;
  --char:#3D3D3D; --char-2:#333333; --char-3:#454545;
  --page:#EEEEEE; --paper:#FFFFFF; --soft:#F5F5F5; --line:#DCDCDC;
  --ink:#2E2E2E; --muted:#5E5E5E; --on-dark:#F2F2F2; --on-dark-mut:#C8C8C8;
  --head:'Noto Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --body:'Source Sans 3','Source Sans Pro',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--page);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--head);margin:0;line-height:1.18;text-wrap:balance}
h1{font-weight:700;font-size:clamp(28px,6.4vw,44px)}
h2{font-weight:700;font-size:clamp(22px,4.6vw,30px);color:#3A3A3A}
h3{font-weight:700;font-size:19px}
p{margin:0}
a{color:inherit}
img{max-width:100%;display:block}
[hidden]{display:none!important}
.wrap{max-width:1100px;margin:0 auto;padding-inline:16px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.muted{color:var(--muted)}
.kicker{font-family:var(--head);font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--orange-dk)}
.skip{position:absolute;left:12px;top:-60px;z-index:50;background:#fff;color:var(--ink);padding:12px 16px;border-radius:3px;font-family:var(--head);font-weight:700}
.skip:focus{top:12px}

/* keyboard focus is always visible */
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--orange-lt);outline-offset:2px}
.field input:focus,.field select:focus,.field textarea:focus,.filters input:focus,.filters select:focus,.qty input:focus,.chk input:focus-visible,.pick input:focus-visible{outline:3px solid var(--orange-lt);outline-offset:1px}
.chk input:focus-visible+span,.pick input:focus-visible+span{outline:3px solid var(--orange-lt);outline-offset:2px}

/* buttons: every one is at least 44px tall */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;background:var(--orange);color:#fff;font-family:var(--head);font-weight:700;font-size:16px;line-height:1.2;border:0;border-radius:3px;padding:12px 22px;text-decoration:none;cursor:pointer;box-shadow:0 2px 0 var(--orange-dk)}
.btn:hover{background:var(--orange-dk)}
.btn.dark{background:var(--char);box-shadow:none}
.btn.dark:hover{background:var(--char-2)}
.btn.alt{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 2px #BDBDBD}
.btn.alt:hover{background:var(--soft)}
.btn.block{width:100%}
.btn.small{min-height:44px;padding:10px 16px;font-size:15px}
.btn:disabled{opacity:.7;cursor:wait}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.linkbtn{background:none;border:0;padding:10px 0;min-height:44px;font:inherit;font-weight:600;color:var(--orange-dk);text-decoration:underline;cursor:pointer}

/* header: the site's white floating card */
.hdr{position:absolute;left:0;right:0;top:12px;z-index:5}
.hdr .card{background:#fff;border-radius:4px;box-shadow:0 6px 24px rgba(0,0,0,.18);display:flex;align-items:center;gap:12px;padding:8px 12px}
.hdr .logo{display:block;flex:none}
.hdr .logo img{height:48px;width:auto}
.hdr nav{display:none}
.hdr .acts{margin-left:auto;display:flex;gap:8px;align-items:center}
.hdr .btn{padding:10px 14px;font-size:15px;min-width:44px}
.hdr .btn span.t{display:none}
.hdr .cartbtn .count{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:12px;background:#fff;color:var(--orange-dk);font-size:14px;padding:0 6px}
@media (min-width:560px){.hdr .btn span.t{display:inline}}
@media (min-width:900px){
  .hdr .card{padding:10px 22px;gap:24px}
  .hdr .logo img{height:64px}
  .hdr nav{display:flex;flex:1;justify-content:center;gap:26px;font-family:var(--head);font-size:14.5px;color:#444}
  .hdr nav a{text-decoration:none;padding:12px 8px}
  .hdr nav a:hover{text-decoration:underline}
}

/* the charcoal band under the header. The shop page puts its title in it; other pages leave it empty and lay a white sheet over it. */
.band{background:var(--char-2);color:#fff;border-radius:0 0 22px 22px;padding:100px 0 78px}
.band h1{color:#fff}
.band .lead{color:#E9E9E9;font-size:19px;margin-top:8px;max-width:58ch}
.topband{height:190px;background:var(--char-2);border-radius:0 0 22px 22px}
.sheet{position:relative;z-index:2;margin:-100px auto 0;padding:0 16px 56px;max-width:1100px}
.sheet.pull{margin-top:-44px}
.sheet.narrow{max-width:860px}
.sheet>.card+.card{margin-top:18px}
.pad>h1{margin-bottom:16px}
@media (min-width:900px){.band{padding:128px 0 84px}}
.card{background:#fff;border-radius:4px;box-shadow:0 14px 40px rgba(0,0,0,.14)}
.pad{padding:22px 18px 26px}
@media (min-width:700px){.pad{padding:34px 40px 40px}}

/* messages */
.notice{display:flex;flex-direction:column;gap:10px;background:#FFF6F2;border-left:4px solid var(--orange);border-radius:0 3px 3px 0;padding:14px 16px}
.notice b{font-family:var(--head)}
.notice a:not(.btn){display:inline-flex;align-items:center;min-height:44px;color:var(--orange-dk);font-weight:700}
.msg{background:#FDECEC;color:#8F1F1F;border-radius:3px;padding:10px 12px;font-size:15px;font-weight:600}
.ok{background:#EAF5EC;color:#1E5A2B;border-radius:3px;padding:10px 12px;font-size:15px;font-weight:600}
.fine{font-size:13.5px;color:#666;line-height:1.45}
.fine a{color:inherit}

/* shop: search, filter and the product grid */
.shopbox{display:flex;flex-direction:column;gap:18px;padding:18px 16px 24px}
@media (min-width:700px){.shopbox{padding:28px 32px 34px;gap:22px}}
.filters{display:grid;grid-template-columns:1fr;gap:12px}
.filters .field{min-width:0}
@media (min-width:700px){.filters{grid-template-columns:2fr 1fr}}
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:600px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.pcard{background:#fff;border:1px solid var(--line);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;height:100%}
.pcard .pimg{display:block;background:#F2F2F2}
.pcard .pimg img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.pcard .pbody{display:flex;flex-direction:column;gap:8px;padding:14px 16px 16px;flex:1}
.pcard h3{margin-block:-9px}
.pcard h3 a{display:block;padding:11px 0;text-decoration:none}
.pcard h3 a:hover{text-decoration:underline}
.pcard .short{color:var(--muted);font-size:16px;line-height:1.45}
.pcard .acts{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:6px}
.price{font-family:var(--head);font-weight:700;font-size:22px;color:var(--ink)}
.price small{font-family:var(--body);font-weight:600;font-size:13.5px;color:var(--muted);margin-left:4px}
.price.req{font-size:18px;color:var(--muted)}
.flags{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.tag{display:inline-block;font-size:13.5px;font-weight:600;line-height:1.2;padding:4px 8px;border-radius:3px;background:var(--soft);color:#444;border:1px solid var(--line)}
.tag.low{background:#FFF6F2;border-color:#F0C6B3;color:var(--orange-dk)}
.catsec{display:flex;flex-direction:column;gap:12px}
.catsec+.catsec{margin-top:6px}
.catsec h2{font-size:clamp(20px,4.2vw,26px)}
.pcard.soon{border-style:dashed;background:#FAFAFA}
.pcard.soon .pbody{padding-block:18px}
.empty{color:var(--muted);padding:18px 0}

/* product page */
.crumb{font-family:var(--head);font-size:14.5px;margin-bottom:14px}
.crumb a{display:inline-block;padding:11px 0;color:var(--orange-dk);font-weight:700;text-decoration:none}
.crumb a:hover{text-decoration:underline}
.pdp{display:grid;grid-template-columns:1fr;gap:22px}
.pdp .gallery{background:#F2F2F2;border-radius:4px;overflow:hidden}
.pdp .gallery img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.pdp .info{display:flex;flex-direction:column;gap:14px}
.pdp .long{display:flex;flex-direction:column;gap:10px;color:#444}
@media (min-width:860px){.pdp{grid-template-columns:1.05fr .95fr;gap:36px}}
.buy{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.qty{display:inline-flex;align-items:stretch;border:1.5px solid #BDBDBD;border-radius:3px;background:#fff}
.qty button{width:44px;min-height:44px;border:0;background:var(--soft);font:700 22px/1 var(--head);color:var(--ink);cursor:pointer}
.qty button:hover{background:#E6E6E6}
.qty button:disabled{opacity:.4;cursor:not-allowed}
.qty input{width:52px;min-height:44px;border:0;border-inline:1.5px solid #BDBDBD;text-align:center;font:600 17px var(--body);color:var(--ink);background:#fff;-moz-appearance:textfield;appearance:textfield;border-radius:0}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qtyf{display:flex;flex-direction:column;gap:4px}
.qtyf>label,.qtyf>span.l{font-size:13px;font-weight:600;color:#555}
.gstnote{margin-top:-8px}
.specs{display:flex;flex-direction:column;gap:8px}
.specs h2{font-size:20px}
.specs table{width:100%;border-collapse:collapse;font-size:16px}
.specs th,.specs td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.specs th{width:42%;font-weight:600;color:#555;background:var(--soft)}

/* cart */
.lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.line{display:grid;grid-template-columns:72px 1fr;gap:6px 14px;padding:16px 0;border-bottom:1px solid var(--line)}
.line:first-child{padding-top:0}
.line .thumb img{width:72px;height:54px;object-fit:cover;border-radius:3px;background:#F2F2F2}
.line .what{display:flex;flex-direction:column;gap:2px;min-width:0}
.line .what a{display:block;padding:11px 0;margin-block:-9px;font-family:var(--head);font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.line .what a:hover{text-decoration:underline}
.line .unit{color:var(--muted);font-size:15px}
.line .ctl{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}
.line .lt{font-family:var(--head);font-weight:700;font-size:18px}
@media (min-width:700px){
  .line{grid-template-columns:72px 1fr auto;align-items:center}
  .line .ctl{grid-column:auto;justify-content:flex-end;gap:12px 22px}
  .line .lt{min-width:84px;text-align:right}
}
.sum{display:flex;flex-direction:column;gap:8px;padding-top:18px}
.sum dl{margin:0;display:flex;flex-direction:column;gap:8px}
.sum .row{display:flex;justify-content:space-between;gap:16px}
.sum dt{color:var(--muted)}
.sum dd{margin:0;text-align:right;font-weight:600}
.sum .total{border-top:2px solid var(--ink);padding-top:10px;margin-top:2px}
.sum .total dt,.sum .total dd{font-family:var(--head);font-weight:700;font-size:21px;color:var(--ink)}
.sum .gst dt,.sum .gst dd{font-size:15px;color:var(--muted);font-weight:400}
.pickers{display:flex;flex-direction:column;gap:10px;border:0;margin:0;padding:0;min-width:0}
.pickers legend{font-size:13px;font-weight:600;color:#555;padding:0;margin-bottom:6px}
.pick{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 12px;border:1.5px solid #CFCFCF;border-radius:3px;cursor:pointer;background:#fff}
.pick input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--orange)}
.pick span{display:flex;flex-direction:column;gap:2px}
.pick span small{color:var(--muted);font-size:14px;font-weight:400}
.pick:has(input:checked){border-color:var(--orange);background:#FFF6F2}
.checkout-go{display:flex;flex-direction:column;gap:10px;padding-top:14px}

/* forms (the enquiry form) */
.form{display:flex;flex-direction:column;gap:12px}
.form h2{font-size:clamp(21px,4.4vw,26px)}
.form .sub{font-size:15.5px;color:var(--muted)}
.field{display:flex;flex-direction:column;gap:4px}
.field label{font-size:13.5px;font-weight:600;color:#555}
.field input,.field select,.field textarea{font:inherit;font-size:16px;min-height:44px;border:0;border-bottom:1.5px solid #BDBDBD;background:#FAFAFA;padding:10px;border-radius:2px 2px 0 0;color:var(--ink);width:100%;min-width:0}
.field textarea{min-height:96px;resize:vertical}
.filters input,.filters select{font:inherit;font-size:16px;min-height:44px;border:1.5px solid #BDBDBD;background:#fff;padding:10px;border-radius:3px;color:var(--ink);width:100%;min-width:0}
.filters label{display:block;font-size:13.5px;font-weight:600;color:#555;margin-bottom:4px}
.row2{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:600px){.row2{grid-template-columns:1fr 1fr}}
.row2.narrow{grid-template-columns:1fr 1fr}
.field .hint{font-size:13.5px;color:var(--muted);margin:0}
.ferr{background:#FDECEC;color:#8F1F1F;border-radius:3px;padding:8px 10px;font-size:15px;font-weight:600}
.field input[aria-invalid],.field select[aria-invalid],.field textarea[aria-invalid]{border-bottom-color:#B3261E;background:#FFF8F7}
.grp{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:12px}
.grp legend{font-family:var(--head);font-weight:700;font-size:clamp(19px,4vw,22px);color:#3A3A3A;padding:0;margin-bottom:10px}
.checkout{margin-top:26px;padding-top:22px;border-top:2px solid var(--line);gap:16px}
.checkout>h2{margin-bottom:-4px}
.line-err{grid-column:1/-1}
#cart-notes:not(:empty){margin-bottom:14px}
#co-fallback .notice{align-items:flex-start}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.orderlist{background:var(--soft);border-radius:4px;padding:12px 14px;font-size:15.5px;color:#444}
.orderlist ul{margin:6px 0 0;padding-left:20px}
#enquire{scroll-margin-top:16px}

/* the "added to your cart" note */
.toast{position:fixed;left:12px;right:12px;bottom:12px;z-index:40;display:none;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--char);color:#fff;border-radius:4px;padding:10px 12px 10px 16px;box-shadow:0 10px 30px rgba(0,0,0,.35);max-width:520px;margin-inline:auto}
.toast.on{display:flex}

/* thanks page */
.thanks{display:flex;flex-direction:column;gap:16px;max-width:720px;margin:0 auto}
.thanks h1{font-size:clamp(26px,5.4vw,36px);color:#333}
.thanks .intro{font-size:19px}
.thanks p{color:#444}
.thanks .tick{width:64px;height:64px;border-radius:50%;background:var(--orange);display:grid;place-items:center;flex:none}
.thanks .tick svg{width:34px;height:34px;stroke:#fff;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.thanks .urgent{background:#FFF6F2;border-left:4px solid var(--orange);padding:12px 16px;border-radius:0 3px 3px 0}
.thanks .urgent a{color:var(--orange-dk);font-weight:700}
.thanks section{display:flex;flex-direction:column;gap:16px}
.orderbox{background:var(--soft);border-radius:4px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.orderbox h2{font-size:21px}
.orderbox .olines{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.orderbox .ototal b{font-family:var(--head);font-size:20px}
.orderbox .dispatch{font-weight:600;color:#1E5A2B}

/* the legal pages */
.prose{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.prose h1{font-size:clamp(26px,5.6vw,38px);color:#333}
.prose h2{font-size:22px;margin-top:12px}
.prose p,.prose li{color:#444}
.prose ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.prose a{color:var(--orange-dk);overflow-wrap:anywhere}
.prose .updated{color:var(--muted);font-size:15px}
.prose .sect{display:flex;flex-direction:column;gap:14px}
.prose .box{background:var(--soft);border-radius:4px;padding:14px 16px}

/* footer */
.foot{background:#fff;padding-block:36px 24px;font-size:15px;color:#555}
.foot .cols{display:grid;grid-template-columns:1fr;gap:22px}
@media (min-width:760px){.foot .cols{grid-template-columns:1.2fr 1fr 1fr}}
.foot h3{font-size:15px;margin-bottom:6px;color:#333}
.foot img{height:56px;width:auto;margin-bottom:8px}
.foot ul{list-style:none;margin:0;padding:0}
.foot li a{display:flex;align-items:center;min-height:44px}
.foot a{color:inherit;text-decoration:none}
.foot a:hover{text-decoration:underline}
.foot p{line-height:1.3}
.foot .bar{border-top:1px solid #E5E5E5;margin-top:20px;padding-top:12px;text-align:center;font-size:13.5px;color:#666}
.foot .bar a{display:inline-block;text-decoration:underline;padding:12px 4px}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* long names and words never push the page sideways */
.pdp>*{min-width:0}
.pdp h1,.pdp p,.pcard h3 a,.pcard .short,.line .what a,.orderbox li,.thanks p,.notice span,.notice b{overflow-wrap:anywhere}
.notice h1{font-size:22px;color:#333}
