/* 
This file contains the CSS styles for the top bar plugin, defining the layout, colors, and fonts used in the top bar. 
*/

body {
    margin: 0;
}

/* Add a wrapper for WordPress content */
body.admin-bar {
    margin-top: 0;
}

#page, #masthead, .site {
    position: relative;
    z-index: 1; /* Ensure content stays below topbar */
}

.common-notification-bar {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    color: #fff;
    z-index: 999999; /* Increase z-index to ensure it's above WP admin bar */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

/* Admin bar adjustment */
.admin-bar .common-notification-bar {
    margin-top: 0px; /* Changed from top to margin-top */
}

@media screen and (max-width: 767px) {
    .common-notification-bar-content {
        display: block !important;
        padding: 0px 15px 14px 15px !important;
    }
}

@media screen and (min-width : 375px) and (max-width : 575px) {
    .common-notification-bar-content {
        display: block !important;
        padding: 8px 2px 14px 2px !important;
    }
    .common-notification-bar-content h3 {
        font-size: 14px !important;
    }
}

@media screen and (min-width : 992px) and (max-width : 1199px) {
    div.common-notification-bar-content a#cnb-theme-button, div.common-notification-bar-content a#cnb-cta-button {
        width: 11%;
        font-size: 14px;
        padding: 4px 10px !important;
    }

    .common-notification-bar-content{
        padding: 0px 10px !important;
    }
    .common-notification-bar-content h3{
        font-size: 14px !important;
    }

}




@media screen and (min-width : 768px) and (max-width : 991px) {
  .common-notification-bar #cnb-theme-button, .common-notification-bar a#cnb-cta-button {
      padding: 4px 20px !important;
      width: 25% !important;
  }

  .common-notification-bar-content h3 {
    font-size: 14px !important;
    color: #fff;
    font-weight: 500;
}

}



.common-notification-bar-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  	gap:20px;
    align-items: center;
    padding: 0 20px;
    text-align: center;
}

.common-notification-bar h1 {
    font-size: 24px;
    margin: 0;
    flex: 1;
    text-align: center;
    padding: 0;
}

#cnb-cta-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    right: 20px;
}

#cnb-cta-button:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: #fff;
}
.common-notification-bar-content h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}
.common-notification-bar{
	background-color:#6d51fb !important;
}
.common-notification-bar {
    background-color: #6d51fb !important;
    box-shadow: 0 -7px 13px rgba(0, 0, 0, 0.40), 0 3px 6px rgba(0, 0, 0, .60);
}
.common-notification-bar a#cnb-cta-button{
	border: 1px solid #ffffff;
    background: transparent linear-gradient(90deg, #FFA867 0%, #EF7213 100%) 0% 0% no-repeat padding-box;
}
.common-notification-bar a#cnb-cta-button:hover {
    border: 1px solid #ffffff;
  	color:#fff !important;
    background: transparent !important;
}
.common-notification-bar #cnb-theme-button{
	border: 1px solid #ffffff !important;
    background: transparent linear-gradient(270deg, #FFA867 0%, #EF7213 100%) 0% 0% no-repeat padding-box;
}
.common-notification-bar #cnb-theme-button:hover{
	border: 1px solid #ffffff !important;
  	color: #fff !important;
  	background: transparent !important;
}
.common-notification-bar #cnb-theme-button,.common-notification-bar a#cnb-cta-button{
    padding: 4px 20px !important;
}