/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.worldmap-fullwidth-container {
    width: 100%;
    background-color: #FFFFFF;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
}

.worldmap-fullwidth-container h1 {
    margin: 0 0 30px 0;
}

.header-container {
    width:100%;
    max-width: 1180px;
    background-color: #FFFFFF;
}

.controls-container {
    width:100%;
    max-width: 1400px;
    background-color: #FFFFFF;
}

.worldmap-container {
    width: 100%;
    position: relative;
}

.worldmap-intro-text {
    margin-bottom: 1.5rem;
    font-size: 18px;
}

#worldmap {
    width: 100%;
    height: 900px;
    max-height: 60vh;
}

#worldmap.iframe-embed {
    max-height: 40vh;
}

@media (max-width: 768px) {
    #worldmap {
        height: 400px;
    }
}

.ampopup-header {
    background-color: rgba(51, 101, 138, 0.7) !important;
}

.pieChartPopup {
    margin-top: 20px;
    width: 50%;
    height: 400px;
}

/* select2 filters */

.worldmap-filters .select2 {
    width: 100% !important;
    border-radius: 0;
}

.worldmap-filters input {
    width: 100%;
}

.worldmap-filters .worldmap-search-field {
    border-radius: 4px;
    font-family: VialogLT-Regular;
    font-size: 16px;
    line-height: 22px;
    padding-left: 5px;
    height: 42px;
}

.worldmap-filters .search-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}
.worldmap-filters .search-wrap:after {
    font-family: 'Font Awesome\ 5 Pro';
    font-weight: 900;
    content: '\f002';
    position: absolute;
    right: 6px;
    line-height: 41px;
    font-size: 22px;
    color: var(--coeDarkBlue);
}

.worldmap-filter-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    min-height: 100px;
}
.worldmap-filter-col {
    max-width: 25%;
    flex: 25%;
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}
@media (max-width: 768px) {
    .worldmap-filter-col {
        max-width: 100%;
        flex: 100%;
    }
}

.worldmap-filters .select2 {
    margin-bottom: 15px;
    position: relative;
}

.worldmap-filters .select2.select2-container .select2-search__field {
    font-size: 16px;
    line-height: 30px;
    height: 30px;
}

.worldmap-filters .select2.select2-container .select2-search__field:-ms-input-placeholder {
    font-size: 16px;
    line-height: 30px;
}

.worldmap-filters .select2.select2-container:after {
    position: absolute;
    content: " ";
    height: 15px;
    width: 15px;
    bottom: 13px;
    right: 10px;
    z-index: 99;
    background-color: transparent;
    background-size: contain;
    display: block;
    cursor: pointer;
    pointer-events: none;
    background-image: url('/wp-content/themes/insuresilience-child/assets/img/dropdown.svg');
    background-repeat: no-repeat;
}

.worldmap-filters .select2-dropdown .select2-results__option {
    font-size: 16px;
    line-height: 30px;
}

.worldmap-filters .select2.select2-container .select2-selection--multiple .select2-selection__choice {
    font-size: 12px;
    line-height: 20px;
    max-width: 85%;
    word-break: break-word;
    word-wrap: break-word !important;
    text-overflow: inherit !important;
    white-space: normal !important;
}

.worldmap-filters .select2.select2-container .select2-selection__rendered{
    padding-right: 20px;
}

.select2-container--default .select2-results > .select2-results__options {
    font-size: 14px;
    line-height: 20px;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-top: 0;
    margin-right: 0;
    position: absolute;
    right: 25px;
    top: 6px;
}

.worldmap-filters .insuresilience-button {
    margin-bottom: 15px;
    width: 100%;
    border: none;
    outline: none;
    padding: 10px;
    height: 40px;
    text-transform: uppercase;
    margin-right: 10px;
    font-size: 16px;
    padding-right: 50px;
    cursor: pointer;
}

.worldmap-filters .insuresilience-button-primary {
    background-image: url('../img/arrow-right.svg');
    background-repeat: no-repeat;
    background-position: 95%;
    background-size: 30px 30px;
    color: white;
    background-color: #006070;
}

.worldmap-filters .insuresilience-button-primary:hover {
    background-color: #008799;
}

/* popup */
.ampopup-curtain {
    background-color: #878787 !important;
}

.ampopup-header {
    height: 0px;
    max-height: 0px !important;
    min-height: 0 !important;
}

.ampopup-content {
    padding: 30px;
    background-color: #fcfcfc !important;
    border-radius: 10px;
    -webkit-box-shadow: 2px 2px 11px 3px rgba(0,0,0,0.56);
    box-shadow: 2px 2px 11px 3px rgba(0,0,0,0.56);
    max-width: 800px !important;
    width: 90% !important;
}

.ampopup-close {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAGkklEQVRYR82Ye0xTVxzHvz2UrkFiGmKUITFdeNixDJlTx4wu+AgzzCkuZsMZ5Q4fqRQUZww6YxgxiswsggpuA8dFI4rzgc5szExljigTH50aUhE3VIaNIaQhrKu1vV1Oy+16b+/tA9yy++c95/zO5/x+5/c6CvzPP8VI+bRMfqwKRMMBsUJZTpsSLrMNaks3W2EZ7j7DAkxmCnSAU8dBoSOEqINt7uKcZhciTA4ojeHChgWoZVbrlIicR4hCEwxKdpxzGu14oSVU0JAAtUyRJhL2bAUh2mGDiRZyHFq62H0tweQFBaR3TAkwoZgy2GbicSfnMjnxZ1M3y9rk1gYETGLy0xSEZAfaOFqtxrSJCXh5Qrxg2oDVhva7nTD1PA7ITe/nM/zFykHKAtL7piKqHDnpU5ISkJuZgczJaQEBevr60GbqQtmRExi0SSsqEKQkYCCzxsVoULZiGdJ1yWFZdMBqBXvuAqq+/UFyHTX3fbbqqHjQD1DLMGolRumlPFUX/yIOFRdhdFRUWHC+k9tMnTDsrZHUppPj2u6z1c2+8/0AE5mCDEKQISaYPekV7F+rHzaY78KOhz1YVl4pCWnnlBW+IUgASMOJEna92GOfh+bEJ6OazN211//AHIyd7L4mfkAAmMwUZINAcOupl54uLUb8mDHPRXu+QvY0nZW8k4RzsCb2i246VwCYyORvEmvP8O7bWJs93w9u0GrDtoZjOPvLdffYklkzUfTefNAD0Y96bAnbgObrv4IQgqWzZuLjxQugUiq9sqjjLCwpQ2+/MFX73kUvoI7RazmiZHxJ6GYXd5XKOsUF4x1srT+CvoEBjFarUWlYgekpOreI1jsmbKipg2XQipQJ47F7TR60Y8f6HfR4axu21B0W/Oc4l6WLraoQaDCByZ8XQUi678zsN6eifOVyWdPaHQ7sPHoShy/+7J6TNfU1bGM+RJRKhXXVtTh38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ATx+0R44kUTniQjaQM9C7KveCILVO7BQha9B3olS3F47HSs2ld07JcUf57k1OXtDXLX4h9W4HicgmGMHbIC+Mg9EOZUhvhCED8rLpi5eLKDKGA+p5botsDvXxku4ZNiAP6nmFeKpTEIXOBYVGCtgFmBUczC5w3c9gNQV6BxyxiUO9c9SxhgPynwGGepBQ5/0N02HmR97gv9gAAAAASUVORK5CYII=) center center / 100% no-repeat transparent !important;
    width: 40px !important;
    height: 40px !important;
    top: 18px !important;
    right: 18px !important;
}

.ampopup-close:hover {
    opacity: .5;
}

.ampopup-inside {
    padding: 0 !important;
}

.popup-country {
    color: #7f7f7f;
    font-family: 'VialogLT-Regular';
}

.popup-country a.link, .popup-country a.link:hover, .popup-country a.link:active, .popup-country a.link:visited {
    color: #26616b;
}

.popup-country a.link:hover {
    text-decoration: underline;
}

.popup-country a.link:after {
    position: absolute;
    padding-left:2px;
    content: "»";
    font-size: 25px;
    line-height: 23px;
}

.popup-country h3 {
    text-transform: uppercase;
    font-size: 27px;
    color: #26616b;
}

.popup-country .map-popup-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 1rem;
}

.popup-country .map-popup-description {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 1rem;
}

.popup-country .map-popup-facts-list {
    font-weight: 300;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    border-top: 2px solid #7f7f7f;
    border-bottom: 2px solid #7f7f7f;
    text-align: center;
}

.popup-country .map-popup-facts-list .facts-item {
    width: 20%;
    padding: 10px;
}

@media (max-width: 768px) {
    .popup-country .map-popup-facts-list .facts-item {
        width: 33%;
        padding: 10px;
    }
}

@media (max-width: 500px) {
    .popup-country .map-popup-facts-list .facts-item {
        width: 50%;
        padding: 10px;
    }
}

.popup-country .map-popup-facts-list .facts-item .facts-item-label {
    font-weight: 600;
    margin-bottom: 5px;
}

.popup-country .map-popup-facts-list .facts-item .facts-item-content span {
    display: block;
    margin-bottom: 5px;
}
.popup-country .map-popup-facts-list .facts-item .facts-item-content .facts-item-secondary {
    font-weight: 600;
}

.popup-country .risk-continuum {
    width: auto;
    max-width: 100%;
    margin: 1rem 0;
}

.popup-country .risk-continuum .risk-continuum-row {
    font-size: 14px;
}

.popup-country .risk-continuum .risk-continuum-col {
   padding: 8px;
}

.popup-country .risk-continuum .risk-continuum-label-col {
    width: 30%;
    text-overflow: ellipsis;
    font-size: 18px;
    font-weight: 400;
}

.popup-country .risk-continuum .risk-continuum-value-col {
    width: 100px;
    text-align: center;
}

.popup-country .risk-continuum .risk-continuum-row > td:nth-child(2) {
    border-right: 1px solid #bdbdbd;
}

.risk-continuum-box {
    display: block;
    height: 15px;
    width: 15px;
    border: 2px solid #f28502;
    margin: 0 auto;
    text-indent: -9999px;
}

@media (max-width: 500px) {
    .popup-country .risk-continuum .risk-continuum-label-col {
        font-size: 14px;
    }
    .popup-country .risk-continuum .risk-continuum-value-col {
        font-size: 10px;
    }
}

.risk-continuum-box.risk-continuum-checked {
    background-color: #f28502;
}

.risk-continuum-box.risk-continuum-notchecked {
    background-color: #ffffff;
}

/* legend */
.legend-container {
    width:100%;
    max-width: 1180px;
    background-color: #FFFFFF;
}

.worldmap-legend {
    font-size: 18px;
}

.worldmap-legend-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.worldmap-legend-left {
    margin-top: 41px;
}

.worldmap-legend-circle {
    height: 21px;
    width: 21px;
    border-radius: 50%;
    display: inline-block;
}

.worldmap-circle-primary-label {
    vertical-align: top;
    display: inline-block;
    max-width: 100px;
}

.worldmap-legend-circle.worldmap-legend-circle-primary {
    height: 40px;
    width: 40px;
    background-color: #00616f;
}

.worldmap-legend-spectrum .spectrum-row td {
    padding-bottom: 1rem;
    text-align: center;
}

.worldmap-legend-spectrum .spectrum-row td:nth-child(1) {
    width: 40%;
    text-align: initial;
}

.worldmap-legend-spectrum .spectrum-row td:nth-child(2) {
    width: 12%;
}
.worldmap-legend-spectrum .spectrum-row td:nth-child(3) {
    width: 12%;
}
.worldmap-legend-spectrum .spectrum-row td:nth-child(4) {
    width: 12%;
}
.worldmap-legend-spectrum .spectrum-row td:nth-child(5) {
    width: 12%;
}
.worldmap-legend-spectrum .spectrum-row td:nth-child(6) {
    width: 12%;
}

.worldmap-legend-spectrum .spectrum-1-circle {
    background-color: #00869a;
}

.worldmap-legend-spectrum .spectrum-2-circle {
    background-color: #f28502;
}

.worldmap-legend-spectrum .spectrum-3-circle {
    background-color: #c40046;
}

.worldmap-legend-spectrum .circle-1 {
    background-color: #00869a;
}

.worldmap-legend-spectrum .circle-2 {
    background-color: #1a92a4;
}

.worldmap-legend-spectrum .circle-3 {
    background-color: #40a4b3;
}

.worldmap-legend-spectrum .circle-4 {
    background-color: #73bdc8;
}

.worldmap-legend-spectrum .circle-5 {
    background-color: #99cfd7;
}

.worldmap-legend-circle-rest {
    background-color: #c6cecc;
}

.worldmap-legend-circle-rest2 {
    background-color: #4e5a57;
}

.worldmap-legend-right {
    margin-top: 41px;
}

@media (max-width: 767px) {
    .worldmap-legend-right {
        margin-top: 0;
    }
}

.worldmap-right-label {
    text-align: right;
    padding-bottom: 1rem;
    display: block;
}

/* loading overlay */

.loading-overlay {
    display: none;
    background: rgba(113,113,113,.5);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
}

.loading-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform: -webkit-translate(-50%, -50%);
    transform: -moz-translate(-50%, -50%);
    transform: -ms-translate(-50%, -50%);
    border: 16px solid #FFFFFF; /* White */
    border-top: 16px solid #006070; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.active {
    display: block !important;
}