.abfallkalender-popup {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.abfallkalender-popup strong {
    font-weight: 700;
}

.abfallkalender-popup.is-open {
    display: flex;
}

.abfallkalender-popup__backdrop {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.abfallkalender-popup__dialog {
    position: relative;
    z-index: 1;
    outline: none;
    width: 100%;
    max-width: 720px;
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 1.75rem 2rem;
    box-sizing: border-box;
    color: #222222;
    text-align: left;
}

.abfallkalender-popup__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.3;
}

.abfallkalender-popup__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #555555;
}

.abfallkalender-popup__text {
    margin: 0 0 0.9rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #333333;
}

.abfallkalender-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.abfallkalender-popup__btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.7rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3 !important;
    text-align: center !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    float: none !important;
    margin-top: 0 !important;
}

.abfallkalender-popup__btn--primary {
    background-color: #111111 !important;
    border: 1px solid #111111 !important;
    color: #ffffff !important;
}

.abfallkalender-popup__btn--primary:hover,
.abfallkalender-popup__btn--primary:focus {
    background-color: #2b2b2b !important;
    border-color: #2b2b2b !important;
    color: #ffffff !important;
}

.abfallkalender-popup__btn--outline {
    background-color: #ffffff !important;
    border: 1px solid #d9d9d9 !important;
    color: #555555 !important;
}

.abfallkalender-popup__btn--outline:hover,
.abfallkalender-popup__btn--outline:focus {
    background-color: #f5f5f5 !important;
    border-color: #c6c6c6 !important;
    color: #333333 !important;
}

.abfallkalender-popup__btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.abfallkalender-popup__hint {
    margin: 1rem 0 0.75rem 0;
    font-size: 0.85rem;
    color: #666666;
    text-align: center;
}

@media (max-width: 760px) {
    .abfallkalender-popup__dialog {
        padding: 1.25rem 1.15rem;
    }

    .abfallkalender-popup__title {
        font-size: 1.15rem !important;
    }
}

.abfallkalender-popup__apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}

.abfallkalender-popup__app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
}

.abfallkalender-popup__qr {
    width: 140px;
    height: 140px;
}

.abfallkalender-popup__app-title {
    font-weight: 700;
    color: #1a1a1a;
}

.abfallkalender-popup__badge {
    display: inline-block;
    line-height: 0;
}

.abfallkalender-popup__badge img {
    height: 40px;
    width: auto;
}

/* Google's PNG has transparent padding (29px of 250px top + bottom), so scale it up and cancel the padding */
.abfallkalender-popup__badge img[src*="google-play"] {
    height: 52px;
    margin: -6px 0;
}

/* QR codes are useless on the phone itself */
@media (max-width: 760px) {
    .abfallkalender-popup__qr {
        display: none;
    }

    .abfallkalender-popup__app {
        padding: 0.75rem;
    }
}
