.device-sound-card {
    display: flex;
    align-items: center;
    gap: 16px;
    
    width: 100%;
    box-sizing: border-box;
}


/*
 * Image
 */
.device-sound-image {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}


/*
 * Content
 *
 * Album
 * Title
 */
.device-sound-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    flex: 1;
    min-width: 0;
}


.device-sound-album,
.device-sound-title {
    display: block;
}


/*
 * Play Button
 */
.device-sound-button {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;
    margin: 0;

    border: none;
    outline: none;

    background: #17284A;
    color: #FFFFFF;

    cursor: pointer;
    flex-shrink: 0;

    appearance: none;
    -webkit-appearance: none;
}


/*
 * Keyboard Focus
 *
 * Keep the focus indicator for accessibility.
 */
.device-sound-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/*
 * SVG Icons
 */
.device-sound-icon {
    display: block;

    width: 20px;
    height: 20px;

    flex-shrink: 0;

    fill: currentColor;
}


/*
 * Default state
 *
 * Show Play
 * Hide Pause
 */
.device-sound-icon-play {
    display: block;
}

.device-sound-icon-pause {
    display: none;
}


/*
 * Playing state
 *
 * Hide Play
 * Show Pause
 */
.device-sound-card.is-playing .device-sound-icon-play {
    display: none;
}

.device-sound-card.is-playing .device-sound-icon-pause {
    display: block;
}


/*
 * Mobile
 */
@media (max-width: 767px) {

    .device-sound-card {
        gap: 12px;
    }


    .device-sound-image {
        width: 56px;
        height: 56px;
    }


    /*
     * Do NOT set width/height on the button.
     *
     * Its size is determined by:
     *
     * icon size + padding
     *
     * Elementor controls these values.
     */
    .device-sound-button {
        flex-shrink: 0;
    }
}
