.marumado-self-button { position: fixed; z-index: 2147483000; right: 20px; bottom: 20px; max-width: min(320px, calc(100vw - 32px)); overflow: hidden; border: 0; border-radius: 999px; background: #7b4b2a; color: #fff; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.2); font: inherit; display: inline-flex; align-items: center; gap: 8px; }
.marumado-self-button--compact { padding: 8px 11px; font-size: 12px; }
.marumado-self-button--standard { padding: 12px 16px; }
.marumado-self-button--large { padding: 14px 20px; font-size: 16px; }
.marumado-self-button--circle { padding: 0; border-radius: 50%; justify-content: center; gap: 0; max-width: none; }
.marumado-self-button--circle.marumado-self-button--compact { width: 48px; height: 48px; }
.marumado-self-button--circle.marumado-self-button--standard { width: 64px; height: 64px; }
.marumado-self-button--circle.marumado-self-button--large { width: 80px; height: 80px; }
.marumado-self-button--circle .marumado-self-button-image { width: 100%; height: 100%; border-radius: 50%; }
.marumado-self-button--circle > span { padding: 4px; font-size: 11px; white-space: normal; text-align: center; }
.marumado-self-button--image-only > span { display: none; }
.marumado-self-button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marumado-self-button--circle > span { white-space: normal; text-align: center; }
.marumado-self-button-image { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; }
.marumado-self-overlay { display: none; position: fixed; inset: 0; z-index: 2147482999; pointer-events: none; background: rgba(15, 23, 42, .28); }
.marumado-self-overlay.is-open { display: block; pointer-events: auto; }
.marumado-self-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 64px)); overflow: auto; pointer-events: auto; padding: 0; border: 1px solid rgba(214, 214, 216, .6); border-radius: 28px; background: #fff; color: #1a1a1a; box-shadow: 0 20px 50px rgba(15,23,42,.15); font: 14px/1.45 system-ui, sans-serif; }
.marumado-self-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 18px; border-bottom: 1px solid #e6ebf2; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); }
.marumado-self-header h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.marumado-self-close { border: 1px solid #e6ebf2; background: #f5f7fa; color: #919499; border-radius: 16px; width: 44px; height: 44px; font-size: 24px; line-height: 1; cursor: pointer; }
.marumado-self-filters, .marumado-self-categories { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 16px 24px 0; }
.marumado-self-filter, .marumado-self-category-chip { max-width: 48%; min-height: 28px; padding: 0 10px; border: 1px solid #b5bdc8; border-radius: 999px; background: #fff; color: #1a1a1a; }
.marumado-self-category-chip { cursor: pointer; font-size: 12px; font-weight: 500; }
.marumado-self-category-chip.is-hidden { border-color: #d6d9df; background: #f5f7fa; color: #9aa0aa; text-decoration: line-through; }
.marumado-self-filter:focus-visible, .marumado-self-category-chip:focus-visible { outline: 2px solid #667eea; outline-offset: 2px; }
.marumado-self-status { min-height: 20px; padding: 12px 24px 0; color: #64748b; }
.marumado-self-products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; padding: 16px 24px 24px; }
.marumado-self-card { position: relative; display: flex; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; cursor: pointer; border: 1px solid #b5bdc8; border-radius: 18px; background: #fff; transition: border-color .18s ease, transform .18s ease; }
.marumado-self-card:hover { border-color: var(--marumado-card-accent, #8f98a6); transform: translateY(-1px); }
.marumado-self-card:focus-visible, .marumado-self-button:focus-visible, .marumado-self-close:focus-visible, .marumado-self-filter:focus-visible { outline: 3px solid #1f5f99; outline-offset: 2px; }
.marumado-self-card::before { content: ''; display: block; flex: 0 0 5px; background: var(--marumado-card-accent, #4f7cac); }
.marumado-self-card img, .marumado-self-placeholder { flex: 0 0 auto; width: 96px; height: 96px; margin: 9px 0 9px 9px; object-fit: cover; border-radius: 0; background: #f2eee9; }
.marumado-self-card-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 3px; padding: 8px 10px; }
.marumado-self-card-category { color: var(--marumado-card-accent, #4f7cac); font-size: 11px; line-height: 1.2; }
.marumado-self-card-body strong { overflow: hidden; color: #1a1a1a; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.marumado-self-price { font-weight: 700; }
.marumado-self-card small { overflow: hidden; color: #81736b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.marumado-self-card.box-center { grid-column: 3 / span 2; grid-row: 2 / span 1; align-items: center; justify-content: center; cursor: default; }
.marumado-self-card.box-center::before, .marumado-self-card.box-center .marumado-self-card-body { display: none; }
.marumado-self-card.box-center img, .marumado-self-card.box-center .marumado-self-placeholder { width: 74px; height: 74px; margin: 0; border-radius: 14px; }
.marumado-self-card.box-large-h-1 { grid-column: 1 / span 4; grid-row: 1 / span 1; }
.marumado-self-card.box-large-v-1 { grid-column: 1 / span 2; grid-row: 2 / span 2; flex-direction: column; }
.marumado-self-card.box-large-v-2 { grid-column: 5 / span 2; grid-row: 1 / span 2; flex-direction: column; }
.marumado-self-card.box-large-v-1::before, .marumado-self-card.box-large-v-2::before { flex: 0 0 5px; width: 100%; }
.marumado-self-card.box-large-v-1 img, .marumado-self-card.box-large-v-1 .marumado-self-placeholder, .marumado-self-card.box-large-v-2 img, .marumado-self-card.box-large-v-2 .marumado-self-placeholder { width: calc(100% - 18px); height: 96px; margin: 9px; }
.marumado-self-card.box-large-v-1 .marumado-self-card-body, .marumado-self-card.box-large-v-2 .marumado-self-card-body { justify-content: flex-start; padding-top: 0; }
.marumado-self-card.box-large-h-2 { grid-column: 3 / span 4; grid-row: 3 / span 1; }
.marumado-self-card.box-medium-h { grid-column: span 6; grid-row: span 1; }
@media (max-width: 520px) { .marumado-self-button { right: 12px; bottom: 12px; } .marumado-self-panel { width: calc(100vw - 32px); max-height: calc(100vh - 32px); border-radius: 16px; } .marumado-self-header { align-items: center; padding: 11px 14px; } .marumado-self-header h2 { font-size: 17px; white-space: nowrap; } .marumado-self-close { width: 34px; height: 34px; font-size: 18px; border-radius: 12px; } .marumado-self-filters, .marumado-self-categories { padding-left: 14px; padding-right: 14px; } .marumado-self-status { padding-left: 14px; padding-right: 14px; } .marumado-self-products { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 112px; padding: 12px 14px 14px; } .marumado-self-card.box-center, .marumado-self-card.box-large-h-1, .marumado-self-card.box-large-h-2, .marumado-self-card.box-medium-h { grid-column: 1 / span 2; grid-row: auto; } .marumado-self-card.box-large-v-1, .marumado-self-card.box-large-v-2 { grid-column: span 1; grid-row: span 2; } .marumado-self-card.box-center { min-height: 112px; } }
@media (prefers-reduced-motion: reduce) { .marumado-self-card { transition: none; } }
