.lq-btn-wrap {
    display: flex;
}

.lq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1;
    font-family: var(--font-gazpacho);
    font-weight: 500;
    color: inherit;
    background: none;
    border: none;
    border-bottom: 1px solid currentColor;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    -webkit-appearance: none;
    appearance: none;
    z-index: 10;
}

.lq-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lq-btn__icon svg,
.lq-btn__icon img {
    display: block;
    width: 1em;
    height: 1em;
}

.lq-btn__arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lq-btn__arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 0.625rem;
    height: 0.625rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.lq-btn__arrow-line {
    width: 1.5rem;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s;
}

.lq-btn:hover .lq-btn__arrow-line,
.lq-btn:focus-visible .lq-btn__arrow-line {
    width: 2.5rem;
}

.lq-btn-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lq-btn-modal[hidden] {
    display: none;
}

.lq-btn-modal:not([hidden]) .lq-btn-modal__panel {
    animation: lq-modal-in 0.25s ease both;
}

@keyframes lq-modal-in {
    from { opacity: 0; transform: translateY(0.75rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.lq-btn-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.lq-btn-modal__panel {
    position: relative;
    z-index: 1;
    background-color: #fff;
    width: 100%;
    max-width: 512px;
    padding: 32px;
    border-radius: 24px;
    max-height: 90vh;
    overflow-y: auto;
}

.lq-btn-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    transition: opacity 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.lq-btn-modal__close:hover {
    opacity: 0.6;
}

.lq-btn-modal__close svg {
    display: block;
    width: 1.25em;
    height: 1.25em;
}
