.cob-location-wrap {
    display: grid;
    gap: 0.75rem;
    overflow: visible !important;
}

.cob-location-card {
    display: block;
    overflow: visible !important;
}

.cob-badge-tooltip {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    overflow: visible !important;
    z-index: 1;
}

.cob-badge-tooltip.is-tooltip-open {
    z-index: 2147483646;
}

.cob-badge-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: 100%;
    text-align: center;
    overflow: visible !important;
}

.cob-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    width: fit-content;
    max-width: 100%;
    padding: 0.25em 0.7em;
    border: 0 !important;
    box-shadow: none;
    border-radius: 999px;
    font: inherit;
    font-size: 0.875em;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.cob-status-pill::before {
    content: "";
    width: 0.55em;
    height: 0.55em;
    flex: 0 0 auto;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: cob-status-pulse 1.6s ease-out infinite;
}

.cob-status-pill:focus-visible,
.cob-phone-icon-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@keyframes cob-status-pulse {
    0% {
        box-shadow: 0 0 0 0 currentColor;
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 0.45em rgba(0, 0, 0, 0);
        opacity: 0.72;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        opacity: 1;
    }
}

.cob-state-open .cob-status-pill {
    color: #166534;
    background: #dcfce7;
}

.cob-state-closed .cob-status-pill {
    color: #991b1b;
    background: #fee2e2;
}

.cob-state-renovation .cob-status-pill {
    color: #92400e;
    background: #fef3c7;
}

.cob-phone-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    min-height: 1.9em;
    width: auto;
    max-width: 100%;
    padding: 0.25em 0.65em;
    border: 0 !important;
    box-shadow: none;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    text-decoration: none;
    line-height: 1;
    font: inherit;
    font-size: 0.875em;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
    animation: cob-call-attention 1.8s ease-in-out infinite;
}

.cob-phone-icon-button:hover,
.cob-phone-icon-button:focus {
    text-decoration: none;
}

.cob-phone-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
    flex: 0 0 auto;
}

.cob-call-label {
    display: inline-block;
    line-height: 1;
}

@keyframes cob-call-attention {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.25);
    }
    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 0.35em rgba(22, 101, 52, 0);
    }
}

.cob-status-hint {
    margin-top: 0.35rem;
    text-align: center;
    font-size: 0.92em;
}

.cob-hours-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.6rem);
    z-index: 2147483647;
    width: min(100%, calc(100vw - 24px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
    font-size: calc(1em + 1px);
    border: 0;
    border-radius: 0.8rem;
    background: #ffffff;
    color: inherit;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
    text-align: left;
    transform: translate(-50%, -0.25rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.cob-hours-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    background: #ffffff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -3px -3px 6px rgba(15, 23, 42, 0.03);
}

.cob-badge-tooltip:hover .cob-hours-tooltip,
.cob-badge-tooltip:focus-within .cob-hours-tooltip,
.cob-badge-tooltip.is-tooltip-open .cob-hours-tooltip,
.cob-hours-tooltip.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cob-hours-tooltip.is-visible {
    position: fixed;
    left: var(--cob-tooltip-left, 50vw);
    top: var(--cob-tooltip-top, 0px);
    width: min(var(--cob-tooltip-width, 100%), calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    z-index: 2147483647;
}

.cob-hours-tooltip.is-visible.is-above::before {
    top: auto;
    bottom: -0.35rem;
    box-shadow: 3px 3px 6px rgba(15, 23, 42, 0.03);
}

.cob-address {
    margin-top: 0.5rem;
}

.cob-hours-title {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.cob-hours-list {
    display: grid;
    gap: 0.2rem;
    width: 100%;
    max-width: 100%;
}

.cob-hours-row {
    display: grid;
    grid-template-columns: minmax(5.9rem, 0.9fr) minmax(0, 1.4fr);
    align-items: baseline;
    column-gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
}

.cob-hours-row.is-today {
    font-weight: 700;
}

.cob-hours-day {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cob-hours-time {
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cob-phone-row {
    display: block;
    margin-top: 0.5rem;
    width: 100%;
}

.cob-phone {
    display: inline-flex;
    align-items: center;
    text-decoration: inherit;
}

@media (max-width: 480px) {
    .cob-badge-row {
        flex-wrap: wrap;
    }

    .cob-hours-tooltip {
        width: min(100%, calc(100vw - 24px));
        min-width: 0;
        max-width: calc(100vw - 24px);
        padding: 0.42rem 0.5rem;
        font-size: calc(1em + 1px);
    }

    .cob-hours-title {
        margin-bottom: 0.3rem;
    }

    .cob-hours-row {
        grid-template-columns: minmax(4.9rem, 0.78fr) minmax(0, 1.55fr);
        column-gap: 0.45rem;
    }

    .cob-hours-time {
        text-align: right;
    }
}
