/* Mr.ガジェット — Web Push subscribe button (10.7.0 / Χ.D2) */

.mg-web-push-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    padding: 10px 16px;
    background: var(--mg-color-primary, var(--mg-wp-link));
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, opacity 0.15s;
}

.mg-web-push-button:hover:not(:disabled) {
    background: var(--mg-color-primary-hover, #005d8a);
    transform: translateY(-1px);
}

.mg-web-push-button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.mg-web-push-button[data-state="granted"] {
    background: var(--mg-color-success, var(--mg-tw-green-600));
}

.mg-web-push-button[data-state="granted"]:hover {
    background: var(--mg-color-success-hover, #15803d);
}

.mg-web-push-button[data-state="denied"] {
    background: var(--mg-color-error, var(--mg-tw-red-500));
    cursor: help;
}

.mg-web-push-button[data-state="error"] {
    background: var(--mg-color-warning, #d97706);
}

/* Mobile: 中央寄せ */
@media (max-width: 600px) {
    .mg-web-push-button {
        right: 50%;
        transform: translateX(50%);
    }
    .mg-web-push-button:hover:not(:disabled) {
        transform: translateX(50%) translateY(-1px);
    }
}
