
.wpm-wrapper { display: flex; align-items: center; justify-content: end; position: relative; vertical-align: middle; } .mobile .wpm-wrapper { justify-content: start; } .wpm-wrapper *, .wpm-wrapper *::before, .wpm-wrapper *::after { box-sizing: border-box; } .wpm-triggers { display: inline-flex; gap: 6px; align-items: center; } .wpm-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s, transform 0.15s; } .wpm-trigger:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); } .wpm-trigger-icon { display: flex; align-items: center; flex-shrink: 0; } .wpm-trigger-loc-icon { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; display: block; } .wpm-trigger-fi.fi { width: 20px !important; height: 20px !important; background-size: cover !important; background-position: center !important; border-radius: 50%; display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); } .wpm-overlay { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(10,14,26,0.55); align-items: center; justify-content: center; padding: 20px; } .wpm-overlay::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; z-index: -1; } .wpm-overlay.wpm-open { display: flex !important; animation: wpm-fade-in 0.22s ease both; } body.wpm-modal-open { overflow: hidden !important; } @keyframes wpm-fade-in { from { opacity: 0; } to { opacity: 1; } } .wpm-modal { position: relative; width: 100%; max-width: 680px; max-height: 88vh; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 24px 80px rgba(0,0,0,0.28); display: flex; flex-direction: column; animation: wpm-slide-up 0.28s cubic-bezier(0.34,1.56,0.64,1) both; } @keyframes wpm-slide-up { from { opacity: 0; transform: translateY(24px) scale(0.96); } to   { opacity: 1; transform: translateY(0) scale(1); } } .wpm-modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; flex-shrink: 0; } .wpm-head-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.12); border-radius: 10px; flex-shrink: 0; } .wpm-head-icon svg { display: block; } .wpm-head-title { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; } .wpm-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: rgba(255,255,255,0.8); cursor: pointer; flex-shrink: 0; transition: background 0.2s, transform 0.2s, color 0.2s; } .wpm-close:hover { background: rgba(255,255,255,0.22); color: #fff; transform: rotate(90deg); } .wpm-modal-body { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; } .wpm-modal-body::-webkit-scrollbar { width: 4px; } .wpm-modal-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; } .wpm-panel { display: none; padding: 24px; } .wpm-panel.wpm-panel-active { display: block; } .wpm-empty { text-align: center; color: #94a3b8; padding: 32px 0; font-size: 14px; } .wpm-lang-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; } .wpm-lang-item { margin: 0; } .wpm-lang-link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 20px; min-width: 90px; border: 2px solid #e2e8f0; border-radius: 14px; text-decoration: none; color: #334155; font-size: 13px; font-weight: 500; transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s; } .wpm-lang-link:hover { border-color: #6366f1; background: #f5f3ff; color: #4338ca; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(99,102,241,0.15); text-decoration: none; } .wpm-lang-item.wpm-active .wpm-lang-link { border-color: #6366f1; background: #f5f3ff; color: #4338ca; box-shadow: 0 4px 14px rgba(99,102,241,0.15); } .wpm-lang-item.wpm-active .wpm-lang-flag { border-color: #6366f1; } .wpm-lang-flag { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid #e2e8f0; background: #f8fafc; display: flex; align-items: center; justify-content: center; } .wpm-lang-flag .fi { width: 42px !important; height: 42px !important; background-size: cover !important; background-position: center !important; border-radius: 0; display: block; flex-shrink: 0; } .wpm-loc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .wpm-loc-item { margin: 0; } .wpm-loc-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px; cursor: pointer; text-align: left; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; } .wpm-loc-btn:hover { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 2px 10px rgba(59,130,246,0.12); } .wpm-loc-item.wpm-active .wpm-loc-btn { border-color: #3b82f6; background: #eff6ff; } .wpm-loc-icon { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid #dbeafe; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; } .wpm-loc-icon img { width: 100%; height: 100%; object-fit: cover; } .wpm-loc-label { flex: 1; font-size: 14px; font-weight: 600; color: #1e293b; } .wpm-loc-check { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: #3b82f6; border-radius: 50%; color: #fff; flex-shrink: 0; } .wpm-loc-btn.wpm-loading { opacity: 0.6; pointer-events: none; } .wpm-loc-btn.wpm-loading::after { content: ''; display: block; width: 26px; height: 26px; margin-left: auto; border: 2px solid #bfdbfe; border-top-color: #3b82f6; border-radius: 50%; animation: wpm-spin 0.7s linear infinite; } @keyframes wpm-spin { to { transform: rotate(360deg); } } .wpm-cur-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; } .wpm-cur-item { margin: 0; flex: 0 1 150px; } .wpm-cur-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px; min-width: 80px; border: 2px solid #e2e8f0; border-radius: 14px; text-decoration: none; color: #334155; transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s; } .wpm-cur-link:hover { border-color: #f59e0b; background: #fffbeb; color: #92400e; transform: translateY(-2px); text-decoration: none; box-shadow: 0 4px 14px rgba(245,158,11,0.18); } .wpm-cur-item.wpm-active .wpm-cur-link { border-color: #f59e0b; background: #fffbeb; color: #92400e; } .wpm-cur-fi.fi { width: 42px !important; height: 42px !important; background-size: cover !important; background-position: center !important; border-radius: 50%; display: block; flex-shrink: 0; box-shadow: 0 0 0 2px #e2e8f0; } .wpm-cur-item.wpm-active .wpm-cur-fi.fi, .wpm-cur-link:hover .wpm-cur-fi.fi { box-shadow: 0 0 0 2px #f59e0b; } .wpm-cur-code { font-size: 13px; font-weight: 700; line-height: 1; } .wpm-cur-name { font-size: 11px; color: #64748b; line-height: 1; text-align: center; } @media (max-width: 520px) { .wpm-modal { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 82vh; } .wpm-overlay { align-items: flex-end; padding: 0; } @keyframes wpm-slide-up { from { opacity: 0; transform: translateY(100%); } to   { opacity: 1; transform: translateY(0); } } .wpm-trigger-label { display: none; } .wpm-trigger { padding: 8px; } } #wpm-switching-overlay { display: none; position: fixed; inset: 0; z-index: 999999; background: rgba(10,14,26,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-items: center; justify-content: center; } .wpm-switching-box { background: #fff; border-radius: 16px; padding: 32px 40px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.22); min-width: 200px; animation: wpm-slide-up 0.25s cubic-bezier(0.34,1.56,0.64,1) both; } .wpm-switching-spin { width: 44px; height: 44px; margin: 0 auto 16px; border: 3px solid #dbeafe; border-top-color: #3b82f6; border-radius: 50%; animation: wpm-spin 0.75s linear infinite; } .wpm-switching-msg { font-size: 15px; font-weight: 500; color: #1e293b; }