.adaptive-card-container {
    width: 100%;
    overflow: hidden;
}

.adaptive-card {
    width: 100%;
}

.adaptive-card-error {
    color: #d9534f;
    padding: 10px;
    border: 1px solid #d9534f;
    border-radius: 4px;
    background-color: #f9f2f2;
    margin: 5px 0;
}

.adaptive-card-empty {
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin: 5px 0;
    color: #999;
    font-style: italic;
}

button.ac-pushButton > div {
    white-space: wrap !important;
}

/* AdaptiveCard Element Styles */
.ac-adaptiveCard {
    border-radius: 12px;
}

/* Button Element Styles */
.ac-pushButton {
    display: inline-block;
    padding: 0.5em;
    font-size: 1em;
    font-weight: 400;
    color: #0071e3;
    background-color: #f7f7f7;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

/* Org Card Styles */
[id^="orgHeader"] .ac-container .ac-textBlock {
    margin-top: auto;
    margin-bottom: auto;
}

[id^="orgImage"] .ac-image {
    object-fit: cover;
}

[id^="orgNotableFeatures"].ac-container,
[id^="orgContact"].ac-container {
    flex-flow: wrap !important;
    row-gap: 0.5em;
}

/* Casey.CardCarousel Styles */
/* Wrap buttons instead of squeezing them (ActionSet defaults to nowrap). Carousel pages only. */
.ac-carousel-page-container .ac-actionSet {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

/* Full-width outlined buttons (Figma). width: 100% too, because flex-basis
   alone sizes unevenly here. A long title wraps and grows past 29px. */
.ac-carousel-page-container .ac-actionSet > .ac-pushButton {
    flex: 1 1 100%;
    width: 100%;
    box-sizing: border-box;
    min-height: 29px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid var(--orion-50);
    border-radius: 8px;
    color: var(--midnight-50);
    font-size: 16px;
    line-height: 20px;
}

/* Hide the SDK's width-only spacer divs between buttons; `gap` spaces them. */
.ac-carousel-page-container .ac-actionSet > div:empty {
    display: none;
}

/* Let long titles wrap. The SDK sets nowrap/ellipsis inline, so !important is needed. */
.ac-carousel-page-container .ac-actionSet button.ac-pushButton > div {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Peek mode: keep the partly visible next slide shown. Swiper adds
   swiper-slide-visible only with watchSlidesProgress, which peek turns on. */
.ac-carousel-page.swiper-slide-visible {
    visibility: visible;
}

/* Badge Custom Element Styles */
.ac-badge {
    display: inline-block;
    padding: 0.75em;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: baseline;
    border-radius: 2rem;
    margin: 0.125rem;
    max-width: 100%;
}

/* Badge Variants */
.ac-badge-primary {
    color: #0071E3;
    background-color: #EFF7FF;
}

.ac-badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.ac-badge-success {
    color: #fff;
    background-color: #28a745;
}

.ac-badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.ac-badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.ac-badge-info {
    color: #fff;
    background-color: #17a2b8;
}

.ac-badge-light {
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.ac-badge-dark {
    color: #fff;
    background-color: #343a40;
}

/* Badge Sizes */
.ac-badge-small {
    font-size: 0.65em;
    padding: 0.125em 0.375em;
}

.ac-badge-medium {
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

.ac-badge-large {
    font-size: 0.875em;
    padding: 0.375em 0.75em;
}