/* 1) Cacher la barre et tout son wrapper */
html #wpadminbar,
html #wp-toolbar,
#wpadminbar,
#wp-toolbar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 2) Enlever toute marge ajoutée par WP ou le thème */
html.wp-toolbar, body.admin-bar, body.admin-bar .site, body.admin-bar #page {
  margin-top: 0 !important;
  padding-top: 0 !important;
  top: 0 !important;
}

/* 3) Forcer sur mobile aussi */
@media (max-width: 782px) {
  html #wpadminbar,
  html #wp-toolbar { display: none !important; height: 0 !important; max-height: 0 !important; }
  html.wp-toolbar, body.admin-bar { margin-top: 0 !important; padding-top: 0 !important; }
}

/* Masquer le metabox "Create product with AI" */
#custom_product_metabox { 
  display: none !important; 
}



#postdivrich {
  display: none !important;
}


#woocommerce_countdown {
  display: none !important;
}

<div id="woocommerce_videourl" class="postbox ">
<div class="postbox-header"><h2 class="hndle ui-sortable-handle">Video</h2>
<div class="handle-actions hide-if-no-js"><button type="button" class="handle-order-higher" aria-disabled="false" aria-describedby="woocommerce_videourl-handle-order-higher-description"><span class="screen-reader-text">Move up</span><span class="order-higher-indicator" aria-hidden="true"></span></button><span class="hidden" id="woocommerce_videourl-handle-order-higher-description">Move Video box up</span><button type="button" class="handle-order-lower" aria-disabled="false" aria-describedby="woocommerce_videourl-handle-order-lower-description"><span class="screen-reader-text">Move down</span><span class="order-lower-indicator" aria-hidden="true"></span></button><span class="hidden" id="woocommerce_videourl-handle-order-lower-description">Move Video box down</span><button type="button" class="handlediv" aria-expanded="true"><span class="screen-reader-text">Toggle panel: Video</span><span class="toggle-indicator" aria-hidden="true"></span></button></div></div><div class="inside">
<input type="hidden" id="woocommerce_videourl_meta_box_nonce" name="woocommerce_videourl_meta_box_nonce" value="50c7179462"><input type="hidden" name="_wp_http_referer" value="/wp-admin/post.php?post=17163&action=edit">
            <div class="tpaep_woo_videourl_main">
                <div class="tpaep_videourl_wrap">
                    <label for="woocommerce_video_url"> Video Upload  </label>
                    <input type="text" id="woocommerce_video_url" name="woocommerce_video_url" value="" placeholder="https://">
                    <div class="tpaep_videourl_btn">
                        <button type="button" class="button" id="tpaep_upload_video_button">Add or Upload File</button>
                    </div>
                    <div class="extra"> </div>
                    <div class="tpaep_note">You can use Self Hosted Video URL here.</div>
                </div>
            </div>
			<p>
			</p>
			<script>
				jQuery(document).ready(function($) {
					$('#tpaep_upload_video_button').click(function(e) {
						e.preventDefault();
						var videoInput = $('#woocommerce_video_url');
						var custom_uploader = wp.media({
							title: '',
							button: {
								text: ''
							},
							multiple: false
						}).on('select', function() {
							var attachment = custom_uploader.state().get('selection').first().toJSON();
							videoInput.val(attachment.url);
						}).open();
					});
				});
			</script>
			</div>
</div>






#woocommerce_videourl {
  display: none !important;
}

