/* =============================================================================
   Shepp Basket Manager — Frontend
   ============================================================================= */

.sbm-grid-container {
    margin: 2em 0;
    --sbm-accent: #4a7c2a;
    --sbm-cols: 3;
}

.sbm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5em;
}

.sbm-chip {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 7px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    color: #333;
    font-weight: 500;
    line-height: 1;
}
.sbm-chip:hover { background: #f5f7f5; border-color: #4a7c2a; }
.sbm-chip.is-active { background: #4a7c2a; border-color: #4a7c2a; color: #fff; }
.sbm-chip__count {
    margin-left: 6px;
    opacity: 0.75;
    font-weight: 600;
    font-size: 12px;
}

.sbm-grid {
    display: grid;
    grid-template-columns: repeat(var(--sbm-cols, 3), 1fr);
    gap: 22px;
}
.sbm-grid--single { max-width: 380px; }

@media (max-width: 900px) { .sbm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sbm-grid { grid-template-columns: 1fr; } }

.sbm-grid__empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3em;
    color: #777;
    font-style: italic;
}

/* Card */
.sbm-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    --sbm-accent: #4a7c2a;
}
.sbm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: var(--sbm-accent);
}
.sbm-card__img {
    aspect-ratio: 4/3;
    display: block;
    background-color: #f3f3f3;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none !important;
}
.sbm-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5c5c5;
}
.sbm-card__img--placeholder span { font-size: 3em; }

.sbm-card__body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.sbm-card__tag {
    align-self: flex-start;
    background: var(--sbm-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.sbm-card__title {
    margin: 4px 0 0;
    font-size: 1.15em;
    line-height: 1.3;
}
.sbm-card__title a {
    color: inherit;
    text-decoration: none;
}
.sbm-card__title a:hover { color: var(--sbm-accent); }
.sbm-card__tagline {
    color: #555;
    margin: 0;
    font-size: 0.92em;
    line-height: 1.4;
}
.sbm-card__preview {
    color: #666;
    margin: 4px 0;
    font-size: 0.88em;
    line-height: 1.4;
    font-style: italic;
}
.sbm-card__meta {
    color: #555;
    font-size: 0.88em;
    margin: 6px 0 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sbm-card__meta-item strong { color: #1a1a1a; font-weight: 700; }
.sbm-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.sbm-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f6a623;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.sbm-empty-state {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 3em 2em;
    text-align: center;
    color: #777;
}

/* Buttons */
.sbm-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.92em;
    font-weight: 500;
    border: 1px solid transparent;
    line-height: 1.2;
    cursor: pointer;
    background: transparent;
    transition: all 0.15s;
}
.sbm-btn--primary {
    background: var(--sbm-accent, #4a7c2a);
    color: #fff !important;
    border-color: var(--sbm-accent, #4a7c2a);
}
.sbm-btn--primary:hover { filter: brightness(0.92); color: #fff !important; text-decoration: none; }
.sbm-btn--ghost {
    background: transparent;
    color: #333 !important;
    border-color: #ccc;
}
.sbm-btn--ghost:hover { background: #f6f6f6; text-decoration: none; }
.sbm-btn--large { padding: 12px 24px; font-size: 1em; }
.sbm-btn--block { display: block; width: 100%; text-align: center; }
.sbm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.sbm-link {
    background: none;
    border: none;
    color: var(--sbm-accent, #4a7c2a);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
}

/* =============================================================================
   Single basket page
   ============================================================================= */

.sbm-single {
    --sbm-accent: #4a7c2a;
    max-width: 1100px;
    margin: 2em auto;
}

.sbm-single__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
@media (max-width: 800px) {
    .sbm-single__grid { grid-template-columns: 1fr; gap: 24px; }
}

.sbm-single__media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f3;
    aspect-ratio: 4/3;
}
.sbm-single__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sbm-single__placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6em;
    color: #c5c5c5;
}

.sbm-single__info {
    padding-top: 6px;
}
.sbm-single__title {
    margin: 8px 0 4px;
    font-size: 2em;
    line-height: 1.2;
}
.sbm-single__tagline {
    color: #555;
    font-size: 1.1em;
    margin: 0.4em 0 1em;
    font-style: italic;
}
.sbm-single__price-block {
    background: #f9f9f9;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 1em 0;
    border-left: 4px solid var(--sbm-accent);
}
.sbm-single__price {
    font-size: 1.3em;
    color: #1a1a1a;
    display: block;
}
.sbm-single__freq {
    color: #666;
    font-size: 0.95em;
}
.sbm-single__desc {
    color: #444;
    line-height: 1.6;
    margin: 1em 0;
}
.sbm-single__cta-hint {
    color: #777;
    font-size: 0.88em;
    margin-top: 10px;
    text-align: center;
}

/* Contents */
.sbm-single__contents {
    margin-top: 3em;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 24px 28px;
}
.sbm-single__contents h2 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
}

.sbm-produce-group {
    margin-bottom: 1.6em;
}
.sbm-produce-group:last-child { margin-bottom: 0; }
.sbm-produce-group__title {
    margin: 0 0 0.5em;
    font-size: 1em;
    color: var(--sbm-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.sbm-produce-group__title small {
    text-transform: none;
    letter-spacing: 0;
    color: #888;
    font-weight: 500;
    margin-left: 8px;
}
.sbm-produce-group__items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sbm-produce-group__items li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.sbm-produce-group__items li:last-child { border-bottom: none; }
.sbm-produce-item__qty { color: #666; font-weight: 500; }

.sbm-rotation { background: #fffbef; border-radius: 6px; padding: 14px 18px; }
.sbm-rotation .sbm-produce-group__title { color: #c4a04a; }
.sbm-rotation__hint { color: #7a6a2c; margin: 0 0 0.5em; font-size: 0.9em; }

/* FAQ */
.sbm-single__faq {
    margin-top: 3em;
    max-width: 700px;
}
.sbm-single__faq h2 {
    font-size: 1.4em;
    margin-bottom: 1em;
}
.sbm-single__faq details {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fff;
}
.sbm-single__faq summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1a;
    list-style: none;
}
.sbm-single__faq summary::-webkit-details-marker { display: none; }
.sbm-single__faq summary::after {
    content: '+';
    float: right;
    color: #888;
    font-size: 1.4em;
    line-height: 0.8;
}
.sbm-single__faq details[open] summary::after { content: '−'; }
.sbm-single__faq details[open] summary { border-bottom: 1px solid #f0f0f0; }
.sbm-single__faq details p,
.sbm-single__faq .sbm-faq__answer {
    padding: 14px 18px;
    margin: 0;
    color: #555;
    line-height: 1.6;
}
.sbm-single__faq .sbm-faq__answer p {
    padding: 0;
    margin: 0 0 0.7em;
}
.sbm-single__faq .sbm-faq__answer p:last-child { margin-bottom: 0; }

/* Sticky mobile CTA */
.sbm-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 12px 18px;
    z-index: 999;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
.sbm-sticky-cta__price { flex: 1; }
.sbm-sticky-cta .sbm-btn { white-space: nowrap; }

@media (max-width: 700px) {
    .sbm-sticky-cta { display: flex; }
    .sbm-single { padding-bottom: 80px; }
}

/* =============================================================================
   Customize screen
   ============================================================================= */

.sbm-customize {
    --sbm-accent: #4a7c2a;
    max-width: 1200px;
    margin: 2em auto;
}

.sbm-customize__header {
    margin-bottom: 2em;
}
.sbm-customize__back {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 8px;
}
.sbm-customize__back:hover { color: var(--sbm-accent); }
.sbm-customize__header h1 {
    margin: 0 0 8px;
    font-size: 1.7em;
}
.sbm-customize__header p { color: #666; }

.sbm-customize__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .sbm-customize__layout { grid-template-columns: 1fr; }
}

.sbm-customize__main {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 24px;
}

.sbm-loading {
    text-align: center;
    color: #888;
    padding: 3em;
}

/* Sidebar / summary */
.sbm-customize__sidebar { position: relative; }
.sbm-summary {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 20px;
}
.sbm-summary h3 {
    margin: 0 0 1em;
    font-size: 1.1em;
}
.sbm-summary__line {
    margin-bottom: 14px;
}
.sbm-summary__line label {
    display: block;
    font-size: 0.85em;
    color: #555;
    margin-bottom: 4px;
}
.sbm-summary__line select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}
.sbm-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin: 1em 0;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid var(--sbm-accent);
}
.sbm-summary__total strong {
    font-size: 1.2em;
    color: var(--sbm-accent);
}
.sbm-summary__hint {
    font-size: 0.85em;
    color: #777;
    background: #f5f7f5;
    padding: 10px 12px;
    border-radius: 4px;
    margin: 1em 0;
    line-height: 1.5;
}
.sbm-summary__save {
    width: 100%;
    margin-top: 0.5em;
}
.sbm-summary__login-hint {
    font-size: 0.82em;
    color: #888;
    text-align: center;
    margin: 8px 0 0;
}

/* Customize item groups (by produce category) */
.sbm-cz-group {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.4em;
    margin-bottom: 1.4em;
}
.sbm-cz-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sbm-cz-group__title {
    color: var(--sbm-accent);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 0 0 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sbm-cz-group__title small { color: #999; font-weight: normal; text-transform: none; }

.sbm-cz-item {
    display: grid;
    grid-template-columns: 60px 1fr 130px 110px 28px;
    gap: 14px;
    align-items: center;
    padding: 10px 6px;
    border-bottom: 1px solid #f5f5f5;
}
.sbm-cz-item:last-child { border-bottom: none; }
.sbm-cz-item__img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: #f3f3f3 center/cover no-repeat;
}
.sbm-cz-item__name { line-height: 1.3; }
.sbm-cz-item__name strong { display: block; font-weight: 500; }
.sbm-cz-item__name small { color: #777; font-size: 0.85em; }
.sbm-cz-item__name .sbm-cz-swap {
    color: var(--sbm-accent);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    margin-top: 4px;
    display: inline-block;
}
.sbm-cz-item__name .sbm-cz-swap:hover { text-decoration: underline; }

.sbm-cz-item__qty {
    text-align: center;
}
.sbm-cz-item__line {
    text-align: right;
    color: #1a1a1a;
    font-weight: 500;
}
.sbm-cz-item__remove {
    background: none;
    border: none;
    color: #b32d2e;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    line-height: 1;
}
.sbm-cz-item__remove:hover { background: #fde7e7; }

/* Reuse the qty stepper from admin styles but lighter weight */
.sbm-cz-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.sbm-cz-stepper button {
    width: 34px;
    height: 32px;
    border: none;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 18px;
    color: #555;
}
.sbm-cz-stepper button:hover { background: #ececec; color: #000; }
.sbm-cz-stepper input {
    width: 44px;
    height: 32px;
    border: none;
    text-align: center;
    background: #fff;
    -moz-appearance: textfield;
    font-size: 14px;
}
.sbm-cz-stepper input::-webkit-outer-spin-button,
.sbm-cz-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sbm-cz-rotation {
    background: #fffbef;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 1em;
    border-left: 3px solid #c4a04a;
}
.sbm-cz-rotation__title {
    color: #6a5722;
    font-weight: 600;
    margin: 0 0 4px;
}
.sbm-cz-rotation__hint { font-size: 0.85em; color: #7a6a2c; margin-bottom: 0.5em; }

@media (max-width: 600px) {
    .sbm-cz-item {
        grid-template-columns: 48px 1fr 28px;
        gap: 10px;
        grid-template-areas:
            "img name remove"
            "img qty  remove"
            ". line line";
    }
    .sbm-cz-item__img { grid-area: img; width: 48px; height: 48px; }
    .sbm-cz-item__name { grid-area: name; }
    .sbm-cz-item__qty { grid-area: qty; text-align: left; }
    .sbm-cz-item__line { grid-area: line; }
    .sbm-cz-item__remove { grid-area: remove; }
}

/* =============================================================================
   Modal (shared)
   ============================================================================= */

.sbm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sbm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.sbm-modal__panel {
    position: relative;
    background: #fff;
    width: min(560px, 90vw);
    max-height: 86vh;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    --sbm-accent: #4a7c2a;
}
.sbm-modal__panel--narrow { width: min(420px, 90vw); }
.sbm-modal__head {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e3e3e3;
}
.sbm-modal__head h2 { margin: 0; font-size: 1.15em; flex: 1; }
.sbm-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #777;
    width: 36px;
    height: 36px;
    border-radius: 4px;
}
.sbm-modal__close:hover { background: #f0f0f0; color: #000; }
.sbm-modal__body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.sbm-modal__foot {
    padding: 12px 18px;
    border-top: 1px solid #e3e3e3;
    background: #f6f7f7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Swap options */
.sbm-swap-options {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.sbm-swap-option {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.sbm-swap-option:hover {
    border-color: var(--sbm-accent);
    background: #f9fdf6;
}
.sbm-swap-option.is-selected {
    border-color: var(--sbm-accent);
    background: #f0fbf4;
}
.sbm-swap-option__img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #f3f3f3 center/cover no-repeat;
}
.sbm-swap-option__name { line-height: 1.3; }
.sbm-swap-option__price { color: #555; font-size: 0.9em; }

/* Toasts */
.sbm-toasts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sbm-toast {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.92em;
    animation: sbm-toast-in 0.25s ease-out;
}
.sbm-toast--success { background: #1c7a3e; }
.sbm-toast--error { background: #b32d2e; }
.sbm-toast.is-leaving { animation: sbm-toast-out 0.2s ease-in forwards; }

@keyframes sbm-toast-in {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes sbm-toast-out {
    to { transform: translateY(20px); opacity: 0; }
}

/* =============================================================================
   My Account — My Baskets
   ============================================================================= */

.sbm-ma {
    --sbm-accent: #4a7c2a;
}
.sbm-ma-intro {
    color: #555;
    margin-bottom: 1.5em;
}
.sbm-ma-empty {
    text-align: center;
    padding: 3em 2em;
    background: #f9f9f9;
    border-radius: 8px;
}
.sbm-ma-empty h2 { margin-top: 0; }
.sbm-ma-empty p { color: #666; max-width: 480px; margin: 0 auto 1em; }

.sbm-ma-back {
    color: #555;
    text-decoration: none;
    font-size: 0.92em;
}
.sbm-ma-back:hover { color: var(--sbm-accent); }

/* List cards */
.sbm-ma-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sbm-ma-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 18px 22px;
    transition: border-color 0.15s;
}
.sbm-ma-card:hover { border-color: var(--sbm-accent); }
.sbm-ma-card--cancelled { opacity: 0.6; }
.sbm-ma-card--draft { background: #fffbe7; border-color: #e8d68b; }
.sbm-ma-card--paused { background: #f8f8f8; }

.sbm-ma-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.sbm-ma-card__head h3 {
    margin: 0;
    font-size: 1.15em;
}
.sbm-ma-card__head h3 a {
    color: inherit;
    text-decoration: none;
}
.sbm-ma-card__head h3 a:hover { color: var(--sbm-accent); }

.sbm-ma-card__meta {
    color: #555;
    margin: 4px 0;
    font-size: 0.92em;
}
.sbm-ma-card__preview {
    color: #666;
    font-style: italic;
    font-size: 0.92em;
    margin: 6px 0;
}
.sbm-ma-card__next {
    background: #f5f9f1;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 0.95em;
}
.sbm-ma-card__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status pills */
.sbm-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sbm-status--draft     { background: #fff5d6; color: #806800; }
.sbm-status--active    { background: #dff5e3; color: #1c7a3e; }
.sbm-status--paused    { background: #eee; color: #555; }
.sbm-status--cancelled { background: #fce8e8; color: #b32d2e; }

/* Detail view */
.sbm-ma-detail__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}
.sbm-ma-detail__head h2 { line-height: 1.2; }

.sbm-ma-section {
    margin: 1.5em 0 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}
.sbm-ma-section:last-child { border-bottom: none; }
.sbm-ma-section h3 {
    margin: 0 0 0.8em;
    font-size: 1.05em;
}

.sbm-ma-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

/* Pause dropdown */
.sbm-ma-pause { position: relative; }
.sbm-ma-pause summary {
    list-style: none;
    cursor: pointer;
}
.sbm-ma-pause summary::-webkit-details-marker { display: none; }
.sbm-ma-pause summary::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.6;
}
.sbm-ma-pause[open] summary::after { content: ' ▴'; }
.sbm-ma-pause__options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 240px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Calendar strip */
.sbm-calendar-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
}
.sbm-cal-date {
    flex-shrink: 0;
    width: 90px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 8px 8px;
    text-align: center;
    transition: all 0.15s;
}
.sbm-cal-date.is-skipped {
    background: #f5f5f5;
    opacity: 0.6;
    position: relative;
}
.sbm-cal-date.is-skipped::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #b32d2e;
    transform: rotate(-12deg);
}
.sbm-cal-date__dow {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    font-weight: 600;
}
.sbm-cal-date__day {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.1;
    color: var(--sbm-accent);
}
.sbm-cal-date.is-skipped .sbm-cal-date__day { color: #888; }
.sbm-cal-date__mon {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 6px;
}
.sbm-cal-date__toggle {
    display: inline-block;
    font-size: 0.8em;
    color: #2271b1;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f6fc;
}
.sbm-cal-date__toggle:hover { background: #e0ecf6; }
.sbm-cal-date.is-skipped .sbm-cal-date__toggle {
    background: #ffe9e9;
    color: #b32d2e;
}

/* Items by produce group */
.sbm-ma-produce {
    margin-bottom: 1.2em;
}
.sbm-ma-produce__title {
    color: var(--sbm-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85em;
    font-weight: 700;
    margin: 0 0 0.5em;
}
.sbm-ma-produce__title small {
    text-transform: none;
    letter-spacing: 0;
    color: #999;
    font-weight: 500;
    margin-left: 6px;
}
.sbm-ma-produce--rotation {
    background: #fffbef;
    border-radius: 6px;
    padding: 12px 16px;
    border-left: 3px solid #c4a04a;
}
.sbm-ma-produce--rotation .sbm-ma-produce__title { color: #c4a04a; }

.sbm-ma-produce__items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sbm-ma-produce__items li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.sbm-ma-produce__items li:last-child { border-bottom: none; }
.sbm-ma-produce__items .qty {
    color: #666;
    font-weight: 500;
}

.sbm-ma-detail__total {
    background: #f5f9f1;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 1em;
    border-left: 3px solid var(--sbm-accent);
}
