/* Explain: Styles for the giving options cards and expandable details. */
/* Ways to give today — labelled options that open their details in place. */
.giving-option {
    overflow: hidden;
}

.giving-option__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.giving-option__summary::-webkit-details-marker {
    display: none;
}

.giving-option__summary:hover {
    background-color: var(--orange-soft);
}

.giving-option__summary:focus-visible {
    background-color: var(--orange-soft);
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}

.giving-option__icon {
    display: flex;
    height: 3rem;
    width: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: var(--orange-soft);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.giving-option__head {
    flex: 1 1 auto;
    min-width: 0;
}

.giving-option__name {
    display: block;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.25;
}

.giving-option__intro {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.giving-option__chevron {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.giving-option[open] .giving-option__chevron {
    transform: rotate(180deg);
}

.giving-option__body {
    padding: 0 1.5rem 1.6rem;
}

/* Ways-to-give picker — a clear icon, name and summary, with an unmistakable cue. */
.giving-way {
    position: relative;
    border-left: 3px solid transparent;
}

.giving-way__icon {
    display: flex;
    height: 3.25rem;
    width: 3.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: var(--orange-soft);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 1.3rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.giving-way__name {
    margin-top: 1.15rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.22;
}

.giving-way__summary {
    flex-grow: 1;
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.62;
}

.giving-way__cue {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.giving-way__cue i {
    transition: transform 0.25s ease;
}

.giving-way:not(.is-active):hover .giving-way__cue i {
    transform: translateY(3px);
}

.giving-way.is-active {
    background-color: var(--orange-soft);
    border-color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.giving-way.is-active .giving-way__icon {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.giving-way.is-active .giving-way__cue i {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .giving-option__summary {
        padding: 1.6rem 2rem;
    }

    .giving-option__body {
        padding: 0 2rem 2rem;
    }
}