/**
 * BoostBot Templates CSS
 *
 * Styling for all pre-built AI response templates.
 * Uses CSS variables for easy theme customization.
 *
 * @package BoostBot
 * @since 1.1.0
 */

/* ==========================================================================
   CSS Variables - Global Design Tokens
   These inherit from --boostbot-* variables set in the widget
   ========================================================================== */

:root {
    /* Color Tokens - derived from appearance settings */
    --bb-template-bg: var(--boostbot-message-bg, #ffffff);
    --bb-template-text: var(--boostbot-message-color, #1a1a1a);
    --bb-template-text-muted: color-mix(in srgb, var(--bb-template-text) 60%, transparent);
    --bb-template-border: rgba(0, 0, 0, 0.08);
    
    /* Primary colors from widget theme */
    --bb-primary: var(--boostbot-primary-color, #6366f1);
    --bb-primary-hover: color-mix(in srgb, var(--bb-primary) 85%, black);
    --bb-primary-light: color-mix(in srgb, var(--bb-primary) 15%, white);
    
    /* Status colors */
    --bb-success: #10b981;
    --bb-success-light: #d1fae5;
    --bb-warning: #f59e0b;
    --bb-warning-light: #fef3c7;
    --bb-error: #ef4444;
    --bb-error-light: #fee2e2;
    --bb-info: #3b82f6;
    --bb-info-light: #dbeafe;
    
    /* WhatsApp brand color */
    --bb-whatsapp: #25d366;
    --bb-whatsapp-hover: #128c7e;
    
    /* Spacing */
    --bb-space-xs: 4px;
    --bb-space-sm: 8px;
    --bb-space-md: 12px;
    --bb-space-lg: 16px;
    --bb-space-xl: 24px;
    
    /* Typography */
    --bb-font-size-xs: 11px;
    --bb-font-size-sm: 13px;
    --bb-font-size-base: 14px;
    --bb-font-size-lg: 16px;
    --bb-font-size-xl: 20px;
    
    /* Border radius */
    --bb-radius-sm: 6px;
    --bb-radius-md: 10px;
    --bb-radius-lg: 14px;
    --bb-radius-full: 50%;
    
    /* Shadows */
    --bb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --bb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --bb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    
    /* Animation */
    --bb-transition: 150ms ease;
    --bb-transition-slow: 300ms ease;
}

/* ==========================================================================
   Base Template Styles
   ========================================================================== */

.bb-template {
    background: var(--bb-template-bg);
    color: var(--bb-template-text);
    font-family: inherit;
    font-size: var(--bb-font-size-base);
    line-height: 1.5;
    border-radius: var(--bb-radius-md);
    border: 1px solid var(--bb-template-border);
    margin: var(--bb-space-md) 0;
    overflow: hidden;
    box-shadow: var(--bb-shadow-sm);
}

.bb-template * {
    box-sizing: border-box;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bb-space-xs);
    padding: var(--bb-space-sm) var(--bb-space-md);
    font-size: var(--bb-font-size-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--bb-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--bb-transition);
    white-space: nowrap;
}

.bb-btn:focus {
    outline: 2px solid var(--bb-primary);
    outline-offset: 2px;
}

/* Primary Button */
.bb-btn-primary {
    background: var(--bb-primary);
    color: #ffffff;
    border-color: var(--bb-primary);
}

.bb-btn-primary:hover {
    background: var(--bb-primary-hover);
    border-color: var(--bb-primary-hover);
}

/* Outline Button */
.bb-btn-outline {
    background: transparent;
    color: var(--bb-primary);
    border-color: var(--bb-primary);
}

.bb-btn-outline:hover {
    background: var(--bb-primary-light);
}

/* Success Button */
.bb-btn-success {
    background: var(--bb-success);
    color: #ffffff;
    border-color: var(--bb-success);
}

.bb-btn-success:hover {
    background: #059669;
}

/* Warning Button */
.bb-btn-warning {
    background: var(--bb-warning);
    color: #ffffff;
    border-color: var(--bb-warning);
}

/* WhatsApp Button */
.bb-btn-whatsapp {
    background: var(--bb-whatsapp);
    color: #ffffff;
    border-color: var(--bb-whatsapp);
}

.bb-btn-whatsapp:hover {
    background: var(--bb-whatsapp-hover);
    border-color: var(--bb-whatsapp-hover);
}

/* Upgrade Button */
.bb-btn-upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
}

.bb-btn-upgrade:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Button Sizes */
.bb-btn-small {
    padding: var(--bb-space-xs) var(--bb-space-sm);
    font-size: var(--bb-font-size-xs);
}

.bb-btn-large {
    padding: var(--bb-space-md) var(--bb-space-lg);
    font-size: var(--bb-font-size-lg);
}

.bb-btn-full {
    width: 100%;
}

/* ==========================================================================
   Contact Card
   ========================================================================== */

.bb-contact-card {
    padding: var(--bb-space-lg);
}

.bb-contact-header {
    display: flex;
    align-items: center;
    gap: var(--bb-space-md);
    margin-bottom: var(--bb-space-md);
}

.bb-contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--bb-radius-full);
    object-fit: cover;
    border: 2px solid var(--bb-template-border);
}

.bb-contact-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--bb-radius-full);
    background: var(--bb-primary-light);
    color: var(--bb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-contact-info {
    flex: 1;
}

.bb-contact-name {
    margin: 0 0 var(--bb-space-xs);
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-contact-role,
.bb-contact-dept {
    display: block;
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
}

.bb-contact-body {
    display: flex;
    flex-direction: column;
    gap: var(--bb-space-sm);
    margin-bottom: var(--bb-space-md);
}

.bb-contact-field {
    display: flex;
    align-items: center;
    gap: var(--bb-space-sm);
    color: inherit;
    text-decoration: none;
    font-size: var(--bb-font-size-sm);
}

a.bb-contact-field:hover {
    color: var(--bb-primary);
}

.bb-field-icon {
    font-size: 16px;
}

.bb-contact-actions {
    display: flex;
    gap: var(--bb-space-sm);
    padding-top: var(--bb-space-md);
    border-top: 1px solid var(--bb-template-border);
}

.bb-contact-actions .bb-btn {
    flex: 1;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.bb-product-card {
    display: flex;
    flex-direction: column;
}

.bb-product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.bb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-product-badge {
    position: absolute;
    top: var(--bb-space-sm);
    right: var(--bb-space-sm);
    padding: var(--bb-space-xs) var(--bb-space-sm);
    border-radius: var(--bb-radius-sm);
    font-size: var(--bb-font-size-xs);
    font-weight: 600;
}

.bb-badge-sale {
    background: var(--bb-error);
    color: #ffffff;
}

.bb-product-content {
    padding: var(--bb-space-md);
}

.bb-product-name {
    margin: 0 0 var(--bb-space-xs);
    font-size: var(--bb-font-size-base);
    font-weight: 600;
}

.bb-product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: var(--bb-space-sm);
}

.bb-star {
    color: #d1d5db;
    font-size: 12px;
}

.bb-star-filled {
    color: #fbbf24;
}

.bb-rating-text {
    font-size: var(--bb-font-size-xs);
    color: var(--bb-template-text-muted);
    margin-right: var(--bb-space-xs);
}

.bb-product-desc {
    margin: 0 0 var(--bb-space-sm);
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
}

.bb-product-price {
    display: flex;
    align-items: baseline;
    gap: var(--bb-space-sm);
}

.bb-price-current {
    font-size: var(--bb-font-size-xl);
    font-weight: 700;
    color: var(--bb-primary);
}

.bb-price-original {
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
    text-decoration: line-through;
}

.bb-stock-badge {
    display: inline-block;
    margin-top: var(--bb-space-sm);
    padding: var(--bb-space-xs) var(--bb-space-sm);
    border-radius: var(--bb-radius-sm);
    font-size: var(--bb-font-size-xs);
}

.bb-out-of-stock {
    background: var(--bb-error-light);
    color: var(--bb-error);
}

.bb-product-actions {
    display: flex;
    gap: var(--bb-space-sm);
    padding: var(--bb-space-md);
    padding-top: 0;
}

.bb-product-actions .bb-btn {
    flex: 1;
}

/* ==========================================================================
   Coupon Card
   ========================================================================== */

.bb-coupon-card {
    background: linear-gradient(135deg, var(--bb-primary-light) 0%, var(--bb-template-bg) 100%);
    border: 2px dashed var(--bb-primary);
}

.bb-coupon-header {
    display: flex;
    align-items: center;
    gap: var(--bb-space-sm);
    padding: var(--bb-space-md);
    background: var(--bb-primary);
    color: #ffffff;
}

.bb-coupon-icon {
    font-size: 24px;
}

.bb-coupon-title {
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-coupon-body {
    padding: var(--bb-space-lg);
    text-align: center;
}

.bb-coupon-discount {
    font-size: var(--bb-font-size-xl);
    font-weight: 700;
    color: var(--bb-primary);
    margin-bottom: var(--bb-space-sm);
}

.bb-coupon-desc {
    margin: 0 0 var(--bb-space-md);
    color: var(--bb-template-text-muted);
}

.bb-coupon-code-wrapper {
    display: inline-flex;
    align-items: center;
    gap: var(--bb-space-sm);
    background: var(--bb-template-bg);
    border: 1px solid var(--bb-template-border);
    border-radius: var(--bb-radius-sm);
    padding: var(--bb-space-sm) var(--bb-space-md);
}

.bb-coupon-code {
    font-family: monospace;
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
    letter-spacing: 1px;
}

.bb-coupon-copy {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    transition: transform var(--bb-transition);
}

.bb-coupon-copy:hover {
    transform: scale(1.1);
}

.bb-coupon-expires {
    margin: var(--bb-space-md) 0 0;
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
}

/* ==========================================================================
   Service Card
   ========================================================================== */

.bb-service-card {
    padding: var(--bb-space-lg);
    text-align: center;
}

.bb-service-icon {
    font-size: 40px;
    margin-bottom: var(--bb-space-md);
}

.bb-service-title {
    margin: 0 0 var(--bb-space-sm);
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-service-desc {
    margin: 0 0 var(--bb-space-md);
    color: var(--bb-template-text-muted);
}

.bb-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--bb-space-md);
    text-align: right;
}

.bb-feature-item {
    display: flex;
    align-items: center;
    gap: var(--bb-space-sm);
    padding: var(--bb-space-xs) 0;
    font-size: var(--bb-font-size-sm);
}

.bb-feature-check {
    color: var(--bb-success);
    font-weight: bold;
}

.bb-service-price {
    margin-bottom: var(--bb-space-md);
}

.bb-price-value {
    font-size: var(--bb-font-size-xl);
    font-weight: 700;
    color: var(--bb-primary);
}

.bb-price-suffix {
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
}

.bb-service-actions {
    display: flex;
    gap: var(--bb-space-sm);
    justify-content: center;
}

/* ==========================================================================
   FAQ Card
   ========================================================================== */

.bb-faq-card {
    padding: var(--bb-space-lg);
}

.bb-faq-question {
    display: flex;
    align-items: flex-start;
    gap: var(--bb-space-sm);
    font-weight: 600;
    margin-bottom: var(--bb-space-md);
}

.bb-faq-icon {
    font-size: 18px;
}

.bb-faq-q-text {
    flex: 1;
}

.bb-faq-answer {
    padding-right: var(--bb-space-xl);
    color: var(--bb-template-text-muted);
}

.bb-faq-answer p {
    margin: 0 0 var(--bb-space-sm);
}

.bb-faq-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bb-space-sm);
    margin-top: var(--bb-space-md);
    padding-top: var(--bb-space-md);
    border-top: 1px solid var(--bb-template-border);
}

.bb-links-label {
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
}

.bb-faq-link {
    font-size: var(--bb-font-size-sm);
    color: var(--bb-primary);
    text-decoration: none;
}

.bb-faq-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Pricing Card
   ========================================================================== */

.bb-pricing-card {
    padding: var(--bb-space-lg);
    text-align: center;
    position: relative;
}

.bb-pricing-highlighted {
    border: 2px solid var(--bb-primary);
    box-shadow: var(--bb-shadow-lg);
}

.bb-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bb-primary);
    color: #ffffff;
    padding: var(--bb-space-xs) var(--bb-space-md);
    border-radius: var(--bb-radius-full);
    font-size: var(--bb-font-size-xs);
    font-weight: 600;
}

.bb-pricing-header {
    margin-bottom: var(--bb-space-md);
}

.bb-pricing-name {
    margin: 0;
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-pricing-subtitle {
    margin: var(--bb-space-xs) 0 0;
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
}

.bb-pricing-price {
    margin-bottom: var(--bb-space-lg);
    padding: var(--bb-space-md);
    background: var(--bb-primary-light);
    border-radius: var(--bb-radius-sm);
}

.bb-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--bb-space-lg);
    text-align: right;
}

.bb-pricing-features .bb-feature-item {
    padding: var(--bb-space-sm) 0;
    border-bottom: 1px solid var(--bb-template-border);
}

.bb-pricing-features .bb-feature-item:last-child {
    border-bottom: none;
}

.bb-feature-excluded {
    color: var(--bb-template-text-muted);
    text-decoration: line-through;
}

.bb-feature-excluded .bb-feature-icon {
    color: var(--bb-error);
}

.bb-pricing-cta {
    width: 100%;
}

/* ==========================================================================
   Product Mini
   ========================================================================== */

.bb-product-mini {
    display: flex;
    align-items: center;
    gap: var(--bb-space-md);
    padding: var(--bb-space-sm);
    position: relative;
}

.bb-mini-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--bb-radius-sm);
    overflow: hidden;
    background: #f5f5f5;
}

.bb-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-mini-info {
    flex: 1;
    min-width: 0;
}

.bb-mini-name {
    display: block;
    font-size: var(--bb-font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-mini-price {
    display: flex;
    align-items: baseline;
    gap: var(--bb-space-xs);
}

.bb-mini-price .bb-price-current {
    font-size: var(--bb-font-size-base);
}

.bb-mini-price .bb-price-original {
    font-size: var(--bb-font-size-xs);
}

.bb-mini-rating {
    font-size: var(--bb-font-size-xs);
    color: var(--bb-template-text-muted);
}

.bb-mini-link {
    position: absolute;
    inset: 0;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */

.bb-products-grid {
    padding: var(--bb-space-md);
}

.bb-grid-title {
    margin: 0 0 var(--bb-space-md);
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-grid-items {
    display: grid;
    gap: var(--bb-space-sm);
}

.bb-grid-cols-2 .bb-grid-items {
    grid-template-columns: repeat(2, 1fr);
}

.bb-grid-cols-3 .bb-grid-items {
    grid-template-columns: repeat(3, 1fr);
}

.bb-grid-cols-4 .bb-grid-items {
    grid-template-columns: repeat(4, 1fr);
}

.bb-grid-empty {
    text-align: center;
    color: var(--bb-template-text-muted);
    padding: var(--bb-space-lg);
}

/* Responsive grid */
@media (max-width: 480px) {
    .bb-grid-cols-3 .bb-grid-items,
    .bb-grid-cols-4 .bb-grid-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Bundle Card
   ========================================================================== */

.bb-bundle-card {
    border: 2px solid var(--bb-success);
    background: linear-gradient(135deg, var(--bb-success-light) 0%, var(--bb-template-bg) 50%);
}

.bb-bundle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--bb-space-md);
    background: var(--bb-success);
    color: #ffffff;
    flex-wrap: wrap;
    gap: var(--bb-space-sm);
}

.bb-bundle-title {
    margin: 0;
    font-size: var(--bb-font-size-base);
    font-weight: 600;
}

.bb-bundle-savings-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--bb-space-xs) var(--bb-space-sm);
    border-radius: var(--bb-radius-full);
    font-size: var(--bb-font-size-sm);
    font-weight: 600;
}

.bb-bundle-products {
    padding: var(--bb-space-md);
    display: grid;
    gap: var(--bb-space-sm);
}

.bb-bundle-products .bb-product-mini {
    background: var(--bb-template-bg);
    border: 1px solid var(--bb-template-border);
    border-radius: var(--bb-radius-sm);
}

.bb-bundle-footer {
    padding: var(--bb-space-md);
    border-top: 1px solid var(--bb-template-border);
    background: var(--bb-template-bg);
}

.bb-bundle-pricing {
    display: flex;
    align-items: baseline;
    gap: var(--bb-space-sm);
    justify-content: center;
    margin-bottom: var(--bb-space-md);
}

.bb-bundle-original {
    font-size: var(--bb-font-size-lg);
    color: var(--bb-template-text-muted);
    text-decoration: line-through;
}

.bb-bundle-total {
    font-size: var(--bb-font-size-xl);
    font-weight: 700;
    color: var(--bb-success);
}

.bb-bundle-coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bb-space-sm);
    margin-bottom: var(--bb-space-md);
    font-size: var(--bb-font-size-sm);
}

.bb-bundle-actions {
    display: flex;
    gap: var(--bb-space-sm);
}

.bb-bundle-actions .bb-btn {
    flex: 1;
}

/* ==========================================================================
   Department Card
   ========================================================================== */

.bb-department-card {
    padding: var(--bb-space-lg);
}

.bb-dept-header {
    display: flex;
    align-items: center;
    gap: var(--bb-space-sm);
    margin-bottom: var(--bb-space-md);
}

.bb-dept-icon {
    font-size: 28px;
}

.bb-dept-name {
    margin: 0;
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-dept-contact {
    display: flex;
    flex-direction: column;
    gap: var(--bb-space-sm);
    margin-bottom: var(--bb-space-md);
}

.bb-dept-field {
    display: flex;
    align-items: center;
    gap: var(--bb-space-sm);
    color: inherit;
    text-decoration: none;
    font-size: var(--bb-font-size-sm);
}

a.bb-dept-field:hover {
    color: var(--bb-primary);
}

.bb-dept-team {
    padding-top: var(--bb-space-md);
    border-top: 1px solid var(--bb-template-border);
}

.bb-team-title {
    margin: 0 0 var(--bb-space-md);
    font-size: var(--bb-font-size-sm);
    font-weight: 600;
    color: var(--bb-template-text-muted);
}

.bb-team-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bb-space-md);
}

.bb-team-member {
    display: flex;
    align-items: center;
    gap: var(--bb-space-sm);
}

.bb-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--bb-radius-full);
    background: var(--bb-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--bb-font-size-sm);
    color: var(--bb-primary);
    font-weight: 600;
    overflow: hidden;
}

.bb-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-member-info {
    display: flex;
    flex-direction: column;
}

.bb-member-name {
    font-size: var(--bb-font-size-sm);
    font-weight: 500;
}

.bb-member-role {
    font-size: var(--bb-font-size-xs);
    color: var(--bb-template-text-muted);
}

/* ==========================================================================
   Video Embed
   ========================================================================== */

.bb-video-embed {
    padding: var(--bb-space-md);
}

.bb-video-title {
    margin: 0 0 var(--bb-space-md);
    font-size: var(--bb-font-size-base);
    font-weight: 600;
}

.bb-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--bb-radius-sm);
    background: #000;
}

.bb-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bb-video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    margin: 0;
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */

.bb-whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: var(--bb-space-sm);
    padding: var(--bb-space-md) var(--bb-space-lg);
    font-size: var(--bb-font-size-base);
}

.bb-whatsapp-icon {
    display: flex;
    align-items: center;
}

.bb-whatsapp-icon svg {
    fill: currentColor;
}

/* ==========================================================================
   Upgrade Required
   ========================================================================== */

.bb-upgrade-required {
    text-align: center;
    padding: var(--bb-space-xl);
    background: linear-gradient(135deg, var(--bb-warning-light) 0%, var(--bb-template-bg) 100%);
    border: 2px dashed var(--bb-warning);
}

.bb-upgrade-icon {
    font-size: 48px;
    margin-bottom: var(--bb-space-md);
}

.bb-upgrade-title {
    margin: 0 0 var(--bb-space-sm);
    font-size: var(--bb-font-size-lg);
    font-weight: 600;
}

.bb-upgrade-text {
    margin: 0 0 var(--bb-space-sm);
    color: var(--bb-template-text-muted);
}

.bb-upgrade-addon {
    margin: 0 0 var(--bb-space-md);
    font-size: var(--bb-font-size-sm);
    color: var(--bb-template-text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes bb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bb-loading {
    animation: bb-pulse 1.5s ease-in-out infinite;
}

@keyframes bb-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bb-template {
    animation: bb-slide-in 0.3s ease-out;
}





