/* ===================================================================
   Stellar Sound Buttons Widget & Product Extras CSS
   =================================================================== */

.stellar-sound-buttons-wrap {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.stellar-sound-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Alignments */
.stellar-sound-buttons-wrap.align-left   .stellar-sound-buttons-container { justify-content: flex-start; }
.stellar-sound-buttons-wrap.align-center .stellar-sound-buttons-container { justify-content: center; }
.stellar-sound-buttons-wrap.align-right  .stellar-sound-buttons-container { justify-content: flex-end; }
.stellar-sound-buttons-wrap.align-justify .stellar-sound-buttons-container { justify-content: space-between; }

/* Grid / Full width mode */
.stellar-sound-buttons-wrap.is-fullwidth .stellar-sound-btn {
    width: 100%;
    justify-content: center;
}

/* Single Sound Button Base */
.stellar-sound-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid rgba(91, 114, 98, 0.35);
    color: #23302A;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: background-color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.15s ease;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.stellar-sound-btn:hover {
    border-color: #5B7262;
    background-color: rgba(91, 114, 98, 0.08);
    transform: translateY(-1px);
}

.stellar-sound-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Icon Sizing & Reset */
.stellar-sound-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: inherit;
    transition: transform 0.25s ease;
}

.stellar-sound-btn-icon i,
.stellar-sound-btn-icon svg {
    width: 1em;
    height: 1em;
    font-size: inherit;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* Custom Uploaded Image Icon */
.stellar-sound-btn-img-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

/* Label & Subtitle */
.stellar-sound-btn-content {
    display: inline-flex;
    flex-direction: column;
    text-align: left;
}

.stellar-sound-btn-label {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.stellar-sound-btn-sub {
    display: block;
    font-size: 11.5px;
    opacity: 0.75;
    font-weight: 400;
    margin-top: 1px;
}

/* Animated Equalizer Soundwave Bars */
.stellar-sound-wave-indicator {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    margin-left: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stellar-sound-btn.is-playing .stellar-sound-wave-indicator {
    opacity: 1;
}

.stellar-sound-wave-bar {
    width: 2.5px;
    height: 100%;
    background-color: currentColor;
    border-radius: 2px;
    transform-origin: bottom;
    animation: stellar-eq-bar 0.8s ease-in-out infinite alternate;
}

.stellar-sound-wave-bar:nth-child(1) { animation-duration: 0.65s; animation-delay: 0.1s; }
.stellar-sound-wave-bar:nth-child(2) { animation-duration: 0.85s; animation-delay: 0.3s; }
.stellar-sound-wave-bar:nth-child(3) { animation-duration: 0.55s; animation-delay: 0.2s; }

@keyframes stellar-eq-bar {
    0%   { transform: scaleY(0.25); }
    100% { transform: scaleY(1.0);  }
}

/* ACTIVE / PLAYING STATE */
.stellar-sound-btn.is-playing {
    background-color: #2E4535;
    border-color: #587962;
    color: #F7EFDF;
    box-shadow: 0 4px 20px rgba(46, 69, 53, 0.45), 0 0 0 3px rgba(169, 189, 173, 0.25);
    animation: stellar-vibrate-hum 0.2s ease-in-out infinite alternate;
}

/* Vibration Hum animation */
@keyframes stellar-vibrate-hum {
    0%   { transform: translate(0, 0) scale(1.02); }
    50%  { transform: translate(-0.8px, 0.5px) scale(1.02); }
    100% { transform: translate(0.8px, -0.5px) scale(1.02); }
}

/* RIPPLE RINGS & RING PLUS ANIMATION */
.stellar-btn-ring-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.stellar-btn-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 1.5px solid rgba(169, 189, 173, 0.65);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    pointer-events: none;
    animation: stellar-btn-ripple 1.4s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
}

.stellar-btn-ring-plus {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110%;
    height: 110%;
    border-radius: 999px;
    border: 2.5px dashed rgba(216, 190, 132, 0.85);
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    animation: stellar-ring-plus-pulse 1.6s cubic-bezier(0.15, 0.85, 0.2, 1) forwards;
}

.stellar-btn-ring:nth-child(2) { animation-delay: 0.25s; }
.stellar-btn-ring:nth-child(3) { animation-delay: 0.5s; }

@keyframes stellar-btn-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8, 2.4);
        opacity: 0;
    }
}

@keyframes stellar-ring-plus-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95) rotate(0deg);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(216, 190, 132, 0.6);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2, 2.8) rotate(45deg);
        opacity: 0;
        box-shadow: 0 0 25px 10px rgba(216, 190, 132, 0);
    }
}

/* ===================================================================
   PRODUCT CHIPS WIDGET STYLES
   =================================================================== */

.stellar-product-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.stellar-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    background-color: #2E4535;
    color: #F7EFDF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stellar-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.stellar-chip-icon {
    display: inline-flex;
    align-items: center;
}

/* ===================================================================
   PRODUCT CUSTOM TEXTS & USPS WIDGET STYLES
   =================================================================== */

.stellar-product-custom-texts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stellar-texts-layout-inline .stellar-product-custom-texts-list {
    flex-direction: row;
    flex-wrap: wrap;
}

.stellar-text-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.4;
    color: #23302A;
}

.stellar-text-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #587962;
    font-size: 16px;
    flex-shrink: 0;
}

.stellar-text-content {
    display: inline-flex;
    flex-direction: column;
}

.stellar-text-main {
    font-weight: 600;
    color: #23302A;
}

.stellar-text-sub {
    font-size: 12px;
    color: #63705F;
    font-weight: 400;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
    .stellar-sound-buttons-container {
        gap: 10px;
    }
    .stellar-sound-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .stellar-texts-layout-inline .stellar-product-custom-texts-list {
        gap: 10px;
    }
}

@media (max-width: 560px) {
    .stellar-sound-buttons-wrap.align-left .stellar-sound-buttons-container,
    .stellar-sound-buttons-wrap.align-right .stellar-sound-buttons-container {
        justify-content: center;
    }
    .stellar-sound-buttons-container {
        gap: 8px;
    }
    .stellar-sound-btn {
        padding: 9px 16px;
        font-size: 13.5px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .stellar-sound-btn-sub {
        font-size: 11px;
    }
    .stellar-product-chips-container {
        gap: 6px;
        justify-content: center;
    }
    .stellar-chip {
        padding: 5px 12px;
        font-size: 12.5px;
    }
    .stellar-product-custom-texts-list {
        gap: 10px;
    }
    .stellar-text-item {
        font-size: 13.5px;
    }
}

@media (max-width: 400px) {
    .stellar-sound-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 14px;
        font-size: 13px;
    }
    .stellar-chip {
        font-size: 12px;
        padding: 4px 10px;
    }
}

