.wc-btn-wrapper {
    display: inline-block;
}

.btn-text-flip svg,
.wc-btn-wrapper svg {
    width: 1em;
    height: 1em;
}

/* Button 1 and 2 */
.wc-btn-group {
    display: flex;
    width: fit-content;
}

.wc-btn-group .wc-btn-primary {
    padding: 21px 40px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    background-color: #0A1A3D;
    text-transform: capitalize;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    gap: 30px;
    white-space: nowrap;
    border-radius: 30px;
}

.wc-btn-group .wc-btn-play {
    color: #fff;
    fill: #fff;
    border-radius: 50px;
    background-color: #0A1A3D;
    border: 1px solid transparent;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
}

.wc-btn-group > *:nth-child(2) {
    transform: scale3d(1, 1, 1);
}

.wc-btn-group:hover > *:nth-child(2) {
    transform: scale3d(1, 1, 1);
}

/* Style 1 */
.style-1 .wc-btn-group > *:nth-child(1) {
    transform: scale3d(0.5, 0.5, 1);
    margin-right: calc( var(--icon-width, 60px) * -1);
    opacity: 0;
}

.style-1 .wc-btn-group > *:nth-child(3) {
    transform: scale3d(1, 1, 1);
    margin-left: 0;
    opacity: 1;
}

.style-1 .wc-btn-group:hover > *:nth-child(1) {
    transform: scale3d(1, 1, 1);
    margin-right: 0;
    opacity: 1;
}

.style-1 .wc-btn-group:hover > *:nth-child(3) {
    transform: scale3d(0.5, 0.5, 1);
    margin-left: calc( var(--icon-width, 60px) * -1);
    opacity: 0;
}

/* Style 2 */
.style-2 .wc-btn-group > *:nth-child(1) {
    transform: scale3d(1, 1, 1);
    margin-right: 0;
    opacity: 1;
}

.style-2 .wc-btn-group > *:nth-child(3) {
    transform: scale3d(0.5, 0.5, 1);
    margin-left: calc( var(--icon-width, 60px) * -1);
    opacity: 0;
}

.style-2 .wc-btn-group:hover > *:nth-child(1) {
    transform: scale3d(0.5, 0.5, 1);
    margin-right: calc( var(--icon-width, 60px) * -1);
    opacity: 0;
}

.style-2 .wc-btn-group:hover > *:nth-child(3) {
    transform: scale3d(1, 1, 1);
    margin-left: 0;
    opacity: 1;
}

/* Button Flip */
.btn-text-flip {
    perspective: 1000px;
}

.btn-text-flip:hover span {
    transform: rotateX(90deg) translateY(-12px);
}

.btn-text-flip span {
    position: relative;
    display: inline-block;
    padding: 0;
    color: #121212;
    transition: transform 0.3s;
    transform-origin: 50% 0;
    transform-style: preserve-3d;
}

.btn-text-flip span:before {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    content: attr(data-text);
    transition: color 0.3s;
    transform: rotateX(-90deg);
    transform-origin: 50% 0;
    text-align: center;
}
