/* Rewarded ad modal — works on all themes without Tailwind */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 1rem;
    box-sizing: border-box;
}

.modal[data-type] {
    display: block;
}

.modalDialog {
    box-sizing: border-box;
    margin: auto;
    padding: 1.5rem;
    background-color: #fff;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 28rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.reward-modal__title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.reward-modal__message {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.reward-modal__card {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    text-align: left;
}

.reward-modal__card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.reward-modal__card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
}

.reward-modal__card-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.reward-modal__play-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-modal__play-icon svg {
    width: 1rem;
    height: 1rem;
    color: #fff;
}

#watchAdButton {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.reward-modal__dismiss {
    margin-top: 1rem;
}

#noRewardButton {
    font-size: 0.875rem;
    color: #6b7280;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

#noRewardButton:hover {
    color: #374151;
}
