/*
 * ENERGY 106 — PLAYER CONTACT ROW V2
 *
 * Listen Live / WhatsApp / Message The Studio
 * One horizontal row, matching visual styling.
 *
 * This stylesheet is loaded only on Energy 106.
 * No changes to playback or streaming behaviour.
 */

body .rlv3-contact-actions[data-contact-actions] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body .rlv3-contact-actions[data-contact-actions]::-webkit-scrollbar {
    display: none;
}

body .rlv3-contact-actions[data-contact-actions][hidden] {
    display: none !important;
}

/* All three controls have the same design. */

body .rlv3-contact-actions[data-contact-actions]
> .rlv3-contact-button {
    display: inline-flex !important;
    flex: 0 0 auto !important;

    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 34px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 6px 0 !important;

    gap: 9px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #ffffff !important;
    font: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
    text-decoration: none !important;

    cursor: pointer;
    transition: color .15s ease !important;
}

/* Use one consistent divider between controls. */

body .rlv3-contact-actions[data-contact-actions]
> .rlv3-contact-button:not(:first-child) {
    border-left: 1px solid rgba(255,255,255,.26) !important;
    margin-left: 19px !important;
    padding-left: 19px !important;
}

/* Remove the old individual separator decoration. */

body .rlv3-contact-actions[data-contact-actions]
> .rlv3-contact-button::before,
body .rlv3-contact-actions[data-contact-actions]
> .rlv3-contact-button::after {
    content: none !important;
    display: none !important;
}

/* Match icon dimensions and pink colour. */

body .rlv3-contact-actions[data-contact-actions]
> .rlv3-contact-button svg {
    display: block !important;
    flex: 0 0 19px !important;
    width: 19px !important;
    height: 19px !important;

    color: #ed1584 !important;
}

/* No background box appears on hover. */

body .rlv3-contact-actions[data-contact-actions]
> .rlv3-contact-button:hover {
    color: #ff7bbf !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body .rlv3-contact-actions[data-contact-actions]
> .rlv3-contact-button:focus-visible {
    outline: 2px solid #ed1584 !important;
    outline-offset: 4px !important;
}

/* Keep the live playback status understated. */

body .rlv3-contact-actions[data-contact-actions]
> .e106-return-live-v1--playing {
    background: transparent !important;
}

/* Tablet and smaller browser widths. */

@media (max-width: 800px) {
    body .rlv3-contact-actions[data-contact-actions]
    > .rlv3-contact-button {
        font-size: 13px !important;
        gap: 7px !important;
    }

    body .rlv3-contact-actions[data-contact-actions]
    > .rlv3-contact-button:not(:first-child) {
        margin-left: 12px !important;
        padding-left: 12px !important;
    }
}

/* Compact phone widths: still one row. */

@media (max-width: 480px) {
    body .rlv3-contact-actions[data-contact-actions]
    > .rlv3-contact-button {
        font-size: 10px !important;
        gap: 4px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    body .rlv3-contact-actions[data-contact-actions]
    > .rlv3-contact-button svg {
        flex-basis: 15px !important;
        width: 15px !important;
        height: 15px !important;
    }

    body .rlv3-contact-actions[data-contact-actions]
    > .rlv3-contact-button:not(:first-child) {
        margin-left: 7px !important;
        padding-left: 7px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .rlv3-contact-actions[data-contact-actions]
    > .rlv3-contact-button {
        transition: none !important;
    }
}
