.bma-am{position:relative;max-width:1280px;margin:0 auto;font-family:inherit}
.bma-am-search{max-width:520px;margin:0 auto 24px;text-align:center}
.bma-am-heading{margin:0 0 14px;font-size:18px;font-weight:700}
.bma-am-field{position:relative;text-align:left}
.bma-am-ico{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#555;pointer-events:none}
.bma-am-input{width:100%;box-sizing:border-box;padding:12px 14px 12px 42px;border:1px solid #bdbdbd;border-radius:4px;font-size:15px;background:#fff;color:#222;height:auto}
.bma-am-input:focus{outline:2px solid var(--bma-agent);outline-offset:0;border-color:var(--bma-agent)}
.bma-am-results{position:absolute;z-index:30;left:0;right:0;top:100%;margin:2px 0 0;padding:0;list-style:none;background:#fff;border:1px solid #ccc;border-radius:4px;max-height:260px;overflow:auto;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.bma-am-results[hidden]{display:none}
.bma-am-results li{padding:10px 14px;cursor:pointer;display:flex;justify-content:space-between;gap:10px}
.bma-am-results li.is-active,.bma-am-results li:hover{background:#e8f4fb}
.bma-am-results li small{color:#777}
.bma-am-results li.bma-am-none{cursor:default;color:#777}
.bma-am-mapwrap{position:relative}
.bma-am-map{width:100%}

/* region colours (CSS wins over the SVG fill attribute) */
.bma-am .jvm-region{transition:fill .15s}
.bma-am path[data-code].bma-has-agent{fill:var(--bma-agent)!important;cursor:pointer}
.bma-am path[data-code].bma-has-agent:hover{fill:var(--bma-hover)!important}
.bma-am path[data-code].bma-active{fill:var(--bma-active)!important}
.bma-am path[data-code]{cursor:pointer}

/* popup card */
.bma-am-card{position:absolute;z-index:20;width:340px;max-width:calc(100% - 16px);max-height:90%;overflow:auto;box-sizing:border-box;background:#fff;border-radius:6px;padding:18px 20px 16px;box-shadow:0 8px 28px rgba(0,0,0,.22);font-size:14px;line-height:1.7;color:#222}
.bma-am-card[hidden]{display:none}
.bma-am-close{position:absolute;top:6px;right:8px;border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:#555;padding:4px 8px}
.bma-am-close:hover{color:#000}
.bma-am-country{margin:0 28px 6px 0;font-size:22px;font-weight:700}
.bma-am-agent+.bma-am-agent{margin-top:14px;padding-top:14px;border-top:1px solid #e3e3e3}
.bma-am-agent h4{margin:0 0 8px;font-size:17px;font-weight:700}
.bma-am-row{display:flex;gap:10px;align-items:flex-start;margin:6px 0;word-break:break-word}
.bma-am-row svg{flex:0 0 18px;margin-top:4px;color:var(--bma-agent)}
.bma-am-row a{color:inherit;text-decoration:none}
.bma-am-row a:hover{color:var(--bma-agent);text-decoration:underline}
.bma-am-extra{margin-top:8px;font-size:14px}
.bma-am-extra p{margin:0 0 .6em}
.bma-am-noagent{margin:0}

@media (max-width:600px){
	.bma-am-card{position:static!important;width:auto;max-width:none;max-height:none;margin-top:12px;box-shadow:0 2px 12px rgba(0,0,0,.15)}
}

.bma-am-sub{margin-top:10px;padding-top:10px;border-top:1px dashed #d5d5d5}
.bma-am-sub h5{margin:0 0 4px;font-size:15px;font-weight:600}

.bma-am-agent::after{content:"";display:table;clear:both}
.bma-am-logo{float:right;max-width:90px;max-height:50px;width:auto;height:auto;margin:0 0 6px 12px;object-fit:contain}

.bma-am,.bma-am-mapwrap,.bma-am-map{width:100%;box-sizing:border-box}
.bma-am-map{min-height:250px}

/* Divi / theme overrides: themes style every <input>, so lock our search box */
.bma-am .bma-am-field input.bma-am-input{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:12px 14px 12px 44px!important;height:auto!important;min-height:46px!important;line-height:1.4!important;font-size:15px!important;border:1px solid #bdbdbd!important;border-radius:4px!important;background:#fff!important;color:#222!important;margin:0!important}
.bma-am .bma-am-field .bma-am-ico{z-index:2;left:15px}
.bma-am .bma-am-results li{margin:0;list-style:none}

/* small countries / territories without a shape on the world map: drawn as a highlighted territory */
.bma-am path.bma-pt-shape{fill:var(--bma-agent);stroke:#fff;stroke-width:.6;cursor:pointer;transition:fill .15s}
.bma-am path.bma-pt-shape:hover{fill:var(--bma-hover)}
.bma-am path.bma-pt-shape.bma-active{fill:var(--bma-active)}
.bma-am path.bma-pt-shape.bma-pt-none{display:none}
.bma-am path.bma-pt-shape.bma-pt-none.bma-active{display:inline;fill:var(--bma-active)}

/* keep borders thin at every zoom level */
.bma-am path[data-code],.bma-am path.bma-pt-shape{vector-effect:non-scaling-stroke}
.bma-am path.bma-pt-shape{stroke-width:1px}
