.cr-inner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    width: auto;
    min-width: 150px; /* Default min-width */
}

.cr-inner-btn:hover {
    transform: scale(1.02);
}

.cr-inner-btn:active {
    transform: scale(0.98);
}

.cr-inner-focus-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px) saturate(0.8);
    -webkit-backdrop-filter: blur(12px) saturate(0.8);
    transition: opacity 0.4s ease;
    z-index: 999;
}

.cr-inner-focus-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.cr-inner-focus-target {
    position: relative;
    z-index: 1000;
}

/* Theme: Dark (Black Button, White Inner) */
.cr-inner-btn.cr-theme-dark {
    background-color: #000000;
    color: #ffffff;
}

.cr-inner-btn.cr-theme-dark .cr-inner-btn-box {
    background-color: #ffffff;
    color: #000000;
}

/* Theme: Light (White Button, Black Inner) */
.cr-inner-btn.cr-theme-light {
    background-color: #ffffff;
    color: #000000;
}

.cr-inner-btn.cr-theme-light .cr-inner-btn-box {
    background-color: #000000;
    color: #ffffff;
}

/* Text Element */
.cr-inner-btn-text {
    flex-grow: 1;
    text-align: center;
    padding: 0 15px;
    font-weight: 500;
    white-space: nowrap;
}

/* Inner Box Element */
.cr-inner-btn-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 50%; /* Default circular/rounded */
    flex-shrink: 0;
    font-weight: bold;
}

/* Icon Type: Fixed Aspect Ratio */
.cr-inner-btn.cr-inner-type-icon .cr-inner-btn-box,
.cr-inner-btn.cr-inner-type-svg .cr-inner-btn-box {
    aspect-ratio: 1 / 1;
}

/* Custom SVG Image */
.cr-inner-svg-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
}

/* Text Type: Adaptive Width */
.cr-inner-btn.cr-inner-type-text .cr-inner-btn-box {
    width: auto;
    min-width: calc(var(--cr-btn-height) - 10px); /* Height minus padding */
    padding: 0 15px;
    box-sizing: border-box;
}

/* Position: Right */
.cr-inner-btn.cr-pos-right {
    flex-direction: row;
}

/* Position: Left */
.cr-inner-btn.cr-pos-left {
    flex-direction: row-reverse;
}
