/* Visa How To Apply Accordion Widget — Frontend Styles
   NOTE: Font sizes, padding, colors, and other values controllable from
   the Elementor Style tab are intentionally NOT hardcoded here, so the
   widget's responsive controls are always the single source of truth. */

.vhw-list {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Reset against theme/global button styles (many themes style every
   <button> element with a brand-color hover/focus/active background).
   Scoped with the wrapper class for extra specificity so it reliably
   wins over generic `button { ... }` or `button:hover { ... }` rules.
   IMPORTANT: this never touches `color`, since color is inheritable —
   forcing it here would override the Title/Badge typography controls
   on child elements like .vhw-title and .vhw-badge. */
.vhw-list button.vhw-item-header,
.vhw-list button.vhw-item-header:hover,
.vhw-list button.vhw-item-header:focus,
.vhw-list button.vhw-item-header:focus-visible,
.vhw-list button.vhw-item-header:active,
.vhw-list button.vhw-item-header:visited {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.vhw-item {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.vhw-item-header {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font: inherit;
    box-sizing: border-box;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
}

.vhw-badge {
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vhw-title {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.vhw-toggle-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    line-height: 1;
}

.vhw-icon-close {
    display: none;
}

.vhw-item.vhw-active .vhw-icon-open {
    display: none;
}

.vhw-item.vhw-active .vhw-icon-close {
    display: inline-flex;
}

.vhw-desc {
    box-sizing: border-box;
    width: 100%;
}

.vhw-desc-inner > *:first-child {
    margin-top: 0;
}

.vhw-desc-inner > *:last-child {
    margin-bottom: 0;
}
