/* Loading states shared by every site page (linked from the header partial).
 *  .fs-loading            a status line with a small spinner in front ("Loading your orders...")
 *  [aria-busy="true"]     on a button: a spinner after the label while its request runs
 *  .fs-skel-card / -tile  grey placeholders shaped like a product card / menu category tile
 *  .fs-summary[aria-busy] checkout totals fade to placeholders while they are re-priced
 */
@keyframes fs-load-spin { to { transform: rotate(360deg); } }
@keyframes fs-load-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.fs-loading { display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px 0; color: #76756D; font-size: 15px; font-weight: 600; }
.fs-loading.text-center, .text-center > .fs-loading { justify-content: center; }
.fs-loading::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid #d6d0c0; border-top-color: #0B7A3B; border-radius: 50%; animation: fs-load-spin .7s linear infinite; }
h2.fs-loading, h3.fs-loading { color: inherit; font-size: inherit; font-weight: inherit; padding: 0; }

button[aria-busy="true"] { cursor: wait !important; }
button[aria-busy="true"]::after { content: ""; display: inline-block; flex: none; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fs-load-spin .7s linear infinite; }

/* placeholder blocks */
.fs-skel { display: block; border-radius: 3px; background: linear-gradient(90deg, #efe9da 0%, #f7f3ea 50%, #efe9da 100%); background-size: 200% 100%; animation: fs-load-shimmer 1.3s ease-in-out infinite; }
.fs-skel-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e2dac6; border-radius: 6px; }
.fs-skel-card .fs-skel-photo { aspect-ratio: 3 / 2; border-radius: 0; }
.fs-skel-card .fs-skel-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.fs-skel-line { height: 12px; }
.fs-skel-line.is-title { height: 18px; width: 75%; }
.fs-skel-line.is-short { width: 40%; }
.fs-skel-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px dashed #e2dac6; }
.fs-skel-foot .fs-skel:first-child { width: 60px; height: 20px; }
.fs-skel-foot .fs-skel:last-child { width: 72px; height: 36px; border-radius: 4px; }
.fs-skel-tile { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e2dac6; border-radius: 6px; }
.fs-skel-tile .fs-skel-photo { aspect-ratio: 4 / 3; border-radius: 0; }
.fs-skel-tile .fs-skel-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }

/* checkout / cart totals while the server re-prices the order */
.fs-summary[aria-busy="true"] li > span:last-child,
.cart-summary[aria-busy="true"] li > span:last-child { color: transparent !important; border-radius: 3px; background: linear-gradient(90deg, #efe9da 0%, #f7f3ea 50%, #efe9da 100%); background-size: 200% 100%; animation: fs-load-shimmer 1.3s ease-in-out infinite; }
.fs-summary[aria-busy="true"] .fs-tips { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .fs-loading::before, button[aria-busy="true"]::after { animation-duration: 2s; }
  .fs-skel, .fs-summary[aria-busy="true"] li > span:last-child, .cart-summary[aria-busy="true"] li > span:last-child { animation: none; }
}
