/* Bitacora Sales Engine - Scoped Editorial Styles (Kadence-compatible, WCAG 2.2 AA) */
#bse-cmp-banner,
.bse-rec-card,
.bse-editorial-box,
.bse-store-signup,
.bse-signup-form {
    box-sizing: border-box;
    font-family: var(--global-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #1c1b18;
    line-height: 1.55;
}

#bse-cmp-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 460px;
    width: calc(100vw - 40px);
    max-height: 82vh;
    overflow-y: auto;
    background: #faf8f4;
    border: 1px solid #ddd6c8;
    border-radius: 6px;
    padding: 18px 20px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(28, 27, 24, 0.08);
}

#bse-cmp-banner .bse-cmp-title {
    margin: 0 0 6px;
    font-family: var(--global-heading-font-family, Georgia, serif);
    font-size: 16px;
    font-weight: 600;
    color: #1c1b18;
}

#bse-cmp-banner .bse-cmp-desc {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #4a4740;
}

#bse-cmp-banner .bse-cmp-desc a {
    color: #1c1b18;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#bse-cmp-banner .bse-cmp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#bse-cmp-banner button[data-bse-cmp],
.bse-rec-card .bse-btn,
.bse-signup-form .bse-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-shadow: none;
}

#bse-cmp-banner button[data-bse-cmp]:focus-visible,
.bse-rec-card .bse-btn:focus-visible,
.bse-signup-form .bse-btn-submit:focus-visible,
.bse-signup-form input:focus-visible,
#bse-cmp-reopen:focus-visible {
    outline: 2px solid #1f2421;
    outline-offset: 2px;
}

#bse-cmp-banner button[data-bse-cmp="accept"],
#bse-cmp-banner button[data-bse-cmp="save"],
.bse-rec-card .bse-btn,
.bse-signup-form .bse-btn-submit {
    background: #1f2421;
    color: #faf8f4;
    border: 1px solid #1f2421;
}

#bse-cmp-banner button[data-bse-cmp="accept"]:hover,
#bse-cmp-banner button[data-bse-cmp="save"]:hover,
.bse-rec-card .bse-btn:hover,
.bse-signup-form .bse-btn-submit:hover {
    background: #343b37;
    border-color: #343b37;
    color: #faf8f4;
}

#bse-cmp-banner button[data-bse-cmp="reject"] {
    background: #faf8f4;
    color: #1c1b18;
    border: 1px solid #7d7668;
}

#bse-cmp-banner button[data-bse-cmp="reject"]:hover {
    background: #f0ece2;
    border-color: #1c1b18;
}

#bse-cmp-banner button[data-bse-cmp="manage"] {
    background: transparent;
    color: #4a4740;
    border: 1px solid transparent;
    padding: 8px 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#bse-cmp-banner button[data-bse-cmp="manage"]:hover {
    color: #1c1b18;
}

#bse-cmp-prefs {
    background: #f3efe6;
    border: 1px solid #e2ddd2;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #3a3731;
}

#bse-cmp-prefs label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
    cursor: pointer;
}

.bse-cmp-footer-wrap {
    text-align: center;
    padding: 12px 16px;
    font-size: 12.5px;
    background: transparent;
}

#bse-cmp-reopen {
    color: #5c574d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#bse-cmp-reopen:hover {
    color: #1c1b18;
}

.bse-rec-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 22px;
    margin: 32px 0;
    background: #faf8f4;
    border: 1px solid #e2ddd2;
    border-radius: 6px;
}

.bse-rec-card img {
    width: 112px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bse-rec-card .bse-rec-eyebrow {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b665b;
    margin-bottom: 4px;
}

.bse-rec-card .bse-rec-title {
    font-family: var(--global-heading-font-family, Georgia, serif);
    font-size: 18px;
    font-weight: 600;
    color: #1c1b18;
    margin: 0 0 6px;
}

.bse-rec-card .bse-rec-context {
    font-size: 14px;
    color: #4a4740;
    margin: 0 0 8px;
}

.bse-rec-card .bse-rec-price {
    font-size: 15px;
    font-weight: 600;
    color: #1c1b18;
    margin-bottom: 12px;
}

.bse-store-signup-band {
    width: 100%;
    padding: 20px 20px 32px;
    box-sizing: border-box;
}

.bse-store-signup-band .bse-store-signup {
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.bse-invite-floating {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    width: calc(100vw - 48px);
    max-width: 400px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bse-invite-floating .bse-store-signup {
    position: relative;
    margin: 0;
    padding: 20px 20px 18px;
    max-width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    background: #faf8f4;
    border: 1px solid #d5ccb9;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(15, 18, 16, 0.22);
    box-sizing: border-box;
}

.bse-invite-dismissible .bse-store-signup h3 {
    padding-right: 40px;
}

.bse-invite-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1c1b18;
    border: 1px solid #d5ccb9;
    border-radius: 50%;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.bse-invite-close:hover {
    background: #efebe0;
    border-color: #1c1b18;
}

.bse-invite-close:focus-visible {
    outline: 2px solid #1c1b18;
    outline-offset: 2px;
}

.bse-editorial-box,
.bse-store-signup {
    margin: 32px auto;
    padding: 24px;
    background: #faf8f4;
    border: 1px solid #e2ddd2;
    border-radius: 6px;
    max-width: 720px;
    box-sizing: border-box;
}

.bse-editorial-box h3,
.bse-store-signup h3,
#bse-hero-invite .bse-store-signup h3 {
    margin: 0 0 6px;
    font-family: var(--global-heading-font-family, Georgia, serif);
    font-size: 20px;
    font-weight: 600;
    color: #1c1b18 !important;
}

.bse-signup-intro {
    margin: 0 0 14px;
    font-size: 14px;
    color: #4a4740;
}

.bse-signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 480px;
}

.bse-signup-form input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
    color: #1c1b18;
    background: #ffffff;
    border: 1px solid #cfc8b8;
    border-radius: 4px;
}

.bse-signup-form label.bse-chk-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13.5px;
    color: #3a3731;
    cursor: pointer;
}

.bse-signup-form .bse-privacy-note {
    font-size: 12.5px;
    color: #6b665b;
    margin-top: 2px;
}

.bse-signup-form .bse-privacy-note a {
    color: #4a4740;
    text-decoration: underline;
}

.bse-signup-status {
    font-size: 13.5px;
    color: #1c1b18;
    min-height: 18px;
}

.bse-signup-result {
    box-sizing: border-box;
    background: #f5f2ea;
    border: 1px solid #ddd6c8;
    border-radius: 4px;
    padding: 14px;
    color: #1c1b18;
}

.bse-signup-result .bse-res-title {
    display: block;
    font-family: var(--global-heading-font-family, Georgia, serif);
    font-size: 16px;
    margin: 0 0 6px;
    color: #1c1b18;
}

.bse-signup-result .bse-res-body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #3a3731;
}

@media (max-width: 600px) {
    #bse-cmp-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        padding: 16px;
    }

    #bse-cmp-banner .bse-cmp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bse-rec-card {
        padding: 16px;
        gap: 14px;
    }

    .bse-rec-card img {
        width: 88px;
        height: 110px;
    }

    .bse-store-signup-band {
        padding: 16px 12px 24px;
    }

    .bse-editorial-box,
    .bse-store-signup {
        padding: 18px 14px;
        max-width: 100%;
    }

    .bse-invite-dismissible .bse-store-signup h3 {
        padding-right: 36px;
        font-size: 18px;
    }

    .bse-signup-form,
    .bse-signup-form input[type="email"],
    .bse-signup-form .bse-btn-submit {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .bse-invite-floating {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
    }

    .bse-invite-floating .bse-store-signup {
        padding: 12px 12px 10px;
    }

    .bse-invite-floating .bse-store-signup h3 {
        font-size: 15.5px;
        line-height: 1.25;
        padding-right: 36px;
        margin-bottom: 3px;
    }

    .bse-invite-floating .bse-signup-intro {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.28;
    }

    .bse-invite-floating .bse-signup-form {
        gap: 5px;
    }

    .bse-invite-floating .bse-signup-form label[for^="bse-email-"] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .bse-invite-floating .bse-signup-form input[type="email"],
    .bse-invite-floating .bse-signup-form .bse-btn-submit {
        min-height: 36px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .bse-invite-floating .bse-signup-form label.bse-chk-row {
        font-size: 11.5px;
        line-height: 1.22;
    }

    .bse-invite-floating .bse-signup-form .bse-privacy-note {
        font-size: 10.5px;
        margin-top: 0;
    }

    .bse-invite-floating .bse-signup-status:empty {
        display: none;
    }
}


/* Documentary -> Store Related Gear Bridge (up to 3 items) */
.bse-related-gear {
    margin: 28px 0;
    padding: 20px;
    background: #faf8f4;
    border: 1px solid #ddd6c8;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: var(--global-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #1c1b18;
}

.bse-related-gear .bse-rec-eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c574d;
    margin-bottom: 14px;
    font-weight: 600;
}

.bse-related-gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.bse-related-gear-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6e0d4;
    border-radius: 4px;
    padding: 12px;
}

.bse-related-gear-thumb {
    display: block;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 3px;
}

.bse-related-gear-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.bse-related-gear-name {
    margin: 0 0 6px;
    font-family: var(--global-heading-font-family, Georgia, serif);
    font-size: 15px;
    line-height: 1.35;
    color: #1c1b18;
}

.bse-related-gear-price {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #343b37;
}

.bse-related-gear-item .bse-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    background: #1f2421;
    color: #faf8f4;
    border: 1px solid #1f2421;
    border-radius: 4px;
    text-decoration: none;
}

.bse-related-gear-item .bse-btn:hover {
    background: #343b37;
    border-color: #343b37;
}
