/* (C)2026 Badger Commerce Limited, a subsidiary of Kedos Consulting Limited */

/* bdgr-scene runtime base styles. Scene authors can override most of this via the spec's `style` blocks. */

.bdgr-scene {
    position: relative;
    overflow: hidden;
}

.bdgr-scene-spec {
    display: none;
}

.bdgr-scene-el {
    box-sizing: border-box;
}

.bdgr-scene-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: filter var(--transition-base, 200ms ease), box-shadow var(--transition-base, 200ms ease);
}
.bdgr-scene-link:hover {
    filter: brightness(1.05);
    box-shadow: var(--shadow-lg, 0 10px 20px rgba(0, 0, 0, 0.12));
}
.bdgr-scene-link:focus-visible {
    outline: 2px solid var(--color-primary, #4F46E5);
    outline-offset: 2px;
    border-radius: var(--radius-md, 8px);
}

.bdgr-scene-text {
    white-space: pre-wrap;
    line-height: var(--line-height-tight, 1.2);
}

.bdgr-scene-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.bdgr-scene-shape {
    background: var(--color-primary, #4F46E5);
    border-radius: var(--radius-md, 8px);
}
.bdgr-scene-shape--circle {
    border-radius: var(--radius-full, 9999px);
}

.bdgr-scene-group {
    position: relative;
}

/* Mock browser frame — Stripe-style demo chrome */
.bdgr-scene-mock-browser {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.12));
    overflow: hidden;
    width: 100%;
    height: 100%;
}
.bdgr-scene-mock-browser__bar {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: var(--color-gray-100, #f3f4f6);
    border-bottom: 1px solid var(--color-gray-200, #e5e7eb);
    flex-shrink: 0;
}
.bdgr-scene-mock-browser__dots {
    display: flex;
    gap: 6px;
}
.bdgr-scene-mock-browser__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.bdgr-scene-mock-browser__dot--red    { background: #ff5f57; }
.bdgr-scene-mock-browser__dot--amber  { background: #febc2e; }
.bdgr-scene-mock-browser__dot--green  { background: #28c840; }
.bdgr-scene-mock-browser__url {
    flex: 1;
    padding: 4px 10px;
    background: #fff;
    border-radius: var(--radius-sm, 4px);
    font-size: var(--font-size-sm, 14px);
    color: var(--color-gray-700, #374151);
    font-family: var(--font-family-mono, ui-monospace, monospace);
    text-align: center;
}
.bdgr-scene-mock-browser__body {
    position: relative;
    flex: 1;
    padding: var(--space-4, 16px);
    background: var(--color-gray-50, #f9fafb);
}

/* Product card — compact presentation for scene use */
.bdgr-scene-product-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 8px);
    background: #fff;
    border: 1px solid var(--color-gray-200, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.07));
    padding: var(--space-3, 12px);
    overflow: hidden;
}
.bdgr-scene-product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm, 4px);
}
.bdgr-scene-product-card__title {
    margin: 0;
    font-size: var(--font-size-sm, 14px);
    font-weight: var(--font-weight-medium, 500);
    color: var(--color-gray-900, #111827);
    line-height: var(--line-height-tight, 1.2);
}
.bdgr-scene-product-card__price {
    margin: 0;
    font-size: var(--font-size-sm, 14px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-primary, #4F46E5);
}

@media (prefers-reduced-motion: reduce) {
    .bdgr-scene * {
        animation: none !important;
        transition: none !important;
    }
}
