.sarlisi-fbt {
    --sfb-accent: #1a1a1a;
    --sfb-accent-soft: #f5f5f5;
    --sfb-sale: #c0392b;
    --sfb-border: #e8e8e8;
    --sfb-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    max-width: 100%;
    margin: 24px 0;
    color: var(--sfb-accent);
    line-height: 1.5;
}

.sarlisi-fbt *,
.sarlisi-fbt *::before,
.sarlisi-fbt *::after {
    box-sizing: border-box;
}

.sfb-card {
    border: 1px solid var(--sfb-border);
    border-radius: var(--sfb-radius);
    background: #fff;
    overflow: hidden;
}

.sfb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sfb-border);
    background: var(--sfb-accent-soft);
}

.sfb-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.sfb-badge {
    flex-shrink: 0;
    background: var(--sfb-sale);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.sfb-body {
    padding: 20px;
}

.sfb-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sfb-item {
    width: 100%;
    border: 2px solid var(--sfb-border);
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    cursor: pointer;
}

.sfb-item.is-selected {
    border-color: var(--sfb-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sfb-item-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sfb-check {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    accent-color: var(--sfb-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.sfb-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
    display: block;
    flex-shrink: 0;
}

.sfb-info {
    flex: 1;
    min-width: 0;
}

.sfb-name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.sfb-name a {
    color: inherit;
    text-decoration: none;
}

.sfb-name a:hover {
    text-decoration: underline;
}

.sfb-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.sfb-price-orig {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
}

.sfb-price-sale {
    color: var(--sfb-sale);
    font-size: 16px;
    font-weight: 700;
}

.sfb-variant-wrap {
    margin-top: 10px;
}

.sfb-variant-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.sfb-variant-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--sfb-border);
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.sfb-item-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sfb-border);
}

.sfb-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--sfb-border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.sfb-qty-btn {
    appearance: none;
    border: none;
    background: transparent;
    width: 34px;
    height: 34px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--sfb-accent);
    transition: background 0.15s;
}

.sfb-qty-btn:hover:not(:disabled) {
    background: var(--sfb-accent-soft);
}

.sfb-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sfb-qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.sfb-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--sfb-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sfb-total-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.sfb-total-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sfb-total-orig {
    color: #999;
    text-decoration: line-through;
    font-size: 15px;
}

.sfb-total-sale {
    font-size: 24px;
    font-weight: 800;
}

.sfb-save {
    font-size: 13px;
    color: var(--sfb-sale);
    font-weight: 600;
    margin-top: 4px;
}

.sfb-btn {
    appearance: none;
    border: none;
    background: var(--sfb-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    min-width: 200px;
}

.sfb-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: 0.92;
}

.sfb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sfb-loading-text {
    text-align: center;
    padding: 24px 12px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 640px) {
    .sfb-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .sfb-btn {
        width: 100%;
    }
}