.termswrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3e3d3d8c;
    display: block !important;
    z-index: 9999;
}

.terms {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    margin: 20px auto;
    z-index: 9998;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto 40px;
    grid-gap: 0.6rem 0.8rem;
    max-width: 280px;
    min-height: 250px;
    padding: 1.5rem;
    background: #fff;
    color: var(--text-color-card);
    border-radius: var(--border-radius);
}

.close-btn {
    grid-column: 2;
    grid-row: 1;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 auto auto;
    cursor: pointer;
    z-index: 9998;
}

.terms__casinologo {
    display: flex;
    grid-column: 1 / span 2;
    grid-row: 1;
    margin: auto;
    align-self: center;
    align-items: center;
    justify-content: center;
}
.terms__casinologo img {
    object-fit: contain;
}

.terms__casinotitle {
    grid-column: -1/1;
    text-align: center;
    margin: 0 auto;
}

.terms__content {
    grid-column: -1/1;
    font-size: 0.75rem;
    white-space: pre-line;
    max-height: 40vh;
    overflow: scroll;
}

.terms__content__title {
    font-size: 0.75rem;
    color: var(--color-secondary-light);
}

.terms__cta-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    grid-gap: 0 0.6rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;

    grid-column: -1/1;
    grid-row: 4;
}

.terms__cta {
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cta-btn-bg);
    border-radius: var(--border-radius);
    margin: 0;
    min-height: 40px;
    color: var(--text-color-cta);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.terms__cta:hover,
.terms__cta:focus {
    background: var(--color-cta-dark);
    box-shadow: var(--box-shadow-button-hover);
}

.terms__review-btn {
    grid-row: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin: 0;
    min-height: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-color-card);
    line-height: 1.2;
    border: 1px solid var(--text-color-card);
}

.terms__review-btn:hover {
    color: #fff;
    background: var(--text-color-card);
    text-decoration: none;
}

@media (min-width: 992px) {
    .termswrapper .terms {
        max-width: 310px;
        min-height: 280px;
    }
}
