.cthw-wrapper {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    text-align: left; /* reset the inherited text-align from {{WRAPPER}} for layout purposes; per-element controls (label/number) still apply their own text-align */
}
.cthw-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #888;
}
.cthw-trigger-container {
    position: relative;
    display: inline-block;
}
.cthw-trigger-number {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    outline: none;
}
/* Visible keyboard-focus indicator (mouse users won't see it, keyboard users will) */
.cthw-trigger-number:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}
/* Hover reveal for Desktop */
@media (min-width: 768px) {
    .cthw-wrapper:hover .cthw-options-container {
        opacity: 1;
        visibility: visible;
        transform: translate(calc(var(--cthw-dropdown-anchor) * -1), 0);
    }
}
/* Mobile tap support & click-to-toggle fallback (also works on desktop) */
.cthw-wrapper.cthw-active .cthw-options-container {
    opacity: 1;
    visibility: visible;
    transform: translate(calc(var(--cthw-dropdown-anchor) * -1), 0);
}
.cthw-options-container {
    --cthw-dropdown-anchor: 50%; /* fallback: centered, matches default control value */
    position: absolute;
    top: 100%;
    left: var(--cthw-dropdown-anchor);
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 10px;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;

    /* Default Hidden State - horizontal anchor comes from --cthw-dropdown-anchor, vertical slide is the 10px offset */
    opacity: 0;
    visibility: hidden;
    transform: translate(calc(var(--cthw-dropdown-anchor) * -1), 10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.cthw-call-option,
.cthw-text-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.cthw-call-option:hover,
.cthw-text-option:hover {
    background-color: #f5f5f5;
}
.cthw-call-option:focus-visible,
.cthw-text-option:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.cthw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    font-size: 14px;
}
.cthw-icon svg {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
}