/* 会員側の共通通知（customer/js/notice.js）。画面ごとに再定義しないこと */

.app-notice-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    /* フッターメニューの上に出す */
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(560px, calc(100vw - 32px));
    pointer-events: none;
}

.app-notice {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-size: 15px;
    line-height: 1.5;
    opacity: 1;
    transition: opacity .2s ease, transform .2s ease;
}

.app-notice.is-leaving {
    opacity: 0;
    transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
    .app-notice { transition: opacity .2s ease; }
    .app-notice.is-leaving { transform: none; }
}

/* 白 × #333f4d = 10.72:1 */
.app-notice--info {
    background: #333f4d;
    color: #ffffff;
}

/* 白 × #a3161f = 7.80:1 */
.app-notice--error {
    background: #a3161f;
    color: #ffffff;
}

.app-notice-text {
    flex: 1;
    /* 補助テキスト扱いにせず本文と同じ可読性を保つ */
    word-break: break-word;
}

.app-notice-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.app-notice-close:hover,
.app-notice-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.app-notice-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 1px;
}
