.ai-merchant {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: system-ui, "Microsoft JhengHei", sans-serif;
}
.ai-merchant main { flex: 1; min-height: 0; }
.ai-profile { flex: none; background: #fff8f1; color: #253247; border-bottom: 1px solid #e9d9ca; }
.ai-profile details { max-width: 68rem; margin: auto; padding: 0 1rem; }
.ai-profile summary { padding: .45rem 0; cursor: pointer; }
.ai-profile h1 { display: inline; font-size: 1rem; }
.ai-profile span { font-size: .85rem; color: #674b36; }
.ai-profile p { margin: 0 0 .65rem; line-height: 1.5; overflow-wrap: anywhere; }
.ai-merchant main > iframe { display: block; border: 0; width: 100%; height: 100%; }
.ai-merchant .go-notice:not([data-ai-popup]) {
    position: relative;
    inset: auto;
    flex: none;
    width: min(100%, 680px);
    margin: 0 auto;
}
.ai-merchant .go-notice[data-ai-popup] { width: fit-content; max-width: min(340px, calc(100% - 24px)); }
.ai-merchant .go-notice[data-ai-popup]:has([aria-expanded="true"]) { width: min(340px, calc(100% - 24px)); }
.ai-merchant [data-ai-popup] .go-notice-content img { max-height: 28dvh; object-fit: contain; }
@media (max-width: 767px) {
    .ai-merchant .go-notice[data-ai-popup] { bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .ai-merchant [data-ai-popup] .go-notice-content { max-height: 38dvh; }
}
