/* =========================
   BUY MODAL
========================= */

.buy-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto;
    border: 0;
    background: none;
}


/*
 * The modal is hidden through the
 * native HTML hidden attribute.
 */
.buy-modal[hidden] {
    display: none;
}


/* =========================
   OVERLAY
========================= */

.buy-modal__overlay {
    position: absolute;
    inset: 0;
}


/* =========================
   CONTENT
========================= */

.buy-modal__content {
    position: relative;
    z-index: 1;

    width: min(100%, 500px);

    max-height: 90vh;
    overflow-y: auto;

    padding: 2rem;

    background: white;

    border-radius: 18px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}


.buy-modal__content h2 {
    margin: 0 2rem 0.5rem 0;

    color: var(--twilight-indigo);

    font-size: 1.5rem;
}


.buy-modal__intro {
    margin: 0 0 1.5rem;

    color: #555;
}


/* =========================
   CLOSE BUTTON
========================= */

.buy-modal__close {
    position: absolute;

    top: 0.75rem;
    right: 0.75rem;

    width: 35px;
    height: 35px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--twilight-indigo);

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;
}

.buy-modal__close:hover {
    background: #f1f1f1;
}


/* =========================
   SHOPS
========================= */

.buy-modal__shops {
    display: flex;
    flex-direction: column;

    gap: 1rem;
}


.buy-modal__shop {
    padding: 1rem;

    border: 1px solid var(--powder-blue);
    border-radius: 12px;
}


.buy-modal__shop h3 {
    margin: 0 0 0.35rem;

    color: var(--twilight-indigo);
}


.buy-modal__shop p {
    margin: 0 0 1rem;

    font-size: 0.9rem;
}


.buy-modal__shop .btn {
    display: inline-flex;
}