@use '../scss/variables';
@use '../scss/mixins';

.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 70ch;
    max-width: 95%;
    margin-inline: auto;
    padding-bottom: 2rem;
}

.accordion-panel {
    overflow: hidden;
    background-color: variables.$color-white;
    color: variables.$color-black;
    border-radius: 0.25rem;
    transition: max-height 0.4s ease-out;
    @include mixins.shadow;
}

.accordion-title {
    background-color: variables.$color-white;
    cursor: pointer;
    border-radius: 0.25rem;
    padding: 1rem 0.5rem;
    button {
        background: transparent;
        border: 0;
        cursor: pointer;
        width: 100%;
        /*height: 3rem;*/
        text-align: center;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 1.5rem;
        h2, p {
            padding: 0;
            margin: 0;
            align-self: center;
            font-size: 1.25rem;
            font-family: highwayGothic;
            text-transform: uppercase;
            font-weight: inherit;
        }
        h2 {
            text-align: left;
        }
    }
}

.accordion-container {
    height: auto;
    max-height: 0;
    min-height: 0;
    transition: max-height 0.4s ease-out;
}

.accordion-container[aria-expanded="true"] {
    height: auto;
    max-height: 300px;
    min-height: 100%;
}

.accordion-content {
    padding: 1rem;
}
/*
.accordion-wrapper {
    width: 70ch;
    max-width: 95%;
    margin-inline: auto;
}

.accordion-panel {
    background-color: lightgray;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0px 3px 9px 3px darkgrey;
}

.accordion-title {
    padding: 1rem;
    background-color: green;
    color: white;
    border-radius: 0.25rem;
    transition: 0.4s;
    cursor: pointer;
}

.accordion-title:hover {
    background-color: darkgreen;
}

.accordion-container {
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    margin-top: -2rem;
    transition: max-height 0.4s ease-out;
}

.accordion-button {
    
    text-align: center;
    text-decoration: none;
    padding: 1rem;
}

.accordion-button a {
    text-decoration: none;
    background-color: green;
    margin: 1rem;
    color: white;
    border: none;
    font-weight: bold;
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 0.25rem;
    width: 100%;
    height: 100%;
}

.accordion-sublist {
    list-style-type: none;
    font-size: smaller;
}
*/
.accordion-footnotes {
    text-align: right;
    font-size: smaller;
}
/*
.active {
    background-color: darkgreen;
}

.active:after {

}*/

.accordion-trigger {
    font-weight: bold;
    color: variables.$color-white;
}



.accordion-green .accordion-title{
    background-color: green;
    button {
        color: variables.$color-white;
    }
}


.accordion-red .accordion-title{
    background-color: red;
    button {
        color: variables.$color-white;
    }
}

.accordion-button {
    text-align: center;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.accordion-button-object {
    margin: auto;
    background-color: variables.$color-accent;
    color: variables.$color-black;
    font-family: 'highwayGothic';
    text-transform: uppercase;
    padding: 1rem 2rem;
    font-size: 2rem;
    border-radius: 0.5rem;
    border: none;
    margin-top: 3rem;
    text-decoration: none;
    

}

.discounted-price {
    background-color: green;
    color: variables.$color-white;
    border-radius: 0.25rem;
    padding: 0 0.125rem;
    font-weight: bold;
}