/* Family Cresting shop page. Everything is scoped under .fcs so the theme is untouched.
   Garment previews (crest placement) come from crest-preview.css, shared with the kiosk. */
.fcs,.show-main{  /* .show-main: the show page's order list and "sent" screens sit outside .fcs */
  --ink:#16202c; --ink-2:#3d4857; --muted:#667185; --line:#dfd8c8; --line-2:#ebe5d8;
  --paper:#fbf8f1; --card:#ffffff; --navy:#14304f; --navy-2:#0d2240; --gold:#b48a2c; --gold-2:#8d6a1b;
  --gold-bg:#f6eedb; --ok:#1f6b3a; --err:#9b1c1c;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px;
  --radius-sm:6px; --radius:10px; --radius-lg:14px; --radius-xl:16px;
  --text-muted:var(--muted);
  --serif:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family:var(--sans); color:var(--ink); line-height:1.5; padding:0 0 var(--sp-8);
  /* wider than the theme's text column: centred on the page, up to 1180px */

  -webkit-font-smoothing:antialiased;
}
.fcs *,.fcs *::before,.fcs *::after{box-sizing:border-box}
/* wider than the theme's text column: centred on the page, up to 1180px (themes force
   margins on their content column, hence the id and !important) */
#fcs.fcs{width:min(1180px, calc(100vw - 32px));max-width:none;margin-left:calc(50% - min(590px, 50vw - 16px)) !important;margin-right:0 !important}
.fcs button{font:inherit;color:inherit}
.fcs img{max-width:100%}

/* steps */
.fcs-steps{display:flex;justify-content:center;gap:var(--sp-2);list-style:none;margin:0 0 var(--sp-4);padding:0;counter-reset:s}
.fcs-steps li{display:flex;align-items:center;gap:var(--sp-2);font-size:16px;font-weight:600;color:var(--muted);
  padding:var(--sp-2) var(--sp-4);border-radius:999px;margin:0}
.fcs-steps li span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line);font-size:12px;background:var(--card)}
.fcs-steps li.is-active{color:var(--navy);background:var(--gold-bg)}
.fcs-steps li.is-active span{background:var(--navy);border-color:var(--navy);color:#fff}
.fcs-steps li.is-done span{background:var(--gold);border-color:var(--gold);color:#fff}

.fcs-screen{display:none}
.fcs-screen.is-visible{display:block;animation:fcs-in .25s ease}
@keyframes fcs-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* hero + search */
.fcs-hero{text-align:center;padding:var(--sp-8) var(--sp-4);border-radius:var(--radius-xl);margin-bottom:var(--sp-6);
  background:radial-gradient(120% 140% at 50% 0%, #1d3d63 0%, var(--navy-2) 70%);color:#fff;position:relative;overflow:hidden}
.fcs-hero::after{content:"";position:absolute;inset:10px;border:1px solid rgba(214,180,100,.35);border-radius:calc(var(--radius-xl) - 6px);pointer-events:none}
.fcs-eyebrow{margin:0 0 var(--sp-2);font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#d8bb72}
.fcs-title{font-family:var(--serif);font-weight:700;font-size:clamp(30px,4.5vw,46px);line-height:1.1;margin:0 0 var(--sp-3);color:inherit;letter-spacing:.005em}
.fcs-title--sm{font-size:clamp(24px,3vw,32px);color:var(--ink);margin-bottom:var(--sp-4)}
.fcs-lede{max-width:34em;margin:0 auto var(--sp-6);color:#e1e8f1;font-size:19px}
.fcs-search{position:relative;display:block;max-width:560px;margin:0 auto}
.fcs-search svg{position:absolute;left:18px;top:50%;width:22px;height:22px;transform:translateY(-50%);fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.fcs-search input{width:100%;height:66px;padding:0 20px 0 52px;border-radius:999px;border:2px solid transparent;background:#fff;color:var(--ink);
  font-size:21px;font-weight:500;outline:none;box-shadow:0 10px 30px rgba(0,0,0,.25);-webkit-appearance:none;appearance:none}
.fcs-search input:focus{border-color:var(--gold)}
.fcs-search--sm input{height:50px;font-size:16px;box-shadow:none;border-color:var(--line)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

.fcs-hint,.fcs-sub{text-align:center;color:var(--muted);margin:var(--sp-6) 0}
.fcs-sub{font-family:var(--serif);font-size:22px;font-weight:700;color:var(--ink);margin:0 0 var(--sp-4)}
.fcs-loading{display:flex;justify-content:center;gap:6px;padding:var(--sp-8)}
.fcs-loading span{width:8px;height:8px;border-radius:50%;background:var(--gold);animation:fcs-dot 1s infinite ease-in-out}
.fcs-loading span:nth-child(2){animation-delay:.15s}.fcs-loading span:nth-child(3){animation-delay:.3s}
@keyframes fcs-dot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:none}}

/* nationalities */
.fcs-nations{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--sp-3);max-width:820px;margin:0 auto}
.fcs-nation{display:flex;flex-direction:column;align-items:center;gap:2px;padding:var(--sp-5) var(--sp-4);border:1.5px solid var(--line);
  border-radius:var(--radius-lg);background:var(--card);cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.fcs-nation span{font-family:var(--serif);font-size:22px;font-weight:700}
.fcs-nation small{color:var(--muted);font-size:15px}
.fcs-nation:hover{border-color:var(--gold);box-shadow:0 6px 18px rgba(20,48,79,.1);transform:translateY(-1px)}
.fcs-nation--all{border-style:dashed;background:transparent}

/* crest cards */
.fcs-crests{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:var(--sp-4);margin-top:var(--sp-3)}
.fcs-crest{display:flex;flex-direction:column;text-align:center;padding:0;border:1.5px solid var(--line-2);border-radius:var(--radius-lg);
  background:var(--card);cursor:pointer;overflow:hidden;transition:border-color .15s,box-shadow .15s,transform .15s}
.fcs-crest:hover,.fcs-crest:focus-visible{border-color:var(--gold);box-shadow:0 10px 26px rgba(20,48,79,.12);transform:translateY(-2px);outline:none}
.fcs-crest__img{display:block;aspect-ratio:1;padding:var(--sp-4);background:radial-gradient(circle at 50% 45%,#fff 0%,var(--paper) 75%)}
.fcs-crest__img img{width:100%;height:100%;object-fit:contain}
.fcs-crest__name{font-weight:700;font-size:18px;padding:var(--sp-3) var(--sp-3) 0}
.fcs-crest__style{font-size:15px;color:var(--muted);padding:0 var(--sp-3) var(--sp-3)}

.fcs-link{background:none;border:0;padding:var(--sp-2) 0;color:var(--navy);font-weight:600;font-size:17px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.fcs-link:hover{color:var(--gold-2);text-decoration:underline}
.fcs-link--muted{color:var(--muted)}

/* bar with the chosen crest */
.fcs-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);margin-bottom:var(--sp-4);flex-wrap:wrap}
.fcs-chosen{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);border:1px solid var(--line);border-radius:999px;background:var(--card)}
.fcs-chosen img{width:44px;height:44px;object-fit:contain}
.fcs-chosen span{display:flex;flex-direction:column;line-height:1.2}
.fcs-chosen small{color:var(--muted);font-size:12px}

/* products */
.fcs-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--sp-4)}
.fcs-product{display:flex;flex-direction:column;padding:var(--sp-3);border:1.5px solid var(--line-2);border-radius:var(--radius-lg);background:var(--card);
  cursor:pointer;text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}
.fcs-product:hover{border-color:var(--gold);box-shadow:0 10px 26px rgba(20,48,79,.12);transform:translateY(-2px)}
.fcs-product.is-out{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.fcs-product__img{display:block;margin-bottom:var(--sp-3)}
.fcs-product__img .garment-preview{max-width:none;margin:0;border:0;border-radius:var(--radius)}
.fcs-product__name{font-weight:700;font-size:19px;padding:0 var(--sp-1)}
.fcs-product__price{color:var(--ink-2);font-size:17px;font-weight:600;padding:0 var(--sp-1)}

/* customize */
.fcs-custom{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:var(--sp-8);align-items:start}
.fcs-preview{position:sticky;top:24px}
.fcs-preview .garment-preview{max-width:none;margin:0;border:1px solid var(--line-2);background:#efefef}
.fcs-preview .garment-preview--dual{max-width:none}
.fcs-panel{background:var(--card);border:1px solid var(--line-2);border-radius:var(--radius-xl);padding:var(--sp-6)}
.fcs-panel .fcs-title--sm{margin-bottom:var(--sp-1)}
.fcs-price{font-size:24px;font-weight:700;color:var(--navy);margin:0 0 var(--sp-5)}
.fcs-price small{font-size:14px;color:var(--muted);font-weight:500}
.fcs-field{border:0;padding:0;margin:0 0 var(--sp-5);min-width:0}
.fcs-field legend{font-size:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin-bottom:var(--sp-2);padding:0}
.fcs-field--row{display:flex;align-items:center;gap:var(--sp-4)}
.fcs-field--row legend{float:left;margin:0}
.fcs-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:var(--sp-2)}
.fcs-choices--sizes{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}
.fcs-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;padding:var(--sp-2) var(--sp-3);
  border:1.5px solid var(--line);border-radius:var(--radius);background:#fff;cursor:pointer;font-weight:600;font-size:17px;line-height:1.2;
  transition:border-color .15s,background .15s}
.fcs-choice small{font-weight:500;color:var(--ink-2);font-size:15px;margin-top:2px}
.fcs-choice:hover{border-color:var(--gold)}
.fcs-choice.is-on{border-color:var(--navy);background:#eef3f9;box-shadow:inset 0 0 0 1px var(--navy)}
.fcs-choice.is-out{opacity:.4;text-decoration:line-through;cursor:not-allowed}
.fcs-backcrest{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
.fcs-backcrest img{width:52px;height:52px;object-fit:contain;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}
.fcs-backcrest span{flex:1;min-width:8em;font-weight:600}
.fcs-qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:999px;overflow:hidden}
.fcs-qty button{width:44px;height:44px;border:0;background:#fff;font-size:20px;cursor:pointer}
.fcs-qty button:hover{background:var(--paper)}
.fcs-qty output{min-width:36px;text-align:center;font-weight:700}

.fcs-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:58px;padding:0 var(--sp-6);border-radius:999px;border:1.5px solid transparent;
  font-weight:700;font-size:19px;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s,opacity .15s}
.fcs-btn--primary{background:var(--navy);color:#fff!important;width:100%}
.fcs-btn--primary:hover{background:var(--navy-2)}
.fcs-btn--primary:disabled{opacity:.45;cursor:not-allowed}
.fcs-btn--ghost{background:#fff;border-color:var(--line);color:var(--ink)}
.fcs-btn--ghost:hover{border-color:var(--gold)}
.fcs-btn--small{min-height:40px;padding:0 var(--sp-4);font-size:14px;background:#fff;border-color:var(--line)}
.fcs-error{color:var(--err);font-weight:600;margin:0 0 var(--sp-3);min-height:0}
.fcs-error:empty{display:none}
.fcs-note{font-size:16px;color:var(--muted);text-align:center;margin:var(--sp-3) 0 0}

/* modal */
.fcs-modal{position:fixed;inset:0;z-index:99999;background:rgba(10,18,30,.55);display:flex;align-items:center;justify-content:center;padding:var(--sp-4)}
.fcs-modal[hidden]{display:none}
.fcs-modal__panel{background:var(--paper);border-radius:var(--radius-xl);width:min(1100px,100%);height:min(860px,100%);display:flex;flex-direction:column;
  gap:var(--sp-4);padding:var(--sp-6);box-shadow:0 30px 80px rgba(0,0,0,.35)}
.fcs-modal__head{display:flex;justify-content:space-between;align-items:center}
.fcs-modal__head h3{font-family:var(--serif);font-size:28px;margin:0}
.fcs-icon-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:24px;cursor:pointer}
.fcs-modal .fcs-search{max-width:none;margin:0}
.fcs-modal .fcs-results{flex:1;min-height:0;overflow:auto;padding:2px}
body.fcs-noscroll{overflow:hidden}

/* added toast */
.fcs-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:99998;width:min(640px,calc(100% - 32px));background:#fff;
  border:1px solid var(--line);border-radius:var(--radius-xl);box-shadow:0 20px 50px rgba(10,18,30,.25);padding:var(--sp-5);display:flex;flex-direction:column;gap:var(--sp-4);
  animation:fcs-in .25s ease}
.fcs-toast[hidden]{display:none}
.fcs-toast__body{display:flex;flex-direction:column}
.fcs-toast__close{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;font-size:28px;line-height:1;color:var(--muted);cursor:pointer}
.fcs-toast__close:hover{background:var(--paper)}
.fcs-toast__body{padding-right:40px}
.fcs-toast__body strong{color:var(--ok);font-size:17px}
.fcs-toast__body strong::before{content:"\2713  "}
.fcs-toast__body span{color:var(--ink-2)}
.fcs-toast__actions{display:flex;gap:var(--sp-3)}
.fcs-toast__actions .fcs-btn{flex:1}

@media (max-width: 820px){
  /* phones and tablets: Add to cart stays at the bottom of the screen while choosing */
  #fcs-add{position:sticky;bottom:12px;z-index:5;box-shadow:0 8px 24px rgba(13,34,64,.35)}
  #fcs-add:disabled{opacity:1;background:#8a96a8}
  .fcs-custom{grid-template-columns:1fr;gap:var(--sp-5)}
  .fcs-preview{position:static}
  .fcs-steps li{font-size:0;padding:var(--sp-1)}
  .fcs-steps li span{font-size:12px}
  .fcs-steps li.is-active{font-size:13px;padding:var(--sp-1) var(--sp-3)}
  .fcs-panel{padding:var(--sp-4)}
}
@media (max-width: 560px){
  .fcs-hero{padding:var(--sp-6) var(--sp-3)}
  .fcs-lede{font-size:17px;margin-bottom:var(--sp-4)}
  .fcs-steps{margin-bottom:var(--sp-3)}
  .fcs-crests{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)}
  .fcs-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)}
  .fcs-nations{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fcs-toast__actions{flex-direction:column}
  .fcs-modal{padding:0}
  .fcs-modal__panel{border-radius:0;height:100%;padding:var(--sp-4)}
}

/* page title above the shop (Genesis, block and classic themes) */
body.fcs-page .entry-title,body.fcs-page .wp-block-post-title,body.fcs-page .page-title,body.fcs-page .entry-header{display:none}
/* the theme's top spacing around page content (block themes and Genesis): the shop starts right under the header */
body.fcs-page main.wp-block-group,body.fcs-page .entry-content{margin-top:0 !important}
body.fcs-page main > .wp-block-group{padding-top:var(--wp--preset--spacing--30, 16px) !important}
body.fcs-page .site-inner{padding-top:16px !important}
body.fcs-page article.entry{padding-top:0 !important;margin-top:0 !important}

/* crest pictures can't be dragged out or selected (they're also watermarked) */
.fcs img,.fcs-cart-crest{-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}

.fcs-hint--tight{margin:-8px 0 var(--sp-4)}
.fcs-nation--other span{font-size:19px}

/* the nudge to start shopping: see the crest on the products */
.fcs-promise{max-width:34em;margin:-10px auto var(--sp-5);font-size:20px;font-weight:700;color:#f0d68a}
.fcs-callout{text-align:center;font-size:24px;font-weight:800;color:var(--navy);background:var(--gold-bg);border-radius:999px;
  padding:10px 20px;margin:0 auto var(--sp-4);max-width:max-content}
@media (max-width:560px){.fcs-promise{font-size:18px}.fcs-callout{font-size:20px;border-radius:14px;max-width:none}}
