.otto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--otto-spacing-sm);
    height: var(--otto-btn-height);
    padding: 0 var(--otto-btn-padding-x);
    border: 1px solid transparent;
    border-radius: var(--otto-border-radius-sm);
    background: transparent;
    color: var(--otto-text-dark);
    font-family: var(--otto-font-family);
    font-size: var(--otto-btn-font-size);
    line-height: var(--otto-line-height-base);
    font-weight: var(--otto-font-weight-medium);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.otto-btn:focus-visible {
    outline: 2px solid var(--otto-focus-color);
    outline-offset: 2px;
}

.otto-btn:disabled,
.otto-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto;
}

.otto-btn-primary {
    background: var(--otto-btn-primary-bg);
    border-color: var(--otto-btn-primary-bg);
    color: var(--otto-btn-primary-text);
    font-weight: var(--otto-font-weight-semibold);
}

.otto-btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--otto-brand-primary);
    border-color: var(--otto-brand-primary);
}

.otto-btn-secondary {
    background: var(--otto-card-bg);
    border-color: var(--otto-border-color);
    color: var(--otto-text-dark);
}

.otto-btn-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--otto-surface-fill);
    border-color: var(--otto-card-hover-border);
}

.otto-btn-danger {
    background: var(--otto-color-danger);
    border-color: var(--otto-color-danger);
    color: var(--otto-btn-primary-text);
    font-weight: var(--otto-font-weight-semibold);
}

.otto-btn-danger:hover:not(:disabled):not([aria-disabled="true"]) {
    filter: brightness(0.92);
}

.otto-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--otto-text-sub);
}

.otto-btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--otto-surface-fill);
    color: var(--otto-text-dark);
}

.otto-btn-icon {
    width: var(--otto-btn-height);
    padding: 0;
}

.otto-btn-icon svg,
.otto-btn-icon img {
    width: var(--otto-icon-size-sm);
    height: var(--otto-icon-size-sm);
}
