.trial { position: relative; }
html.trial-success-open { overflow: hidden; }
.area-menu { position: relative; flex: 0 0 66px; margin-right: 8px; }
.area-menu select[hidden] { display: none; }
.area-trigger { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 0 2px; border: 0; background: none; color: #16181b; font: inherit; font-size: 15px; cursor: pointer; }
.area-trigger::after { content: ''; width: 6px; height: 6px; border: solid #bfc2c7; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.area-trigger[aria-expanded=true]::after { transform: rotate(225deg) translate(-2px, -1px); }
.area-trigger:focus-visible, .area-list:focus-visible { outline: 2px solid #409eff; outline-offset: 2px; border-radius: 5px; }
.area-panel { position: absolute; top: calc(100% + 6px); left: 14px; width: 240px; max-width: calc(100vw - 72px); z-index: 20; padding: 4px 0; border: 1px solid #ebeef5; border-radius: 8px; background: #fff; box-shadow: 0 2px 12px #0000001a; }
.area-panel::before { content: ''; position: absolute; top: -6px; left: 15px; width: 10px; height: 10px; background: #fff; border: solid #ebeef5; border-width: 1px 0 0 1px; transform: rotate(45deg); }
.area-list { position: relative; max-height: min(230px, 40vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; color: #303133; text-align: left; }
.area-group { padding: 4px 16px; font-size: 12px; line-height: 22px; color: #909399; }
.area-option { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 38px; padding: 8px 16px; font-size: 12px; line-height: 1.4; cursor: pointer; }
.area-option span:first-child { min-width: 0; overflow-wrap: anywhere; }
.area-option span:last-child { flex-shrink: 0; }
.area-option[aria-selected=true] { color: #409eff; }
.area-option:hover, .area-option.is-active { background: #f5f7fa; }
.trial-toast { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 30; width: max-content; max-width: calc(100% - 32px); padding: 15px 16px; border-radius: 10px; background: #68696bcc; color: #fff; font-size: 14px; font-weight: 400; line-height: 18px; text-align: center; pointer-events: none; }
.trial-toast[hidden], .area-panel[hidden] { display: none; }
#trial-success-dialog { box-sizing: border-box; width: 420px; max-width: calc(100vw - 32px); height: 340px; max-height: calc(100dvh - 32px); margin: auto; padding: 74px 20px 40px; border: 0; border-radius: 24px; background: #fff; color: #000; box-shadow: none; text-align: center; }
#trial-success-dialog::backdrop { background: rgb(0 0 0 / 60%); }
#trial-success-dialog .close-dialog { top: 18px; right: 18px; width: 36px; height: 36px; padding: 0; color: #c2c5c9; font: 36px/1 Arial, sans-serif; cursor: pointer; }
.trial-success-icon { display: block; width: 88px; height: 88px; margin: 0 auto 30px; }
#trial-success-dialog h2 { margin: 0 0 5px; font-size: 28px; line-height: 1.4; font-weight: 500; }
#trial-success-dialog p { margin: 0; font-size: 20px; line-height: 1.5; color: #9699a2; }
@media (max-width: 480px) {
 #gift-dialog { box-sizing: border-box; width: calc(100vw - 32px); max-width: 380px; padding: 24px 12px; }
 #gift-dialog .trial { box-sizing: border-box; width: 100%; padding: 20px 12px; }
 .area-panel { left: 0; }
}
@media (max-height: 400px) {
 #trial-success-dialog { height: 290px; padding-top: 40px; }
 .trial-success-icon { margin-bottom: 15px; }
}
