/* TEST: If you see this border, CSS is loading */
.badrock-svg-button-wrapper {
    display: inline-block;
    border: 3px solid lime !important;
}

.badrock-svg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-family: inherit;
}

.badrock-svg-button.svg-left {
    flex-direction: row;
}

.badrock-svg-button.svg-right {
    flex-direction: row-reverse;
}

.badrock-svg-button.svg-top {
    flex-direction: column;
}

.badrock-svg-button.svg-bottom {
    flex-direction: column-reverse;
}

/* Default stacked layout */
.badrock-svg-button .svg-icons-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badrock-svg-button .svg-icons-container.stacked .svg-icon {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.badrock-svg-button .svg-icons-container.stacked .svg-icon.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

/* Side-by-side layout */
.badrock-svg-button .svg-icons-container.side-by-side {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.badrock-svg-button .svg-icons-container.side-by-side .svg-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.badrock-svg-button .svg-icons-container.side-by-side .svg-icon:not(.active) {
    opacity: 0.3;
    transform: scale(0.9);
}

.badrock-svg-button .svg-icons-container.side-by-side .svg-icon.active {
    opacity: 1;
    transform: scale(1);
}

.badrock-svg-button .button-text {
    display: inline-block;
}

.badrock-svg-button .svg-icon svg,
.badrock-svg-button .svg-icon i,
.badrock-svg-button .svg-icon img {
    display: block;
    transition: all 0.3s ease;
}

.badrock-svg-button .svg-icon i {
    font-size: inherit;
}

.badrock-svg-button .svg-icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.badrock-svg-button:hover {
    transition: all 0.3s ease;
}

.badrock-svg-button.swapping .svg-icon {
    opacity: 0;
    transform: scale(0.8);
}

.badrock-svg-button:active {
    transform: scale(0.98);
}

/* Stacked layout - icons overlay each other */
.badrock-svg-button .svg-icons-container.stacked {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badrock-svg-button .svg-icons-container.stacked .svg-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.badrock-svg-button .svg-icons-container.stacked .svg-icon:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(0.8);
}

.badrock-svg-button .svg-icons-container.stacked .svg-icon.active {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

/* Side-by-side layout - icons next to each other */
.badrock-svg-button .svg-icons-container.side-by-side {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badrock-svg-button .svg-icons-container.side-by-side .svg-icon {
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.badrock-svg-button .svg-icons-container.side-by-side .svg-icon:not(.active) {
    opacity: 0.3;
    transform: scale(0.9);
}

.badrock-svg-button .svg-icons-container.side-by-side .svg-icon.active {
    opacity: 1;
    transform: scale(1);
}

.svg-icons-container.stacked{
    position: relative;
}

.svg-icons-container.stacked .svg-icon-2{
    position: absolute;
    top: 0;
    left: 0;
}