/* Collapsed by default; JS animates height on toggle */
.gpro-toggle-content {
    display: none;
}

/* Active-state hook — rotates the button's Divi icon (::after) 180°
   while its row is open. Composed with translateY(-50%), not replacing
   it — Divi's own ::after already uses transform for vertical centering,
   and a rotate-only value would silently overwrite that and displace the
   icon. No-op on buttons without a Divi icon (empty ::after content). */
.gpro-toggle-button.is-active::after {
    transform: translateY(-50%) rotate(180deg);
    transition: transform 200ms ease;
}

/* Stretch the module wrapper */
.et_pb_button_module_wrapper:has(> .gpro-toggle-accordion),
.gpro-toggle-accordion.et_pb_button_module_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    text-align: left !important;
}

/* Accordion row: full width */
.gpro-toggle-accordion.et_pb_button,
.gpro-toggle-accordion .et_pb_button {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    padding-right: calc(var(--gpro-accordion-icon-offset, var(--gpro-btn-icon-offset, 14px)) + var(--gpro-btn-icon-box, 32px)) !important;
}

/* Plus icon, right edge */
.gpro-toggle-accordion.et_pb_button::after,
.gpro-toggle-accordion .et_pb_button::after,
.gpro-toggle-accordion.et_pb_button:hover::after,
.gpro-toggle-accordion .et_pb_button:hover::after {
    content: "L" !important;
    font-family: ETmodules !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    display: inline-block !important;
    position: absolute !important;
    top: 50% !important;
    left: auto !important;
    right: var(--gpro-accordion-icon-offset, var(--gpro-btn-icon-offset, 14px)) !important;
    width: var(--gpro-btn-icon-box, 32px) !important;
    text-align: center !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}

/* Minus while open */
.gpro-toggle-accordion.et_pb_button[aria-expanded="true"]::after,
.gpro-toggle-accordion .et_pb_button[aria-expanded="true"]::after,
.gpro-toggle-accordion[aria-expanded="true"] .et_pb_button::after {
    content: "K" !important;
}
