:root {
    --infa-orange: rgb(255, 109, 19);
    --infa-orange-faded: rgba(255, 109, 19, 0.25);
    --infa-orange-focus: rgb(178, 66, 18);
    --infa-purple: #751fa5;
    --infa-gold: #FFE600;
}

.htmx-indicator {
    opacity: 0;
}

.htmx-request .htmx-indicator {
    opacity: 1;
    transition: opacity 200ms ease-in;
}

.htmx-request.htmx-indicator {
    opacity: 1;
    transition: opacity 200ms ease-in;
}

.form-check-input:checked {
    background-color: var(--infa-orange);
    border-color: var(--infa-orange);
}

.form-check-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--infa-orange);
    box-shadow: 0 0 0 0.25rem var(--infa-orange-faded);
}

.col-menu-button {
    width: 50px;
}

.width-200px {
    width: 200px;
}

.width-250px {
    width: 250px;
}

.width-280px {
    width: 280px;
}

.width-350px {
    width: 350px;
}

.width-700px {
    width: 700px;
}

.col-image-name {
    max-width: 600px;
}


.search-mode-select {
    max-width: 120px;
}

.text-all-small-caps {
    font-variant-caps: all-small-caps;
}

.vh-50 {
    height: 50vh;
}

.max-vh-75 {
    max-height: 75vh;
}

.btn-outline-infa {
    --bs-btn-border-color: var(--infa-orange);
    --bs-btn-color: var(--infa-orange);
    --bs-btn-hover-bg: var(--infa-orange);
    --bs-btn-hover-border-color: var(--infa-orange);
    --bs-btn-hover-color: white;
}

.btn-primary-infa {
    --bs-btn-bg: var(--infa-orange);
    --bs-btn-border-color: white;
    --bs-btn-color: white;
    --bs-btn-hover-bg: var(--infa-orange-focus);
    --bs-btn-hover-color: white;
}

.color-infa-primary {
    color: var(--infa-orange);
}

.bg-infa-primary {
    background-color: var(--infa-orange) !important;
}

.bg-infa-purple {
    background-color: var(--infa-purple) !important;
}

.mb-0-last-p p:last-child {
    margin-bottom: 0;
}

.text-infa-gold {
    color: var(--infa-gold) !important;
}

/* Rating breakdown popover */
.rating-breakdown-popover {
    min-width: 200px;
}

.rating-breakdown-popover .star-label {
    width: 30px;
}

.rating-breakdown-popover .progress {
    height: 12px;
}

.rating-breakdown-popover .pct-label {
    width: 35px;
}

/* Z-index layers for card interactions */
.star-rating-section,
.no-ratings {
    z-index: 2;
    position: relative;
}

.rating-breakdown-btn {
    z-index: 3;
    line-height: 1;
}

.card .stretched-link {
    z-index: 1;
}

/* Retiring badge styles */
.retiring-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    line-height: 1.4;
    white-space: normal;
    border-top-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}

.retiring-badge-mobile {
    text-align: center;
}

.card-footer {
    position: relative;
    z-index: 2;
}

.alternate-demos-btn {
    position: relative;
    font-size: 0.85rem;
    z-index: 3;
}