/**
*
* CSS File that styles the Admin Settings Panel of the Plugin
* 
* TABLE OF CONTENTS:
* 1. WordPress Admin Dashboard Background
* 2. Menu items
* 3. Swing animation for icons
* 4. Tools
* 5. Media Queries
*
* 
*/

/* 1. WordPress Admin Dashboard Background (CSS file enqueued only in this plugin's specific admin slug) */
#wpcontent{
	background-color: #313437;
	padding:0px 35px 0px 35px;
}

#wpfooter{
	background-color: #313437;
	position:unset;
}
#wpbody-content {
    padding-bottom: 5px;
}
.form-table th{
	padding: 20px 10px 20px 10px;
}
#b2bking_admin_form .checkbox input{
	margin:0;
}
.b2bking_registrationsettings_tab button#b2bking_registration_form_shortcode_button, .b2bking_bulkordersettings_tab button#b2bking_bulkorder_form_shortcode_button {
    bottom: 45px;
}
.toplevel_page_b2bking div#swal2-html-container {
    overflow: hidden;
}
.b2bking_othersettings_tab th, .b2bking_creditsettings_tab th {
    min-width: 282px !important;
}
.b2bking_languagesettings_tab th, .b2bking_enablefeatures_tab th{
  min-width: 235px !important;
}
.b2bking_feature_modules_table{
	width: auto;
	max-width: 456px;
}
.b2bking_enablefeatures_tab .ui.header .sub.header{
	margin-top: 3px;
	line-height: 1.45;
}
.b2bking_feature_modules_table th{
	min-width: 0 !important;
	width: 100%;
	padding-right: 18px;
	vertical-align: top;
}
.b2bking_feature_modules_table td{
	width: 1%;
	padding-left: 0;
	white-space: nowrap;
}
.b2bking_feature_modules_table th > span{
	display: block;
	font-weight: 600;
	color: #1f2933;
}
.b2bking_registrationsettings_tab th{
  min-width: 250px !important;
}
.b2bking_tooltip_img {
    width: 250px;
    margin-top: 8px;
    border-radius: 5px;
    border-top: 6px solid #c69735 !important;
    padding-top: 6px;
    background: #fff;
}
.b2bking_tooltip_img_large {
    width: 260px;
    margin-top: 8px;
    border-radius: 5px;
    border-top: 6px solid #c69735 !important;
    padding-top: 6px;
    background: #fff;
}
.toplevel_page_b2bking div#tiptip_content {
    min-width: 300px !important;
}
.toplevel_page_b2bking #screen-meta-links {
    display: none;
}
.b2bking_settings_saved_swal_title {
    font-size: 16px !important;
}
/* 2. Menu Items */
/* !important needed to override Semantic UI Library */
.b2bking_accordion{
  width: 100% !important;
}
.b2bking_settings_accordion_header{
  display: block;
}
.b2bking_settings_accordion_header .ui.header{
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.b2bking_settings_accordion_header .ui.header > .content{
  flex: 1;
}
.b2bking_settings_accordion_header .ui.header .sub.header{
  margin-top: 1px;
  line-height: 1.45;
}
.b2bking_settings_accordion_header .ui.basic.button.b2bking_settings_accordion_toggle_all{
  margin: 0 0 0 auto !important;
  align-self: center;
  white-space: nowrap;
  background-color: #f7f7f7 !important;
  color: #4d5967 !important;
  box-shadow: inset 0 0 0 1px #d9dde2 !important;
}
.b2bking_settings_accordion_header .ui.basic.button.b2bking_settings_accordion_toggle_all:hover{
  background-color: #f1f3f5 !important;
  color: #36404a !important;
  box-shadow: inset 0 0 0 1px #cfd5dc !important;
}
.ui.styled.accordion.b2bking_settings_accordion > .title{
  display: flex;
  align-items: center;
  border-radius: 3px;
}
.b2bking_settings_accordion > .title > i.icon {
    margin-right: 16px !important;
    margin-left: 4px;
    position: relative;
    bottom: 2px;
}
.b2bking_settings_accordion > .title > .shield.alternate.icon{
    background: #fff !important;
}
.b2bking_settings_accordion > .title > .b2bking_settings_custom_icon{
    width: 19px;
    height: 19px;
    margin-right: 16px;
    margin-left: 4px;
    position: relative;
    bottom: 1px;
    color: rgba(54, 42, 42, 0.4);
    fill: none;
}
.b2bking_settings_accordion > .title > .b2bking_settings_custom_icon_fill{
    fill: currentColor;
}
.b2bking_settings_accordion > .title > .b2bking_settings_coupon_icon{
    width: 17px;
    position: relative;
    top: 1px;
}
.b2bking_settings_accordion > .active.title > .b2bking_settings_coupon_icon{
    color: rgba(54, 42, 42, 1);
    opacity: 1;
}
.b2bking_settings_accordion > .title:hover > .b2bking_settings_coupon_icon{
    color: rgba(54, 42, 42, 1);
}
.ui.styled.accordion.b2bking_settings_accordion > .title > .dropdown.icon{
  order: 10;
  margin-left: auto !important;
  margin-right: 0 !important;
  opacity: 0.5;
  width: 13px;
  height: 13px;
  font-size: 0 !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ui.styled.accordion.b2bking_settings_accordion > .title > .dropdown.icon:before{
  content: '' !important;
  width: 6px;
  height: 6px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  transform: rotate(45deg);
  transition: transform .1s ease;
  display: block;
}
.ui.styled.accordion.b2bking_settings_accordion > .active.title > .dropdown.icon{
  transform: none !important;
}
.ui.styled.accordion.b2bking_settings_accordion > .active.title > .dropdown.icon:before{
  transform: rotate(-135deg);
}
.b2bking_settings_accordion .title.active{
  background: #f9f9f9 !important;
  border-bottom: 1px solid #ececec;
}
.b2bking_visibility_instructions_message .content{
  padding: 0px !important;
}
.b2bking_components_explained_message{
  margin-top: 10px !important;
}
.b2bking_color_design_panel{
  display: grid;
  gap: 18px;
}
.b2bking_color_design_intro{
  margin: 0;
  padding: 6px 2px 2px 2px;
  color: #5b6570;
  font-size: 13px;
}
.b2bking_color_design_group{
  background: #fbfbfc;
  border: 1px solid #eceff3;
  border-radius: 10px;
  padding: 16px 18px;
}
.b2bking_color_design_group_header{
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.b2bking_color_design_group_header h3{
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a5561;
}
.b2bking_color_design_group_header p{
  margin: 0;
  font-size: 12px;
  color: #75808c;
}
.b2bking_color_design_row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #eef1f4;
}
.b2bking_color_design_group .b2bking_color_design_row:first-of-type{
  border-top: 0;
}
.b2bking_color_design_copy{
  flex: 1;
}
.b2bking_color_design_copy label{
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  color: #1f2933;
}
.b2bking_color_design_copy p{
  margin: 0;
  font-size: 12px;
  color: #69727d;
}
.b2bking_color_design_control{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.b2bking_color_design_control input[type="color"]{
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.b2bking_color_design_control span{
  min-width: 76px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #66707a;
}
@media only screen and (max-width: 782px){
  .b2bking_color_design_row{
    align-items: flex-start;
    flex-direction: column;
  }
  .b2bking_color_design_control span{
    min-width: 0;
  }
}
#b2bking-quote-fields{
  margin-top: 10px;
}
.b2bking_quote_cart_container{
    border-bottom: 1px solid #efefef8f;
}
.b2bking_quotes_section{
  margin-top: 0px;
}
.b2bking_othersettings_margin{
  margin-bottom: 50px;
}
.ui.menu .item.green.active{
	color: #f0efec !important;
	transition: all 0s;
}
.ui.menu .item.green:hover{
	color: #eeedf2;
}
#b2bking_admin_menu .active .icon{
    color: #dea320;
}
#b2bking_admin_menu .item{
	transition: 0.2s all;
}
#b2bking_admin_menu .item::before{
	background: rgba(119, 122, 125, 0.1);
}
.item .b2bking_menu_description{
	color: #686573;
	font-size: 12px;
}
.item.active .b2bking_menu_description{
	color:#b8b6c3;
}
#b2bking_menu_logo{
	width: 170px;
	margin: 30px auto;
	display: block;
}
#b2bking_admin_wrapper{
	display:flex;
	min-height: 610px;
  margin-top: 30px;
}
#b2bking_admin_wrapper_import{
  display:flex;
  min-height: 450px;
  margin-top: 30px;
}
#b2bking_download_products_button{
  min-height: 36px;
}
#b2bking_tabs_wrapper{
	display: inline-block;
    width: 100%;
}
#b2bking_admin_menu{
	display:inline-block;
	vertical-align: top;
	height:auto;
	min-width: 225px;
	width:21%;
	border: 0;
	border-radius: 5px 0px 0px 5px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.17);
	background: linear-gradient(172deg, #15141b, #201e2e, #15141b)
}
#b2bking_admin_menu .active{
	/* !important needed to override Semantic UI Library */
	border-color: #d4d4d5 !important; 
	box-shadow: 0 3px 6px rgba(0,0,0,.07);
	border-top-width:0px;
	background: #6c667d;
}
.ui.menu .item{
	transition: all .1s ease-out;
	color:#bcc0c7;
	padding:20px;
}
.ui.menu .item>i.icon{
	font-size: 22px;
	display:inline-table;
	position: relative;
	top: 5px;
	transition: 0.3s all;
}
#b2bking_admin_menu .b2bking_emails_menu_item > i.icon {
	top: 1px;
}
#b2bking_admin_menu .item:hover .icon{

	animation: swing 1s ease;
	animation-iteration-count: 1;
}
#b2bking_admin_menu .item.active:hover .icon{
	animation: none;
	animation-iteration-count: 1;
}
#b2bking_admin_menu.ui.menu .item:hover{
	background: rgba(108, 102, 125, 0.18);
}
#b2bking_admin_menu .b2bking_menu_search_input{
	display: block;
	width: calc(100% - 36px);
	margin: -8px auto 18px;
	padding: 8px 11px 8px 32px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,0.055);
	background: rgba(255,255,255,0.05);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(236,234,243,0.34)' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 10px 50%;
	background-size: 12.5px 12.5px;
	color: rgba(236, 234, 243, 0.82);
	font-size: 12px;
	font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
	font-weight: 300;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	box-shadow: none;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.b2bking_menu_search_input{
	appearance: none;
}
.b2bking_menu_search_input:focus{
	outline: none;
	border-color: rgba(226, 200, 87, 0.42);
	background-color: rgba(255,255,255,0.08);
	box-shadow: 0 0 0 2px rgba(226, 200, 87, 0.12);
}
.b2bking_menu_search_input::placeholder{
	color: rgba(236, 234, 243, 0.28);
	font-weight: 300;
}
.b2bking_settings_search_match{
	position: relative;
	border-radius: 10px;
	background: rgba(255, 244, 186, 0.34) !important;
	box-shadow: inset 3px 0 0 rgba(222, 163, 32, 0.78);
}
tr.b2bking_settings_search_match > th,
tr.b2bking_settings_search_match > td{
	background: rgba(255, 248, 219, 0.78) !important;
	box-shadow: inset 0 3px 0 #fff, inset 0 -3px 0 #fff;
}
.b2bking_color_design_panel .b2bking_settings_search_match {
    border-radius: 5px;
    padding-left: 10px;
    padding-bottom: 7px;
    padding-top: 7px;
}
.b2bking_settings_accordion > .title.b2bking_settings_search_match{
	background: rgba(255, 246, 201, 0.7) !important;
}
#b2bking_admin_menu .b2bking_menu_item_search_match, #b2bking_admin_menu .b2bking_menu_item_search_match.active {
    border-left: 2px solid #dea320 !important;
}
#b2bking_admin_menu.ui.menu .item.active:hover{
	background: #6c667d;
}
.b2bking_loader_icon_button {
    width: 200px !important;
}
a.item:after {
    content: "";
    width: 0;
    left:0;
    top: 0;
    position: absolute;
    transition: 0.2s ease;
    height: 3px;
}
a.item.active:after {
    content: "";
    width: 100%;
    height: 3px;
    background: #dea320;
}
.ui.menu .item.teal:hover{
	color: #00b5ad;
}
.ui.menu .item.pink:hover{
	color: #e03997;
}
.ui.menu .item.red:hover{
	color: #db2828;
}
.ui.menu .item.blue:hover{
	color: #2185d0;
}

.ui.tab.segment{
	border:0;
	box-shadow: 0 3px 6px rgba(0,0,0,.07);
	border-top: 1px;
	border-radius: 0 5px 5px 0;
	height:100%;
}
.b2bking_attached_content_wrapper{
	transition: all .15s ease;
}
.b2bking_plugin_status_container{
  padding: 10px;
}
.b2bking_settings_explained{
  font-size: 12px;
  font-style: italic;
}

label.b2bking_access_restriction_label {
    font-weight: 600;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 8px;
    padding-bottom: 7px;
    display: block;
}

@keyframes glow {
    0% {
        background-position: initial;
    }
    50% {
        background-position: right center;
    }
    100% {
        background-position: initial;
    }
}
#b2bking-admin-submit{
    padding: 14px 26px;
}
#b2bking-admin-submit.active {
   animation: glow 1.5s infinite;
   background-image: linear-gradient(to right, #1e6396 0%, #268eda 51%, #1e6396 100%);
   transition: 0.5s;
   background-size: 200% auto;
   border-color: #3582c4;
   box-shadow: inset 0 2px 5px -3px #0a4b78, 0 0 0 1px #3582c4;
 }
 
/* 3. Swing Animation for Icons */
@-webkit-keyframes swing {
  20% {
    -webkit-transform: rotate3d(0, 0, 1, 15deg);
    transform: rotate3d(0, 0, 1, 15deg);
  }

  40% {
    -webkit-transform: rotate3d(0, 0, 1, -10deg);
    transform: rotate3d(0, 0, 1, -10deg);
  }

  60% {
    -webkit-transform: rotate3d(0, 0, 1, 5deg);
    transform: rotate3d(0, 0, 1, 5deg);
  }

  80% {
    -webkit-transform: rotate3d(0, 0, 1, -5deg);
    transform: rotate3d(0, 0, 1, -5deg);
  }

  to {
    -webkit-transform: rotate3d(0, 0, 1, 0deg);
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

@keyframes swing {
  20% {
    -webkit-transform: rotate3d(0, 0, 1, 15deg);
    transform: rotate3d(0, 0, 1, 15deg);
  }

  40% {
    -webkit-transform: rotate3d(0, 0, 1, -10deg);
    transform: rotate3d(0, 0, 1, -10deg);
  }

  60% {
    -webkit-transform: rotate3d(0, 0, 1, 5deg);
    transform: rotate3d(0, 0, 1, 5deg);
  }

  80% {
    -webkit-transform: rotate3d(0, 0, 1, -5deg);
    transform: rotate3d(0, 0, 1, -5deg);
  }

  to {
    -webkit-transform: rotate3d(0, 0, 1, 0deg);
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

.swing {
  -webkit-transform-origin: top center;
  transform-origin: top center;
  -webkit-animation-name: swing;
  animation-name: swing;
}
/* 4. Tools */
div#b2bking_tools_setusergroup {
    font-size: 16px;
    padding: 10px;
}
div#b2bking_tools_setcategoryvisibility{
  font-size: 16px;
  padding: 10px;
  margin-top: 20px;
}
div#b2bking_tools_setusersubaccounts{
  font-size: 16px;
  padding: 10px;
  margin-top: 20px;
}
div#b2bking_set_users_in_group, div#b2bking_set_category_in_bulk {
    margin-top: 15px;
}
.b2bking_subaccountplusicon{
    font-size: 1.4em !important;
    color: #C4C4C4;
    display: inline-block !important;
    margin-right: 5px !important;
}
input.b2bking_set_user_subaccounts_input {
    background-color: #ECECEC;
    border-radius: 3px;
    height: 40px;
    border: none;
    padding: 0px 15px;
    width: 97.5%;
    max-width: 100%;
    font-family: "Roboto Medium", Roboto;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #252525;
    margin-bottom: 5px;
}

/* 5. Media Queries */
@media screen and (max-width: 767px) { 
  div#b2bking_admin_wrapper{
    display: block;
  }
  div#b2bking_admin_menu{
    width: 100%;
  }
}

/* New Styling */

#b2bking_menu_logo {
    width: 150px;
    margin: 18px auto 32px auto;
    display: block;
}
#b2bking_admin_menu .item {
    transition: 0.2s all;
    display: flex;
}
#b2bking_admin_menu .active {
    border-color: #d4d4d5 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,.07);
    border-top-width: 0px;
    background: #6c667d47;
}



.ui.vertical.menu .item>.header:not(.ui) {
    position: relative;
    -webkit-font-smoothing: antialiased;
    font-size: 13.3px;
    font-weight: 300;
    top: 5px;
    margin:0px;
}

.ui.vertical.menu .item>i.icon {
    filter: brightness(0.7);
    width: 1.18em;
    float: right;
    margin-right: 16px;
    margin-left: 5px;
    position: relative;
    top: 0px;
}
.ui.menu .item>i.icon {
    font-size: 19px;
    display: inline-table;
    position: relative;
    transition: 0.3s all;
}
#b2bking_admin_menu .item::before {
    background: rgb(119 122 125 / 5%);
}
span.b2bking_menu_description {
    display: none;
}
.ui.menu .item {
    transition: all .1s ease-out;
    color: #f3f4f5;
    padding: 16px 20px;
}

a.item.active:after{
  height: 2px;
}
#b2bking_admin_menu.ui.menu .item.active:hover {
    background: #6c667dad;
}
#b2bking_admin_menu {
    width: 20%;
}
a.green.item.active .icon, a.green.item.active path {
    filter: brightness(1) !important;
    stroke: #ffbd2a;
}
#b2bking_admin_menu.ui.menu .item:hover .icon{
    filter: brightness(1) !important;
}

#b2bking_tabs_wrapper > .segment {
    max-width: 1050px;
}
.tieredpricing td, .bulkorder td, .b2bking_languagesettings_tab td, .b2bking_othersettings_tab td, .quotesoffers td, .accessrestriction td, .b2bking_registrationsettings_tab td{
    padding: 15px 34px;
}
.b2bking_languagesettings_tab tr{
   /* border-bottom: 1px solid #efefef8f; */
}
.bulkorder tr, .quotesoffers tr{
    border-bottom: 1px solid #efefef8f;
    display: block;
}
.b2bking_bulkorder_section_settings tbody{
    width: 100%;
    display: block;
}
.b2bking_settings_segment{
    padding: 5px !important;
    display: block;
    border-radius: 0px 0px 5px 5px !important;
}
.tieredpricing th, .bulkorder th, .quotesoffers th, .b2bking_languagesettings_tab th, .accessrestriction th, .other_priceproduct th, .other_priceproduct th{
    width:400px;
    font-size: 14.5px;
    vertical-align: middle;
}
.other_toggles th{
    width:580px;
    font-size: 14.5px;
    vertical-align: middle;
}
.captcha_settings th{
    width:355px;
}
#b2bking_captcha_cloudflare_fields.b2bking_hidden{
    display: none !important;
}
#b2bking_captcha_cloudflare_fields .b2bking_visibility_instructions_message p {
    line-height: 22px;
    margin-top: 5px;
}
div#b2bking_captcha_cloudflare_fields .b2bking_visibility_instructions_message {
    padding: 17px 24px;
    max-width: 733px;
}
.other_toggles_multiple tr {
    border-bottom: 1px solid #f6f6f6;
}
.b2bking_documentation_link{
    text-decoration: underline;
    font-weight: bold;
    color: #295b6b;
}
.b2bking_registrationsettings_tab th{
    width: 550px;
    font-size: 14.5px;
    vertical-align: middle;
}
.b2bking_setting_description{
    font-weight: 100;
    color: #6f6f6f;
    margin-top: 6px !important;
    -webkit-font-smoothing: antialiased;
}
.view_documentation_ribbon{
    position: absolute !important;
    margin-left:1px !important;
    padding-left: 37px !important;
}
#b2bking_admin_wrapper .woocommerce-help-tip::after {
    font-size: 0.7em !important;
    top: initial !important;
    position: relative;
    left: 3px;
    bottom: 1.5px;
    color: #606060;
    border-radius: 100px;
    border: 1px solid #606060;
    display: flex;
    justify-content: center;
    align-items: center;
    content: "?";
    font-weight: 700 !important;
    font-family: 'Lato', sans-serif;
}
.b2bking_setting_block{
    padding: 0.3em !important;
    transition: all .2s ease-in-out;
    cursor: pointer;
    width: fit-content;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px #fff;
}
.b2bking_setting_block.b2bking_setting_block_noborder{
    border:none;
    box-shadow: none;
}
.bulkorder #b2bking_bulkorder_form_shortcode_button {
    bottom: 37px !important;
}
.ui.orange.label.b2bking_orange{
    border-color: #dca120 !important;
    font-size: .56428571rem;
}
.b2bking_setting_block.active {
    box-shadow: 0 2px 4px #007cba33;
    border: 1px solid #007cba;
}

p.b2bking_block_description {
    text-align: center;
    color: #828282;
}
.ui.horizontal.divider:before {
    width: 1% !important;
}
.ui.horizontal.divider:after {
    width: 99%;
}
.divider_icon{
    background: #F3F3F3;
    width: 35px;
    color: #3c434a;
    height: 35px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}
.b2bking_grid_min{
    min-width: 420px;
}
.b2bking_centered_column{
    display: flex !important;
    flex-direction: column;
    align-items: center;
}
.b2bking_icon_svg_setting{
    width: 93px;
    height: 56px;
    display: flex;
    justify-content: center;
}
.b2bking_visibility_settings tr td {
    padding-left: 0px;
}
.b2bking_grid_two_columns{
    width: 200px;
}
.b2bking_grid_two_columns .column{
    width: 180px !important;
}
.b2bking_visibility_instructions_message{
    max-width: 715px;
}
.b2bking_setting_cog_visible {
    width: 28px;
    transition: all .2s ease-in-out;
}
.b2bking_setting_cog_visible path{
    stroke: #9c9c9c;
}
.b2bking_setting_block.active .b2bking_setting_cog_visible path{
    stroke: #085378;
}

.b2bking_setting_eye_visible{
    transition: all .2s ease-in-out;
    width: 36px;
    fill: #9c9c9c;
}
.b2bking_setting_block.active .b2bking_setting_eye_visible{
    fill: #085378;
}

#b2bking_existing_users_apply_warning_row{
    display:none;
}
#b2bking_access_restriction_force_redirect th {
    width: 620px;
}
.b2bking_existing_users_apply_warning {
    max-width: 619px;
}
.b2bking_existing_users_apply_warning p {
    font-size: 12.7px !important;
}
.b2bking_existing_users_apply_warning i{
    font-size: 34px !important;
    margin-right: 5px !important;
}
td#b2bking_existing_users_apply_warning_row {
    padding: 10px;
}

/* checkmark toggle
.ui.toggle.checkbox input:checked~.box:after, .ui.toggle.checkbox input:checked~label:after {
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.0303 8.78039L8.99993 16.8107L5.4696 13.2804L6.53026 12.2197L8.99993 14.6894L15.9696 7.71973L17.0303 8.78039Z' fill='%232271b1'%3E%3C/path%3E%3C/g%3E%3C/svg%3E") !important;
} */

/* B2BKing admin toggle refresh - isolated block for easy rollback */
#b2bking_admin_form .ui.toggle.checkbox{
    --b2bking-toggle-width: 45px;
    --b2bking-toggle-height: 24px;
    --b2bking-toggle-diameter: 17px;
    --b2bking-toggle-offset: calc((var(--b2bking-toggle-height) - var(--b2bking-toggle-diameter)) / 2);
    --b2bking-toggle-off: #dddddd;
    --b2bking-toggle-on: #1f78bb;
}
#b2bking_admin_form .ui.toggle.checkbox label{
    min-height: var(--b2bking-toggle-height);
    padding-left: 3.45rem;
}
#b2bking_admin_form .ui.toggle.checkbox label:before{
    width: var(--b2bking-toggle-width);
    height: var(--b2bking-toggle-height);
    top: 50%;
    left: 0;
    margin-top: calc(var(--b2bking-toggle-height) / -2);
    border-radius: 999px;
    background: var(--b2bking-toggle-off) !important;
    box-shadow: none;
    background-repeat: no-repeat !important;
    background-position: 9px center;
    background-size: 5px 5px;
    transition: background-color .28s ease;
}
#b2bking_admin_form .ui.toggle.checkbox label:after{
    content: "" !important;
    width: var(--b2bking-toggle-diameter);
    height: var(--b2bking-toggle-diameter);
    top: 50%;
    left: 0;
    margin-top: calc(var(--b2bking-toggle-diameter) / -2);
    margin-left: 0;
    border-radius: 999px;
    background: #fff !important;
    box-shadow: none !important;
    transform: translateX(var(--b2bking-toggle-offset));
    will-change: transform;
    transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1);
}
#b2bking_admin_form .ui.toggle.checkbox input:checked~label:before{
    background: var(--b2bking-toggle-on) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cg transform='translate(256 256) scale(0.5)'%3E%3Cpath fill='%23ffffff' d='M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
}
#b2bking_admin_form .ui.toggle.checkbox input:checked~label:after{
    transform: translateX(calc(var(--b2bking-toggle-width) - var(--b2bking-toggle-diameter) - var(--b2bking-toggle-offset)));
}

.b2bking_email_settings_panel {
    padding: 4px 2px 8px;
}

.message.b2bking_email_documentation_message {
    margin-bottom: 19px;
}

.b2bking_settings_accordion > .title .b2bking_email_title_toggle {
    display: inline-block;
    margin: 0 11px 0 2px;
    transform: scale(0.9);
    vertical-align: middle;
}

.b2bking_settings_accordion > .title .b2bking_email_title_toggle.ui.toggle.checkbox {
    min-height: var(--b2bking-toggle-height);
}

.b2bking_settings_accordion > .title .b2bking_email_title_toggle.ui.toggle.checkbox label {
    padding-left: var(--b2bking-toggle-width);
}

#b2bking_admin_form .b2bking_emailsettings_tab .ui.toggle.checkbox.b2bking_email_send_toggle input.b2bking_email_title_enabled:not(:checked)~label:before,
#b2bking_admin_form .b2bking_emailsettings_tab .ui.toggle.checkbox.b2bking_email_send_toggle input.b2bking_email_panel_enabled:not(:checked)~label:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cg transform='translate(256 256) scale(0.5)'%3E%3Cpath fill='%23ffffff' d='M764.288 214.592a32 32 0 0 0-45.248 0L512 421.632 304.96 214.592a32 32 0 0 0-45.248 45.248L466.752 466.88 259.712 673.92a32 32 0 1 0 45.248 45.248L512 512.128l207.04 207.04a32 32 0 0 0 45.248-45.248L557.248 466.88l207.04-207.04a32 32 0 0 0 0-45.248z'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 15px center !important;
    background-size: 32px !important;
}

.b2bking_email_title_category {
    color: #7a8794;
    font-weight: 400;
}

.b2bking_email_title_dash {
    margin: 0 10px;
    color: #a3adb7;
    font-weight: 700;
}

.b2bking_email_title_text {
    color: #494e52;
    font-weight: 700;
}

.b2bking_email_settings_description {
    margin: 7px 0 22px !important;
    padding: 10px 12px;
    border-left: 3px solid #4f8aa3;
    border-radius: 3px;
    background: #f5f9fb;
    color: #344858;
    font-size: 13px;
    font-weight: 600;
}

.b2bking_email_settings_grid {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(260px, 1fr);
    gap: 14px 18px;
    align-items: center;
    padding-left: 5px;
}

.b2bking_email_settings_grid label {
    font-weight: 600;
    color: #26323f;
}

.b2bking_email_settings_grid input[type="text"],
.b2bking_email_settings_grid select,
.b2bking_email_settings_grid textarea,
.b2bking_email_custom_box textarea {
    width: 100%;
    max-width: 760px;
}

.b2bking_email_custom_box {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #f8fafc;
}

.b2bking_email_custom_header {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.b2bking_email_custom_header p {
    margin: 0;
    color: #2f3d4a;
    font-weight: 600;
}

.b2bking_email_custom_header .ui.toggle.checkbox label {
    padding-left: 4rem !important;
}

.b2bking_email_custom_box:not(.b2bking_email_custom_enabled) .b2bking_email_custom_content,
.b2bking_email_custom_box:not(.b2bking_email_custom_enabled) .b2bking_email_custom_tools,
.b2bking_email_custom_box:not(.b2bking_email_custom_enabled) .b2bking_email_reset_default {
    display: none;
}

.b2bking_email_custom_box.b2bking_email_custom_enabled .b2bking_email_default_preview {
    display: none;
}

.b2bking_email_default_preview {
    max-width: 760px;
    padding: 10px 12px;
    border: 1px solid #e4ebf0;
    border-radius: 5px;
    background: #fff;
    cursor: not-allowed;
    opacity: .58;
}

.b2bking_email_default_preview,
.b2bking_email_custom_content {
    color: #2f3d4a;
    font-family: sans-serif;
    font-size: 13px !important;
    line-height: 1.45;
}

.b2bking_email_default_preview_note {
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid #edf1f5;
    color: #7d8994;
    font-size: 12px;
}

.b2bking_email_placeholders {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.b2bking_email_placeholders_intro {
    margin: 0 0 7px;
    color: #6f7b86;
    font-size: 12px;
    font-weight: 400;
}

.b2bking_email_placeholders code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border: 1px solid #dce5ec;
    border-radius: 5px;
    background: #fff;
    color: #315769;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.b2bking_email_placeholders code span {
    color: #7d8994;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.b2bking_email_custom_tools {
    max-width: 760px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e4ebf0;
    border-radius: 5px;
    background: #fbfcfd;
}

.b2bking_email_custom_content[readonly] {
    opacity: .48;
    cursor: not-allowed;
}

.b2bking_email_actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    max-width: 760px;
}

.b2bking_email_send_test {
    color: #5f6b76 !important;
    font-size: 13px !important;
    margin-left: auto !important;
    white-space: nowrap;
}

.b2bking_text_subgroup {
    margin-top: 14px;
}

.b2bking_text_subgroup + .b2bking_text_subgroup {
    margin-top: 20px;
}

.b2bking_text_subgroup_label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6f7b86;
    line-height: 1.3;
}

.b2bking_text_subgroup_label:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e9ee;
}

.b2bking_text_subgroup_intro {
    margin: -2px 0 4px 10px;
    color: #6f7b86;
    font-size: 12px;
}

.b2bking_text_subgroup .form-table {
    margin-top: 0;
}

.ui.form textarea.b2bking_approval_message_textarea {
    width: 100%;
    max-width: 720px;
    min-height: 54px;
    resize: vertical;
}

@media screen and (max-width: 782px) {
    .b2bking_email_settings_grid {
        grid-template-columns: 1fr;
    }

    .b2bking_email_custom_header {
        display: block;
    }
}
