.ft-bim-widget-card,
.ft-bim-widget-card * {
    box-sizing: border-box;
}

.ft-bim-widget-card {
    --bim-red: #ed1c24;
    --bim-red-dark: #d40f18;
    --bim-blue: #1d4e9e;
    --bim-ink: #101b2e;
    --bim-muted: #728096;
    --bim-border: #e5e9f0;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 22px 18px 16px;
    border: 1px solid #e4e8ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 27, 46, .08);
    color: var(--bim-ink);
    font-family: inherit;
}

.ft-bim-top-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--bim-red), #ff493b 55%, var(--bim-blue));
}

.ft-bim-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 4px 18px;
}

.ft-bim-heading-wrap {
    min-width: 0;
}

.ft-bim-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(237, 28, 36, .11);
    color: var(--bim-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    line-height: 1;
}

.ft-bim-card-header h2 {
    margin: 10px 0 0 !important;
    color: var(--bim-ink) !important;
    font-size: clamp(22px, 6.4vw, 29px) !important;
    font-weight: 900 !important;
    letter-spacing: -.7px;
    line-height: 1.08 !important;
}

.ft-bim-calendar-icon {
    display: grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 17px;
    background: var(--bim-red);
    box-shadow: 0 12px 22px rgba(237, 28, 36, .28);
}

.ft-bim-calendar-icon svg {
    width: 25px;
    height: 25px;
    fill: #fff;
}

.ft-bim-slider-shell {
    overflow: hidden;
    border: 1px solid var(--bim-border);
    border-radius: 16px;
    background: #f8fafc;
}

.ft-bim-slider {
    position: relative;
    overflow: hidden;
}

.ft-bim-track {
    display: flex;
    transition: transform .38s cubic-bezier(.22,.8,.32,1);
    will-change: transform;
}

.ft-bim-slide {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
}

.ft-bim-image-stage {
    position: relative;
    aspect-ratio: .71;
    overflow: hidden;
    background: #fff;
}

.ft-bim-image-stage img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.ft-bim-fit-contain img { object-fit: contain; }
.ft-bim-fit-cover img { object-fit: cover; }

.ft-bim-enlarge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(15, 27, 46, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 5px 16px rgba(15, 27, 46, .13);
    color: #263244;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 4;
}

.ft-bim-enlarge:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 27, 46, .18);
}

.ft-bim-enlarge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ft-bim-nav {
    position: absolute;
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 18px rgba(20, 30, 48, .19);
    color: #172134;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .2s ease, background .2s ease;
    z-index: 5;
}

.ft-bim-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.ft-bim-nav svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.ft-bim-prev { left: 10px; }
.ft-bim-next { right: 10px; }

.ft-bim-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 15px 5px 8px;
    font-size: 13px;
}

.ft-bim-meta-row strong {
    color: #172134;
    font-size: 14px;
    font-weight: 900;
}

.ft-bim-meta-row > span {
    color: var(--bim-muted);
    text-align: right;
}

.ft-bim-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 8px 7px 18px;
}

.ft-bim-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d7dce4;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.ft-bim-dot.is-active {
    width: 26px;
    background: var(--bim-red);
}

.ft-bim-accordion {
    overflow: hidden;
    margin: 2px 2px 12px;
    border: 1px solid var(--bim-border);
    border-radius: 17px;
    background: #fff;
}

.ft-bim-accordion-title {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #edf0f4;
    color: #10203a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 800;
}

.ft-bim-accordion-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: #fff;
    color: #10203a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.ft-bim-accordion-toggle svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform .25s ease;
}

.ft-bim-accordion.is-open .ft-bim-accordion-toggle svg {
    transform: rotate(180deg);
}

.ft-bim-accordion-content {
    max-height: 330px;
    overflow: auto;
    padding: 0 14px 15px;
    border-top: 1px solid #edf0f4;
    background: #fbfcfe;
}

.ft-bim-product-list {
    display: grid;
    gap: 8px;
    margin: 13px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ft-bim-product-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
    padding: 9px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #edf0f4;
    color: #243147;
    font-size: 12px;
    line-height: 1.4;
}

.ft-bim-product-list li::before { display: none !important; }

.ft-bim-product-list strong {
    flex: 0 0 auto;
    color: var(--bim-red-dark);
    font-weight: 900;
    white-space: nowrap;
}

.ft-bim-no-products {
    margin: 13px 0 0;
    color: var(--bim-muted);
    font-size: 12px;
}

.ft-bim-info-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 10px 2px 12px;
    padding: 14px;
    border: 1px solid #d8e5f6;
    border-radius: 16px;
    background: #f4f8fd;
}

.ft-bim-info-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(29, 78, 158, .1);
    color: #4f8eef;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 900;
}

.ft-bim-info-box p {
    margin: 1px 0 0 !important;
    color: #51627a;
    font-size: 12px;
    line-height: 1.55;
}

.ft-bim-cta {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 2px 0;
    padding: 14px 18px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--bim-red), #ff2c20);
    box-shadow: 0 12px 24px rgba(237, 28, 36, .25);
    color: #fff !important;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ft-bim-cta:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(237, 28, 36, .31);
}

.ft-bim-cta svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ft-bim-adline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 11px;
    color: #9aa4b3;
    font-size: 11px;
}

.ft-bim-adline b {
    color: #c8ced7;
    font-weight: 400;
}

.ft-bim-empty {
    display: grid;
    gap: 6px;
    margin: 10px 2px 15px;
    padding: 20px;
    border: 1px dashed #ccd3dd;
    border-radius: 15px;
    background: #f8fafc;
    color: #51627a;
    font-size: 12px;
    text-align: center;
}

.ft-bim-empty strong {
    color: #1e2d45;
    font-size: 14px;
}

.ft-bim-lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    background: rgba(8, 14, 25, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
    z-index: 999999;
}

.ft-bim-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.ft-bim-lightbox img {
    display: block;
    max-width: min(96vw, 900px);
    max-height: 91vh;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,.45);
    object-fit: contain;
}

.ft-bim-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    color: #fff;
    cursor: pointer;
    font-size: 29px;
    line-height: 1;
}

body.ft-bim-lightbox-open {
    overflow: hidden;
}

@media (max-width: 420px) {
    .ft-bim-widget-card {
        padding: 19px 14px 14px;
        border-radius: 19px;
    }

    .ft-bim-card-header {
        margin-inline: 3px;
    }

    .ft-bim-calendar-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .ft-bim-nav {
        width: 39px;
        height: 39px;
    }

    .ft-bim-prev { left: 7px; }
    .ft-bim-next { right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .ft-bim-track,
    .ft-bim-dot,
    .ft-bim-nav,
    .ft-bim-enlarge,
    .ft-bim-cta,
    .ft-bim-accordion-toggle svg,
    .ft-bim-lightbox {
        transition: none !important;
    }
}
