/* SeriousMindware.Stores.Razor: storefront, product, order and seller pages. Everything is under .sms-store, and the colors are
   variables a host can override (for example on .sms-store in its own stylesheet). Dark by default to match the sites. */
.sms-store {
    --sms-panel: rgba(38, 49, 134, 0.40);
    --sms-border: rgba(255, 255, 255, 0.15);
    --sms-text: #f8f9fa;
    --sms-muted: #b8c0cc;
    --sms-accent: #0dcaf0;
    --sms-accent-text: #04121a;
    --sms-ok: #3ccf8e;
    --sms-warn: #ffc107;
    --sms-danger: #ff8080;
    color: var(--sms-text);
    max-width: 72rem;
    margin: 1rem auto;
    padding: 0 1rem;
}

.sms-store a { color: var(--sms-accent); }
.sms-panel {
    background: var(--sms-panel);
    border: 1px solid var(--sms-border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.sms-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.25rem; }
.sms-subtitle { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.75rem; }
.sms-tagline { font-size: 1.1rem; margin: 0; color: var(--sms-muted); }
.sms-muted { color: var(--sms-muted); }
.sms-para { white-space: pre-line; }
.sms-note {
    border-left: 3px solid var(--sms-warn);
    padding: 0.4rem 0.75rem;
    background: rgba(255, 193, 7, 0.10);
    border-radius: 0.25rem;
}
.sms-price { font-weight: 600; }
.sms-price-big { font-size: 1.4rem; }

.sms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.sms-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--sms-panel);
    border: 1px solid var(--sms-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--sms-text) !important;
}
.sms-card:hover, .sms-card:focus-visible { border-color: var(--sms-accent); }
.sms-card-photo, .sms-main-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #fff;
}
.sms-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: #e9ecef;
    font-size: 0.9rem;
}
.sms-card-name { font-weight: 600; }

.sms-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
@media (max-width: 768px) {
    .sms-product { grid-template-columns: minmax(0, 1fr); }
}
.sms-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.sms-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.4rem;
    background: #fff;
    width: 4.5rem;
    height: 4.5rem;
    cursor: pointer;
}
.sms-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 0.3rem; }
.sms-thumb.is-current { border-color: var(--sms-accent); }

.sms-buy { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 0.75rem 0; }
.sms-qty { display: flex; flex-direction: column; font-size: 0.9rem; }
.sms-qty select, .sms-field input, .sms-field select, .sms-field textarea {
    background: rgba(0, 0, 0, 0.35);
    color: var(--sms-text);
    border: 1px solid var(--sms-border);
    border-radius: 0.4rem;
    padding: 0.4rem 0.6rem;
    font: inherit;
}
.sms-button {
    background: var(--sms-accent);
    color: var(--sms-accent-text);
    border: 0;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}
.sms-button:disabled { opacity: 0.6; cursor: default; }
.sms-link-button {
    background: none;
    border: 0;
    color: var(--sms-accent);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}
.sms-link-button:disabled { opacity: 0.4; cursor: default; }
.sms-danger { color: var(--sms-danger) !important; }

.sms-field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; font-size: 0.95rem; }
.sms-check { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.sms-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* The seller's tab bar sits on the page background (the robot picture on SeriousMindware.com), so it gets the panel color too. */
.sms-tabs {
    display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1rem; padding: 0.25rem 0.5rem;
    background: var(--sms-panel); border: 1px solid var(--sms-border); border-radius: 0.75rem;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sms-tab {
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--sms-text);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font: inherit;
}
.sms-tab.is-current { border-bottom-color: var(--sms-accent); font-weight: 600; }
.sms-count {
    background: var(--sms-warn);
    color: #000;
    border-radius: 1rem;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}
.sms-badge {
    display: inline-block;
    border: 1px solid var(--sms-border);
    border-radius: 1rem;
    padding: 0 0.6rem;
    font-size: 0.8rem;
}
.sms-badge-ok { border-color: var(--sms-ok); color: var(--sms-ok); }
.sms-badge-warn { border-color: var(--sms-warn); color: var(--sms-warn); }
.sms-problems {
    border: 1px solid var(--sms-warn);
    background: rgba(255, 193, 7, 0.12);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}
.sms-saved { color: var(--sms-ok); }

.sms-order.is-to-make { border-color: var(--sms-warn); }
.sms-order-head { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.sms-order-body { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.sms-address {
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0.25rem 0;
    color: var(--sms-text);
    user-select: all;
}
.sms-ship-form { max-width: 30rem; }
.sms-order-line { padding: 0.5rem 0; border-bottom: 1px solid var(--sms-border); }
.sms-order-line:last-child { border-bottom: 0; }
.sms-status { margin: 0.25rem 0; }

.sms-product-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.sms-row-photo { width: 4.5rem; height: 4.5rem; object-fit: contain; border-radius: 0.4rem; background: #fff; }
.sms-grow { flex: 1 1 12rem; min-width: 0; }
.sms-row-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.sms-photo-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.sms-photo-item { width: 8rem; }
.sms-photo-item img { width: 8rem; height: 8rem; object-fit: contain; border-radius: 0.4rem; background: #fff; display: block; }

/* Printify (0.3.0) */
.sms-printify-order { margin: .5rem 0; padding: .5rem .75rem; border-left: 3px solid var(--sms-accent, #c0392b); background: rgba(127, 127, 127, .08); border-radius: 4px; }
.sms-printify-order .sms-button, .sms-printify-order .sms-link-button { margin-left: .5rem; }

/* Personalized products: the art with the buyer's photo in a circle. */
.sms-personal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin: 0.5rem 0; }
@media (max-width: 640px) {
    .sms-personal { grid-template-columns: minmax(0, 1fr); }
}
.sms-personal-preview img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(127, 127, 127, 0.3); background: #fff; }
.sms-personal-controls input[type="range"] { width: 100%; }
.sms-choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0.75rem; }
.sms-choice { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 84px; padding: 0.35rem; border-radius: 8px; border: 2px solid rgba(127, 127, 127, 0.3); background: transparent; color: inherit; font-size: 0.78rem; line-height: 1.15; cursor: pointer; text-align: center; }
.sms-choice img { width: 64px; height: 64px; object-fit: contain; }
.sms-choice img.is-round { border-radius: 50%; object-fit: cover; }
.sms-choice-own { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(127, 127, 127, 0.18); font-size: 1.6rem; }
.sms-choice.is-picked { border-color: var(--sms-accent); outline: 2px solid var(--sms-accent); outline-offset: 1px; }
.sms-choice:disabled { opacity: 0.6; cursor: default; }
.sms-button.sms-button-quiet { background: transparent; color: inherit; border: 1px solid currentColor; margin-left: 0.5rem; }
.sms-choices-admin { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(127, 127, 127, 0.25); }
.sms-choice-list { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.4rem; }
.sms-choice-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.sms-choice-list img { width: 48px; height: 48px; object-fit: contain; }
.sms-choice-list img.is-round { border-radius: 50%; object-fit: cover; }
.sms-choice-add { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.sms-personal-buyer { margin: 0.75rem 0; padding-top: 0.5rem; border-top: 1px solid rgba(127, 127, 127, 0.25); }
.sms-hold { margin: 0.5rem 0; padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid rgba(214, 158, 46, 0.6); background: rgba(214, 158, 46, 0.12); }
.sms-hold.is-urgent { border-color: rgba(220, 53, 69, 0.7); background: rgba(220, 53, 69, 0.12); }
.sms-hold .sms-field { margin-top: 0.5rem; }
.sms-proof { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0.5rem 0; }
.sms-proof img { width: 120px; height: auto; border-radius: 6px; border: 1px solid rgba(127, 127, 127, 0.3); background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 16px 16px; }

/* Store looks: color themes a seller picks (StoreThemes). Each only sets the variables above. */
.sms-store { --sms-input: rgba(0, 0, 0, 0.35); --sms-hero-text: #ffffff; }
.sms-qty select, .sms-field input, .sms-field select, .sms-field textarea { background: var(--sms-input); }
.sms-theme-christmas {
    --sms-panel: rgba(104, 10, 24, 0.82); --sms-border: rgba(232, 190, 92, 0.45); --sms-text: #fff8ec; --sms-muted: #f0d8b4;
    --sms-accent: #e8be5c; --sms-accent-text: #3a0a10; --sms-input: rgba(40, 0, 6, 0.45);
}
.sms-theme-evergreen {
    --sms-panel: rgba(14, 62, 36, 0.84); --sms-border: rgba(232, 190, 92, 0.38); --sms-text: #f4fbf2; --sms-muted: #c9dcc6;
    --sms-accent: #e8be5c; --sms-accent-text: #10261a; --sms-input: rgba(0, 20, 8, 0.45);
}
.sms-theme-snow {
    --sms-panel: rgba(255, 255, 255, 0.88); --sms-border: rgba(30, 60, 110, 0.18); --sms-text: #10223f; --sms-muted: #4a5d7a;
    --sms-accent: #b3122a; --sms-accent-text: #ffffff; --sms-input: #ffffff; --sms-danger: #b3122a; --sms-ok: #18794e;
}
.sms-theme-night {
    --sms-panel: rgba(9, 14, 38, 0.86); --sms-border: rgba(242, 193, 78, 0.28); --sms-text: #f4f6fb; --sms-muted: #aab3c8;
    --sms-accent: #f2c14e; --sms-accent-text: #1a1300; --sms-input: rgba(0, 0, 0, 0.4);
}
.sms-theme-light {
    --sms-panel: rgba(255, 255, 255, 0.95); --sms-border: rgba(0, 0, 0, 0.12); --sms-text: #1d232b; --sms-muted: #5b6573;
    --sms-accent: #1d5fbf; --sms-accent-text: #ffffff; --sms-input: #ffffff; --sms-danger: #b42318; --sms-ok: #18794e;
}

/* The storefront's banner: the store's name and tagline over its picture (or over a panel when there's none). */
.sms-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 13rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    border: 1px solid var(--sms-border);
    background-color: var(--sms-panel);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.sms-hero.has-banner { min-height: clamp(14rem, 34vw, 24rem); color: var(--sms-hero-text); }
.sms-hero.has-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.62) 100%);
}
.sms-hero-text { position: relative; max-width: 44rem; }
.sms-hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; margin: 0 0 0.35rem; }
.sms-hero-tagline { font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin: 0 0 1rem; color: var(--sms-muted); }
.sms-hero.has-banner .sms-hero-title, .sms-hero.has-banner .sms-hero-tagline { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }
.sms-hero-button { display: inline-block; text-decoration: none; padding: 0.65rem 1.6rem; font-size: 1.05rem; }
.sms-store a.sms-button { color: var(--sms-accent-text); }
.sms-section { margin-bottom: 1.25rem; scroll-margin-top: 5rem; }
.sms-section-title {
    font-size: 1.4rem; font-weight: 700; margin: 0 0 0.75rem; display: inline-block; padding: 0.2rem 0.9rem;
    border-radius: 0.5rem; background: var(--sms-panel); border: 1px solid var(--sms-border);
}
.sms-card { position: relative; }
.sms-card-tag {
    position: absolute; top: 1.1rem; left: 1.1rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
    background: var(--sms-accent); color: var(--sms-accent-text);
}
@media (max-width: 640px) {
    .sms-hero { padding: 1.1rem 1.1rem; }
}

/* The seller's Look tab. */
.sms-theme-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem; }
.sms-theme-choice {
    display: flex; gap: 0.6rem; align-items: center; text-align: left; padding: 0.55rem 0.7rem; border-radius: 0.6rem;
    background: var(--sms-input); color: var(--sms-text); border: 2px solid var(--sms-border); cursor: pointer;
}
.sms-theme-choice.is-current { border-color: var(--sms-accent); }
.sms-theme-swatch { position: relative; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 0.5rem; border: 1px solid rgba(127, 127, 127, 0.5); }
.sms-theme-swatch span { position: absolute; right: 0.3rem; bottom: 0.3rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; }
.sms-look-preview { display: block; max-width: 100%; max-height: 14rem; border-radius: 0.6rem; margin-bottom: 0.75rem; border: 1px solid var(--sms-border); }
.sms-look-preview.is-banner { width: 100%; max-height: 12rem; object-fit: cover; }
@media (max-width: 640px) {
    .sms-storefront .sms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .sms-storefront .sms-card { padding: 0.5rem; }
    .sms-storefront .sms-card-tag { top: 0.8rem; left: 0.8rem; }
}

/* The shops directory: each card in its store's own colors. */
.sms-directory { margin-top: 1rem; }
.sms-directory-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.sms-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.sms-store-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 0.9rem; text-decoration: none;
    background: var(--sms-panel); border: 1px solid var(--sms-border); color: var(--sms-text) !important;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sms-store-card:hover, .sms-store-card:focus-visible { border-color: var(--sms-accent); }
.sms-store-card-top { position: relative; display: block; }
.sms-store-card-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.sms-store-card-cover.is-banner { object-fit: cover; }
/* The shop's name sits on its banner, over a soft shade so it reads on any picture. */
.sms-store-card-top::after {
    content: ""; position: absolute; inset: 40% 0 0 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}
.sms-store-card-name {
    position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.6rem; z-index: 1;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; line-height: 1.15; color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.sms-store-card-text { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0.9rem 0.9rem; flex: 1; }
.sms-store-card-tagline { color: var(--sms-text); }
.sms-store-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; }
.sms-store-card-count { font-size: 0.85rem; font-weight: 600; color: var(--sms-muted); }
.sms-store-card-cta { pointer-events: none; padding: 0.35rem 0.9rem; font-size: 0.95rem; }
.sms-store-card:hover .sms-store-card-cta, .sms-store-card:focus-visible .sms-store-card-cta { filter: brightness(1.1); }

/* The order page's small banner, linking back to the store. */
.sms-hero-small { min-height: 7rem; text-decoration: none; color: var(--sms-text) !important; }
.sms-hero-small.has-banner { min-height: clamp(7rem, 16vw, 10rem); }
.sms-hero-small .sms-hero-text { display: flex; flex-direction: column; }
.sms-hero-small .sms-hero-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.sms-hero-small .sms-hero-tagline { margin: 0; font-size: 1rem; }

/* Buyer-seller messages */
.sms-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.sms-convo textarea { width: 100%; box-sizing: border-box; }
.sms-convo-list { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.sms-msg {
    max-width: 85%;
    border: 1px solid var(--sms-border);
    border-radius: 0.75rem;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    display: flex; flex-direction: column; gap: 0.15rem;
}
.sms-msg.is-mine { align-self: flex-end; border-color: var(--sms-accent); background: rgba(13, 202, 240, 0.12); }
.sms-msg.is-theirs { align-self: flex-start; }
.sms-msg-who { font-size: 0.78rem; font-weight: 600; }
.sms-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.sms-convo-row {
    display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline;
    width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--sms-border);
    color: var(--sms-text); padding: 0.6rem 0.25rem; cursor: pointer;
}
a.sms-convo-row { text-decoration: none; color: var(--sms-text) !important; }
.sms-convo-row:hover, .sms-convo-row:focus-visible { background: rgba(255, 255, 255, 0.05); }
.sms-convo-row.is-unread .sms-convo-subject { font-weight: 700; }
.sms-convo-row.is-unread .sms-convo-subject::before {
    content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sms-accent); margin-right: 0.4rem;
}
.sms-convo-text { min-width: 0; display: flex; flex-direction: column; }
.sms-convo-last { color: var(--sms-muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-convo-when { color: var(--sms-muted); font-size: 0.8rem; white-space: nowrap; }
.sms-ask { scroll-margin-top: 5rem; }

/* Circle sliders with - and + for fine tuning */
.sms-stepper { display: flex; align-items: center; gap: 0.4rem; }
.sms-stepper input[type="range"] { flex: 1; min-width: 0; }
.sms-step {
    flex: none; width: 2rem; height: 2rem; border-radius: 50%;
    border: 1px solid var(--sms-border); background: rgba(255, 255, 255, 0.08); color: var(--sms-text);
    font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.sms-step:hover:not(:disabled), .sms-step:focus-visible { border-color: var(--sms-accent); }
.sms-step:disabled { opacity: 0.4; cursor: default; }
