.mpfy-admin-shell .cl { display: block; float: none; height: 0px; font-size: 0px; line-height: 0px; text-indent: -4000px; clear: both; }

.mpfy-admin-shell form table td,
.mpfy-admin-shell form table th { text-align: left; vertical-align: top; }

.mpfy-admin-shell form table .mpfy-label { width: 220px; }
.mpfy-admin-shell form table .mpfy-field {  }

.mpfy-admin-shell form table .mpfy-field input { width: 200px; }
.mpfy-admin-loading { display: inline-block; width: 32px; height: 32px; background: url(images/ajax-loader.gif) no-repeat 0 0; }

.mpfy-progressbar { position: relative; height: 20px; border: 1px solid #23282d; border-radius: 3px; }
.mpfy-progressbar .mpfy-progressbar-progress {
	display: block;
	height: 20px;
	width: 0%;
	transition: width 0.4s;

	background: #23282d; /* Old browsers */
	background: -moz-linear-gradient(top,  #565656 0%, #23282d 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #565656 0%,#23282d 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #565656 0%,#23282d 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#565656', endColorstr='#23282d',GradientType=0 ); /* IE6-9 */
}
.mpfy-progressbar .mpfy-progressbar-label { position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; color: #FFFFFF; text-shadow: 1px 1px #000000; font-size: 14px; line-height: 20px; text-indent: 5px; }

.postbox-container .mpfy-carbon-container.mpsmr_Carbon_Container_CustomFields th { padding: 20px 0; }
.postbox-container .mpfy-carbon-container.mpsmr_Carbon_Container_CustomFields td { padding: 14px 15px 17px 15px; }
.mpfy-carbon-container td label em { font-weight: normal; display: inline; }
.mpfy-carbon-container td label { padding-bottom: 5px; }

.mpfy-flex,
.mpfy-flex * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

.mpfy-flex { display: flex; justify-content: space-between; }
.mpfy-flex .mpfy-flex-column { border: 1px solid #dddddd; border-radius: 3px; padding: 15px; }
.mpfy-flex .mpfy-flex-column .mpfy-flex-column-contents {  }

.mpfy-carbon-map-mpfy .mpfy-carbon-map-canvas { width: auto; max-width: none; }

.address-search-btn { display: none!important; }



/* === MapSamurai Lite Upgrade Banner === */
.mapsamurai-lite-upgrade-banner {
    border-left: 4px solid #4bb1cc;
    background-color: #fffc;
    padding: 15px 20px 10px;
    margin: 20px 0;
    font-family: "Segoe UI", sans-serif;
}

.mapsamurai-lite-upgrade-banner p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #222;
}

.mapsamurai-lite-upgrade-banner ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 12px;
    padding-left: 0;
}

.mapsamurai-lite-upgrade-banner li {
    margin-bottom: 5px;
    font-size: 14px;
}

.mapsamurai-lite-upgrade-banner .button-primary {
    background-color: #3a6fac;
    border-color: #3a6fac;
    font-weight: 600;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mapsamurai-lite-upgrade-banner .button-primary {
    background-color: #4bb1cc; /* Change to your desired base color */
    font-weight: 600;
    padding: 4px 12px 4px 12px;
    border: none;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mapsamurai-lite-upgrade-banner .button-primary:hover {
    background-color: #299cba; /* Slightly darker hover version */
     border: none;
}



img[src$=".svg"] {
    max-width: 50px !important;
    width: 50px !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-block;
}

body.post-type-map_location .mpfy-flex,
body.post-type-map .mpfy-flex {
  display: block !important;
  flex-direction: initial !important;
  justify-content: initial !important;
}

add_action('admin_footer', function () {
    ?>
    <style>
        .mpfy-flex {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 20px;
        }
        .mpfy-flex-column {
            flex: 1 1 45%;
            min-width: 300px;
            box-sizing: border-box;
        }
    </style>
    <?php
});

