/* AF Custom Creations — Stage 5 Signature Experience
   Optional visual enhancements only. No checkout, inventory, or artwork calculations. */
:root { --afcc-s5-forest:#0d3c31; --afcc-s5-gold:#cca466; --afcc-s5-ivory:#fffaf1; }
html { scroll-padding-top: 18px; }
/* Strong, consistent visible keyboard focus across pages. */
:where(main, header, footer, .overlay, dialog) :is(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid #dbab53 !important;
  outline-offset: 3px;
}
.afcc-s5-skip {
  position:fixed; top:10px; left:12px; z-index:99999;
  padding:12px 19px; border-radius:999px; background:#fffaf1;
  color:#082e27; font:700 14px/1.25 Arial,sans-serif; border:2px solid #c39a55;
  box-shadow:0 8px 24px #0003;
  transform:translateY(-160%);
}
.afcc-s5-skip:focus { transform:translateY(0); }
/* Stage-5 shipping threshold display is informative and not a payment quote. */
.afcc-s5-progress {
  margin:14px 0 16px; padding:17px 17px 15px;
  background:linear-gradient(140deg,#fffcf5,#f3eddb);
  border:1px solid #ddcfac; border-radius:20px;
  color:#234b3e;
}
.afcc-s5-progress[hidden], .afcc-s5-empty[hidden], .afcc-s5-toast[hidden] { display:none !important; }
.afcc-s5-progress-top {display:flex;gap:10px;align-items:center;justify-content:space-between; flex-wrap:wrap;}
.afcc-s5-progress strong { font:700 14px/1.35 'DM Sans',Arial,sans-serif; }
.afcc-s5-progress .afcc-s5-amount { font:700 13px/1.35 'DM Sans',Arial,sans-serif; white-space:nowrap; }
.afcc-s5-progress-track { height:10px; border-radius:999px; background:#e0e6d9; margin:12px 0 9px; overflow:hidden; }
.afcc-s5-progress-fill {width:0%;height:100%; border-radius:999px; background:linear-gradient(90deg,#17674e,#d3aa6a); transition:width .45s ease;}
.afcc-s5-progress small {display:block; color:#5c6e63; font-size:12px; line-height:1.45;}
.afcc-s5-empty {
  text-align:center; margin:0 0 14px; padding:24px 18px;
  border-radius:20px; background:#faf3e5; border:1px dashed #cbb789;
  color:#234337;
}
.afcc-s5-empty-piece {font-size:30px; display:block; margin-bottom:7px;}
.afcc-s5-empty strong {display:block; font:600 21px/1.2 'Playfair Display',Georgia,serif;}
.afcc-s5-empty p {margin:8px auto 15px; max-width:290px; font-size:13px;}
.afcc-s5-empty a {display:inline-block; background:#0b4537; color:white; text-decoration:none;
  border-radius:999px; padding:10px 16px; font-size:13px; font-weight:700;}
#cart-items.afcc-s5-is-empty > p { display:none; }
/* Lightweight brand celebration after an item was actually added. */
.afcc-s5-toast {
  position:fixed; z-index:4000; right:20px; bottom:20px;
  display:flex; align-items:center; gap:13px;
  max-width:min(410px,calc(100vw - 30px));
  background:#fffaf1; color:#123e32;
  border:1px solid #dbbe81; border-left:5px solid #bd9355;
  box-shadow:0 22px 60px #071c1740; border-radius:21px;
  padding:15px 13px 15px 16px;
}
.afcc-s5-toast-copy {flex:1; min-width:0;}
.afcc-s5-toast-copy strong {display:block;font:600 19px/1.17 'Playfair Display',Georgia,serif;}
.afcc-s5-toast-copy span {display:block;font:13px/1.35 'DM Sans',Arial,sans-serif;margin-top:4px;}
.afcc-s5-toast-close {border:0;background:#f2ead9;color:#284b3d; width:34px;height:34px; border-radius:50%; flex:none; font-size:19px; line-height:1; cursor:pointer;}
.afcc-s5-pieces {position:relative;width:48px;height:49px;flex:none;}
.afcc-s5-pieces span {position:absolute; width:29px;height:29px; border-radius:7px; background:#c69a54; box-shadow:0 3px 8px #0002;}
.afcc-s5-pieces span::after {content:"";position:absolute; top:8px; right:-7px; width:14px;height:14px;border-radius:50%;background:inherit;}
.afcc-s5-pieces span:first-child {left:0;top:0;transform:rotate(-14deg);}
.afcc-s5-pieces span:last-child {right:0;bottom:0;background:#1b6b54;transform:rotate(12deg);}
/* Tiny interactive motion instead of motion-heavy transitions. */
@media (prefers-reduced-motion:no-preference) {
  .afcc-s5-toast {animation:afcc-s5-toast-in .3s cubic-bezier(.2,.85,.35,1) both;}
  .afcc-s5-pieces span:first-child {animation:afcc-s5-fit-left .65s .08s ease-out both;}
  .afcc-s5-pieces span:last-child {animation:afcc-s5-fit-right .65s .08s ease-out both;}
  .afcc-s5-appear {animation:afcc-s5-appear .55s cubic-bezier(.18,.8,.3,1) both;}
  .afcc-homepage .product button, .afcc-homepage .cta, .studio-primary, .studio-secondary,
  .afcc-stage3-main a {transition:transform .18s ease, box-shadow .18s ease;}
  :is(.afcc-homepage .product button, .studio-primary, .studio-secondary):not(:disabled):active {transform:scale(.98);}
  @keyframes afcc-s5-appear {from {opacity:.7;transform:translateY(12px)} to {opacity:1;transform:translateY(0)}}
  @keyframes afcc-s5-toast-in {from {opacity:0;transform:translateY(22px)} to {opacity:1;transform:translateY(0)}}
  @keyframes afcc-s5-fit-left {from {transform:translate(-16px,-7px) rotate(-32deg)}to{transform:translate(0,0) rotate(-14deg)}}
  @keyframes afcc-s5-fit-right {from{transform:translate(17px,10px) rotate(34deg)}to{transform:translate(0,0) rotate(12deg)}}
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {scroll-behavior:auto !important;}
  .afcc-s5-progress-fill {transition:none !important;}
  .afcc-s5-appear, .afcc-s5-toast, .afcc-s5-pieces span {animation:none !important;}
}
@media (max-width:600px) {
  .afcc-s5-toast {left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom)); max-width:none; padding:13px;}
  .afcc-s5-toast-copy strong {font-size:17px;}
  .afcc-s5-progress {padding:15px 14px;}
  .afcc-s5-progress-top {align-items:flex-start;}
}
