.accordions-wrapper {
    margin: 0 0 20px 0;
}

.accordion-item {
    margin-bottom: 10px;
}

/* Apply accordion header colors from parent wrapper */
.accordion-header {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    background-color: var(--accordion-bg, #f5f5f5);
    color: var(--accordion-text, inherit);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    filter: brightness(0.95);
}

.accordion-header h3 {
    margin: 0;
    font-size: 18px;
    color: inherit;
}

.accordion-header-text {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.accordion-subtitle {
    margin: 6px 0 0;
    font-size: 1rem;
    line-height: 1.4;
    color: inherit;
    opacity: 0.95;
}

.accordion-icon {
    color: inherit;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-icon::after {
    content: '';
    width: 20px;
    height: 20px;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    transition: transform 0.3s ease;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.accordion-item.active .accordion-icon::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.accordion-content {
    padding: 0;
    overflow: hidden;
}

.accordion-inner {
    padding: 1rem;
}

/* Minimal style */
.accordions-wrapper[data-item-style="minimal"] .accordion-item {
    border: none;
    background: none;
    box-shadow: none;
    margin-bottom: 6px;
}
.accordions-wrapper[data-item-style="minimal"] .accordion-header {
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
    padding-left: 0;
    padding-right: 0;
}

/* Boxed style */
.accordions-wrapper[data-item-style="boxed"] .accordion-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 16px;
}
.accordions-wrapper[data-item-style="boxed"] .accordion-header {
    border-bottom: 1px solid #e0e0e0;
}

.accordions-wrapper[data-item-style="button"] .accordion-header {
    transition: all 300ms ease-in-out;
    background-color: var(--wp--preset--color--primary) !important;
    border-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--default-page) !important;
    border-width: 2px !important;
    border-style: solid !important;
    text-decoration: none !important;
    width:auto;
    display:flex;
    justify-content: center;
    align-items:center;
    margin:0 auto;
    text-transform:uppercase;
    padding:10px 20px;
}

.accordions-wrapper[data-item-style="button"] .accordion-header h3{
    text-transform:uppercase;
    font-size:var(--wp--preset--font-size--custom-10);
}

.accordions-wrapper[data-item-style="button"] .accordion-header-text {
    text-align: center;
    margin-right: 0;
}

.accordions-wrapper[data-item-style="button"] .accordion-header:hover,
.accordions-wrapper[data-item-style="button"] .accordion-header:focus {
    background-color: var(--wp--preset--color--secondary-tone) !important;
    border-color: var(--wp--preset--color--secondary-tone) !important;
}

.accordions-wrapper[data-item-style="button"] .accordion-header:active {
    background-color: var(--wp--preset--color--default-page) !important;
    border-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--primary) !important;
}

.accordions-wrapper[data-item-style="button"] .accordion-item.active .accordion-header {
    display: none !important;
}

.accordions-wrapper[data-item-style="button"] .accordion-icon {
    display: none !important;
}
