/* v1.2.2: isolated address patch, does not override Noto Sans */
.address-group{margin-top:14px;padding:14px;border:1px solid #e6dff0;border-radius:12px;background:#fcfbff}
.address-group[hidden]{display:none!important}
.address-group h4{font-size:1rem;margin:0 0 14px;color:#3e276b}
.address-search-row{display:flex;gap:8px;align-items:stretch}
.address-search-row input{flex:1;min-width:0}
.address-search-row button{white-space:nowrap;padding:0 14px;min-height:44px}
.address-group input[readonly]{background:#f8f6fc;cursor:default}
.address-group .fields{margin-top:8px}
@media(max-width:520px){.address-group{padding:12px}.address-search-row button{padding:0 10px}}

/* v1.2.3: full-width responsive embedded Daum/Kakao postcode widget */
body.sh4-postcode-open{overflow:hidden}
.sh4-postcode-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(18,13,34,.65)}
.sh4-postcode-dialog{width:min(100%,560px);height:min(760px,calc(100vh - 32px));height:min(760px,calc(100dvh - 32px));min-height:320px;display:flex;flex-direction:column;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 20px 70px rgba(0,0,0,.24)}
.sh4-postcode-header{display:flex;justify-content:space-between;align-items:center;flex:0 0 auto;gap:12px;padding:12px 16px;border-bottom:1px solid #ded7e8;color:#342053}
.sh4-postcode-close{min-height:40px;padding:5px 14px;border-radius:8px;border:1px solid #c5b6da;background:#fff;color:#342053;cursor:pointer}
.sh4-postcode-close:focus-visible{outline:3px solid #7659b6;outline-offset:2px}
.sh4-postcode-embed{flex:1;min-height:0;width:100%;overflow:auto}
@media(max-width:600px){.sh4-postcode-overlay{padding:0}.sh4-postcode-dialog{width:100%;height:100vh;height:100dvh;max-height:none;border-radius:0}}

/* v1.2.5: keep embedded Kakao iframe within the modal at full size */
.sh4-postcode-embed>iframe{display:block;width:100%!important;height:100%!important;max-width:100%;border:0}

/* v1.2.7: match dialog width to Kakao's practical input layout; fix iframe dimensions */
.sh4-postcode-dialog {width:min(100%,420px)}
.sh4-postcode-embed {position:relative;min-height:400px;overflow:hidden}
.sh4-postcode-embed > iframe {position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border:0!important}
@media(max-width:600px){.sh4-postcode-dialog{width:100%}.sh4-postcode-embed{min-height:0}}

/* v1.2.8: align modal edge to Kakao's native scrolling viewport.
   Cross-origin iframe internals cannot be styled from the host page. */
@media (min-width: 601px) {
 .sh4-postcode-dialog { width: min(380px, calc(100vw - 24px)) !important; }
 .sh4-postcode-embed { overflow: hidden !important; }
}
@media (max-width: 600px) {
 .sh4-postcode-dialog { width:100% !important; }
}
