/* ==========================================================================
   Audio Widget for Elementor — Frontend Styles
   NO hardcoded colors — all colors controlled by Elementor style settings.
   ========================================================================== */

/* Wrapper */
.awe-audio-wrapper {
    display: block;
    line-height: 1;
}

/* Button reset */
.awe-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    /* Remove blue highlight on mobile tap */
}

/* Focus styles — keep accessibility but ensure color is inherited */
.awe-audio-btn:focus,
.awe-audio-btn:active,
.awe-audio-btn:focus-visible,
.awe-audio-btn:hover {
    /* Added :hover here to be safe */
    outline: none;
    background: none !important;
    /* Force no background change */
    box-shadow: none !important;
    /* Force no shadow */
}

/* 
 * If keyboard focus is used, show a ring BUT use current color 
 * (so it matches the icon color set in Elementor)
 */
.awe-audio-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Icon wrapper */
.awe-audio-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through to button */
}

/* Icon element */
.awe-audio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease, fill 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through to button */
}

.awe-audio-icon i {
    font-size: inherit;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   SVG fill override — Elementor's e_font_icon_svg feature applies fill
   directly on <svg> and <path> via JS. We must use !important to ensure
   our icons inherit color from their parent (set by Elementor style controls).
   -------------------------------------------------------------------------- */
.awe-audio-icon svg,
.awe-audio-icon svg path,
.awe-audio-icon .e-font-icon-svg,
.awe-audio-icon .e-font-icon-svg path {
    fill: currentColor !important;
    pointer-events: none;
    /* Let clicks pass through to button */
}

/* Prevent blue flash on active/focus/hover for SVG specifically */
.awe-audio-btn:active .awe-audio-icon svg,
.awe-audio-btn:focus .awe-audio-icon svg,
.awe-audio-btn:hover .awe-audio-icon svg {
    /* Added :hover here */
    fill: currentColor !important;
}

.awe-audio-btn:active .awe-audio-icon svg path,
.awe-audio-btn:focus .awe-audio-icon svg path,
.awe-audio-btn:hover .awe-audio-icon svg path {
    /* Added :hover here */
    fill: currentColor !important;
}

/* Hidden stop icon by default */
.awe-audio-icon--stop {
    display: none;
}

/* --------------------------------------------------------------------------
   VIEW: Default — icon only, no background
   -------------------------------------------------------------------------- */
.awe-view-default .awe-audio-icon-wrap {
    background: none !important;
    padding: 0;
    border: none !important;
}

/* --------------------------------------------------------------------------
   VIEW: Stacked — filled background, colored icon
   -------------------------------------------------------------------------- */
.awe-view-stacked .awe-audio-icon-wrap {
    padding: 15px;
}

/* --------------------------------------------------------------------------
   VIEW: Framed — border with background
   -------------------------------------------------------------------------- */
.awe-view-framed .awe-audio-icon-wrap {
    border: 3px solid;
    padding: 15px;
}

/* --------------------------------------------------------------------------
   SHAPE: Circle
   -------------------------------------------------------------------------- */
.awe-shape-circle .awe-audio-icon-wrap {
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   SHAPE: Square
   -------------------------------------------------------------------------- */
.awe-shape-square .awe-audio-icon-wrap {
    border-radius: 0;
}

/* --------------------------------------------------------------------------
   Audio element (hidden)
   -------------------------------------------------------------------------- */
.awe-audio-element {
    display: none !important;
    width: 0;
    height: 0;
}