.ushop-country-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 40px));max-width:none;height:min(760px,88dvh);max-height:90dvh;padding:0;border:1px solid #ddd;border-radius:16px;background:#fff;color:#202020;box-shadow:0 20px 70px #0003;font:16px/1.45 Arial,sans-serif;overflow:hidden}
.ushop-country-dialog[open]{display:flex;flex-direction:column}.ushop-country-dialog::backdrop{background:#10203099}
.ushop-country-dialog{position:fixed;inset:0;margin:auto}.ushop-country-dialog nav{max-height:112px;overflow:auto;overscroll-behavior:contain}.ushop-country-dialog .uc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ushop-country-dialog .uc-option>span:first-child{min-width:0;overflow-wrap:anywhere}
.ushop-country-dialog *{box-sizing:border-box}.ushop-country-dialog header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #eee;gap:12px;flex-shrink:0}
.ushop-country-dialog h2{font:700 21px/1.4 Arial,sans-serif;margin:0}.ushop-country-dialog h2 span{display:block;font-size:14px;font-weight:400;color:#666}
.ushop-country-dialog button{font:inherit;cursor:pointer}.ushop-country-dialog [data-close]{width:44px;height:44px;border:0;border-radius:50%;background:#f2f3f4;font-size:28px;flex-shrink:0}
.ushop-country-dialog .uc-search{padding:16px 24px 8px;flex-shrink:0}.uc-search label{display:block;font-size:13px;margin-bottom:6px}.ushop-country-dialog input{width:100%;height:48px;border:1px solid #aaa;border-radius:8px;padding:10px 12px;font:16px Arial,sans-serif;color:#202020;background:#fff}.uc-search p{font-size:12px;color:#666;margin:8px 0 0}
.ushop-country-dialog nav{display:flex;flex-wrap:wrap;gap:4px;padding:8px 24px 12px;border-bottom:1px solid #eee;flex-shrink:0}.ushop-country-dialog nav button{min-width:32px;min-height:36px;padding:4px 8px;background:#f2f3f4;border:0;border-radius:5px;color:#333}
.ushop-country-dialog .uc-results{overflow:auto;overscroll-behavior:contain;padding:0 24px 24px;flex:1;min-height:0;position:relative}.uc-results section{margin:0;padding:0}.uc-results h3{position:sticky;top:0;margin:0;padding:12px 0 8px;background:#fff;font-size:14px;z-index:1}.uc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ushop-country-dialog .uc-option{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;padding:12px;min-height:66px;border:1px solid #e1e3e5;border-radius:8px;background:#fff;color:#202020}.uc-option strong{display:block;font-size:15px;font-weight:500}.uc-option small{display:block;font-size:12px;color:#666}.uc-dial{white-space:nowrap;color:#333}.ushop-country-dialog .uc-option:hover{background:#f4f7fa}.ushop-country-dialog .is-selected{border-color:#234e70;background:#edf4fa}.ushop-country-dialog :focus-visible{outline:3px solid #2879ba;outline-offset:2px}
@media(max-width:600px){.ushop-country-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.ushop-country-dialog header{padding:calc(12px + env(safe-area-inset-top)) 16px 12px}.ushop-country-dialog .uc-search{padding:12px 16px 4px}.ushop-country-dialog nav{padding:8px 16px;gap:3px}.ushop-country-dialog nav button{min-width:34px;min-height:40px}.ushop-country-dialog .uc-results{padding:0 16px calc(20px + env(safe-area-inset-bottom))}.uc-grid{grid-template-columns:1fr}.ushop-country-dialog .uc-option{min-height:64px}}
@media(max-width:600px){.ushop-country-dialog .uc-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-height:600px){.ushop-country-dialog header{padding:8px 16px}.ushop-country-dialog .uc-search{padding:8px 16px 4px}.ushop-country-dialog nav{max-height:64px;padding:4px 16px}.ushop-country-dialog h2 span{display:none}}
