.mtgr-guest-checkin {
    box-sizing: border-box;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    color: #1f2937;
}

.mtgr-guest-checkin *,
.mtgr-guest-checkin *::before,
.mtgr-guest-checkin *::after,
.mtgr-login-modal,
.mtgr-login-modal *,
.mtgr-login-modal *::before,
.mtgr-login-modal *::after {
    box-sizing: border-box;
}

.mtgr-guest-checkin__title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.35;
}

.mtgr-guest-checkin__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mtgr-guest-checkin__card {
    display: flex;
    min-width: 0;
    min-height: 320px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.mtgr-guest-checkin__image-link {
    display: block;
}

.mtgr-guest-checkin__image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f8fafc;
}

.mtgr-guest-checkin__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.mtgr-guest-checkin__name {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.mtgr-guest-checkin__address {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 16px;
    overflow: hidden;
    color: #64748b;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mtgr-guest-checkin__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mtgr-guest-checkin__points {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 4px 10px;
    border: 1px solid #1976d2;
    border-radius: 999px;
    color: #1565c0;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
}

.mtgr-guest-checkin__button,
.mtgr-login-modal__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #1976d2;
    color: #fff;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.mtgr-guest-checkin__button {
    flex: 1;
    min-height: 36px;
    padding: 6px 16px;
}

.mtgr-guest-checkin__button:hover,
.mtgr-guest-checkin__button:focus-visible,
.mtgr-login-modal__login:hover,
.mtgr-login-modal__login:focus-visible {
    background: #115293;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
    text-decoration: none;
}

.mtgr-guest-checkin__empty {
    margin: 0;
    color: #64748b;
}

.mtgr-login-modal-open {
    overflow: hidden;
}

.mtgr-login-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.68);
}

.mtgr-login-modal__dialog {
    width: min(100%, 420px);
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    text-align: center;
}

.mtgr-login-modal__title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.35;
}

.mtgr-login-modal__message,
.mtgr-login-modal__countdown {
    margin: 0;
    line-height: 1.6;
}

.mtgr-login-modal__countdown {
    margin-top: 8px;
    color: #b42318;
    font-weight: 700;
}

.mtgr-login-modal__login {
    min-height: 42px;
    margin-top: 20px;
    padding: 8px 22px;
}

@media (max-width: 600px) {
    .mtgr-guest-checkin {
        padding: 16px;
    }

    .mtgr-guest-checkin__grid {
        grid-template-columns: 1fr;
    }

    .mtgr-login-modal__dialog {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtgr-guest-checkin__button,
    .mtgr-login-modal__login {
        transition: none;
    }
}
