/**
 * Frontend Switcher Pane
 */
#sfwc-user-switcher-pane {
	margin: 10px 0 50px;
	padding: 20px;
	background-color: #def6ff;
}

#sfwc-user-switcher-pane h3 {
	margin: 10px 0;
	font-size: 17px;
	font-weight: bold;
	color:#3577c9;
}

#sfwc-user-switcher-pane p {
	margin: 0;
	font-size: 16px;
	color: #3b3b3b;
	line-height: 24px;
}

#sfwc-user-switcher-pane form {
	margin: 20px auto 0 auto;
}

#sfwc-user-switcher-pane form select {
	padding: 8px;
	font-size: 15px;
	font-weight: bold;
	background-color: #3577c9;
	color: #fff;
	border: none;
	width: 100%;
	max-width: 250px;
	border-radius: 3px;
	
	/* Hide default arrow down */
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
  
	/* Add custom arrow down */
	background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
	background-repeat: no-repeat;
	background-position: center right;
	
	/* For browsers that support it, move the arrow slightly to the left */
	background-origin: border-box;
	background-position-x: 98%;
	background-position-y: center;
}

#sfwc-user-switcher-pane form select:focus {
	outline-color: #d8d8d8;
}

#sfwc-user-switcher-pane form select option:first-of-type {
	display: none;
	/*
	color:#32373c;
	background-color: #d2d2d2;
	cursor: default;
	*/
}

#sfwc-user-switcher-pane form select option {
	background-color: #fff;
	color: #7b858a;
}

#sfwc-user-switcher-pane .selectize-control.single .selectize-input {
	padding: 8px !important;
	background-color: #3577c9;
	border: none;
	max-width: 250px;
	border-radius: 3px;
}

#sfwc-user-switcher-pane .selectize-control.single .selectize-input.input-active {
	background-color: #ffffff;
	max-width: none;
}

#sfwc-user-switcher-pane .selectize-control.single .selectize-input input,
#sfwc-user-switcher-pane .selectize-control.single .selectize-input .item {
	width: auto !important;
	height: 25px;
}

#sfwc-user-switcher-pane .selectize-control.single .selectize-input input::placeholder,
#sfwc-user-switcher-pane .selectize-control.single .selectize-input .item {
	color: #fff;
	font-weight: bold;
	font-size: 15px;
	width: auto !important;
}

#sfwc-user-switcher-pane .selectize-control.single .selectize-input:after {
	border-color: white rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) !important;
}


/**
 * Frontend Subaccounts tabbed
 */
.sfwc_my_account_tabrow {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	position: relative;
	font-size: 0; /* Fix extra margin for display:inline-block on li */
}
/*
.sfwc_my_account_tabrow li {
	border: 1px solid #AAA;
	background: #f5f5f5;
	display: inline-block;
	position: relative;
	z-index: 0;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	text-shadow: 0 1px #FFF;
	padding: 0 20px;
}
*/
.sfwc_my_account_tabrow li {
    position: relative;
    z-index: 0;
    padding: 0 10px;
    font-size: 16px;
	text-align: center;
}
.sfwc_my_account_tabrow li:hover {
    border-bottom: 2px solid #c9c9c9;
}
.sfwc_my_account_tabrow li.sfwc_my_account_tab a {
	color: #555;
	text-decoration: none;
	display: inline-block;
	padding-bottom: 4px;
}
/*
.sfwc_my_account_tabrow li.selected {
	background: #FFF;
	color: #333;
	z-index: 2;
	border-bottom-color: #FFF;
}
*/
.sfwc_my_account_tabrow li.selected {
    background: #FFF;
    color: #333;
    z-index: 2;
    border-bottom: 2px solid #3577c9;
    font-weight: 600;
}
.sfwc_my_account_tabrow:before {
	position: absolute;
	content: " ";
	width: 100%;
	bottom: 0;
	left: 0;
	border-bottom: 1px solid #c9c9c9;
	z-index: 1;
}
.sfwc_my_account_tabrow li.selected:before {
	box-shadow: 2px 2px 0 #FFF;
}
.sfwc_my_account_tabrow li.selected:after {
	box-shadow: -2px 2px 0 #FFF;
}

@media only screen and (min-width: 499px) {
	.sfwc_my_account_tabrow li {
		display: inline-block;
		text-align: left;
	}
}
	
/**
 * Frontend Subaccounts tab
 */
#sfwc-select-subaccount-orders-form-wrap {
	margin-bottom: 25px;
	background-color: #f8f8f8;
	padding: 30px;
	position: relative;
	border-radius: 5px;
}

#sfwc-select-subaccount-orders-form-wrap:after {
	content: "";
	clear: both;
	display: table;
}

#sfwc-select-subaccount-orders-form-wrap .selectize-input {
	width: 80% !important;
	float: left;
	margin-right: 5px;
}

#sfwc-select-subaccount-orders-form-wrap label[for="sfwc-select-subaccount-orders"] {
	display: block;
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 10px;
	color: #484848;
}

#sfwc-select-subaccount-orders-form-wrap input[type="submit"] {
	float: left;
	clear: both;
	margin-top: 20px;
	font-weight: 600;
}

#sfwc-select-subaccount-orders-form-wrap .sfwc-deselect {
	margin-top: 5px;
	background: none;
	padding: 0 0 0 2px;
	font-size: 15px;
	color: #717171;
	float: left;
}

#sfwc-select-subaccount-orders-form-wrap .sfwc-deselect:hover {
	color: #4b4b4b;
}

#sfwc-loading-icon {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	text-align: center;
	margin: auto;
	z-index: 999999;
}
			
/**
 * Frontend Add Subaccount tab.
 */
#sfwc_form_add_subaccount_frontend:before,
#sfwc_form_add_subaccount_frontend .company:before {
    content: "";
    display: table;
    clear: both;
}


/**
 * Frontend Manage Subaccounts tab.
 */
#frontend_manage_subaccounts {
	position: relative;
	min-height: 250px;
}
#frontend_manage_subaccounts .sfwc_frontend_manage_subaccounts_filter {
	display: inline-block;
	padding: 3px;
	border: 1px solid #d2d2d2;
	text-decoration: none;
	margin: 0 5px 5px 0;
	background: #ffffff;
	color: #333333;
	font-weight: 600;
}
#frontend_manage_subaccounts .sfwc_frontend_manage_subaccounts_filter:hover {
	background: #eeeeee;
}
#frontend_manage_subaccounts .sfwc_frontend_manage_subaccounts_filter.active {
	background: #f6f6f6;
	cursor: default;
}
#frontend_manage_subaccounts #frontend_manage_subaccounts_users_list {
	clear: both;
}
#sfwc_frontend_manage_subaccounts_table.all tr.manager {
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
	z-index: 900;
    position: relative;
	left: -10px;
}
#sfwc_frontend_manage_subaccounts_table.all tr.manager td {
	background-color: #ffffff;
	position: relative;
	left: 10px;
}
#sfwc_frontend_manage_subaccounts_table.all tr.default td:first-child span:after {
    content: "➥";
    width: 15px;
    height: 15px;
    background: #ffffff;
    position: absolute;
    left: 0;
    bottom: 0px;
    display: flex;
    padding: 3px;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    z-index: 99999;
}
#sfwc_frontend_manage_subaccounts_table tr {
	position: relative;
}
#sfwc_frontend_manage_subaccounts_table tr td {
	vertical-align: middle;
}
#sfwc_frontend_manage_subaccounts_table tr img.avatar {
	display: none;
}
#frontend_manage_subaccounts tbody td {
	background: initial;
}
#frontend_manage_subaccounts .ui-accordion .ui-state-active {
    border: 1px solid #dddddd;
    background: #e9e9e9;
    color: #454545;
}
#frontend_manage_subaccounts .ui-state-active .ui-icon, .ui-button:active .ui-icon {
    background-image: url(../lib/jquery-ui-accordion/images/ui-icons_444444_256x240.png);
}
#frontend_manage_subaccounts a#sfwc-add-subaccount-btn {
	/*float: right;*/
	display: inline-flex;
    align-items: center;
	border-radius: 4px;
	background-color: #3577c9;
}
#frontend_manage_subaccounts a#sfwc-add-subaccount-btn:hover {
	opacity: 0.85;
}
/*
#frontend_manage_subaccounts .woocommerce-info {
	margin-top: 20px;
	float: left;
	width: 100%;
}
*/

#frontend_manage_subaccounts .sfwc-filter {
	margin-top: 20px;
}

@media only screen and (min-width: 650px) {
	
	#frontend_manage_subaccounts .manage-subaccounts-header-wrap {
		display:flex;
		flex-direction: row;
		justify-content: space-between;
	}
	
	#frontend_manage_subaccounts .sfwc_frontend_manage_subaccounts_filter {
		padding: 3px 6px;
	}
	
	#frontend_manage_subaccounts .sfwc-filter {
		float: left;
	}

	#frontend_manage_subaccounts .sfwc-filter-status {
		margin-right: 25px;
	}
}

@media only screen and (min-width: 768px) {
	
	#sfwc_frontend_manage_subaccounts_table tr td:first-child {
		display: flex;
	}
	#sfwc_frontend_manage_subaccounts_table tr td:first-child span {
		display: flex;
		align-items: center;
	}
	#sfwc_frontend_manage_subaccounts_table tr img.avatar {
		display: inline;
		border-radius: 50%;
		object-fit: cover;
		display: inline;
		vertical-align: middle;
		margin-right: 3px;
		max-height: 40px;
	}
}

/**
 * Frontend Edit Subaccount.
 */
form#sfwc_form_edit_subaccount_frontend:before {
	content: "";
	display: table;
	clear: both;
}
#sfwc_frontend_edit_subaccount_go_back {
	float: right;
	margin: 5px 0 10px;
	font-size: 16px;
	text-decoration: none;
}
 #sfwc_frontend_edit_subaccount_go_back span {
	position: relative;
	top: 3px;
}
#frontend_manage_subaccounts_edit_subaccount .sfwc_field_wrap {
    margin: 10px 0;
}
#frontend_manage_subaccounts_edit_subaccount #sfwc_frontend_edit_subaccount_header {
    float: left;
    clear: both;
    width: 100%;
    align-items: center;
    margin-bottom: 20px;
	background: #f7f7f7;
    padding: 35px 20px;
}
#frontend_manage_subaccounts_edit_subaccount .sfwc-profile-summary {
	float: left;
	clear: both;
	width: 100%;
	margin-bottom: 15px;
}
#frontend_manage_subaccounts_edit_subaccount .sfwc-profile-summary img.avatar {
	border-radius: 50%;
	object-fit: cover;
}
#frontend_manage_subaccounts_edit_subaccount .sfwc-profile-summary span.name {
	display: inline-block;
	line-height: initial;
	color: #333333;
	font-size: 1.5em;
    font-weight: 600;
    margin-left: 10px;
    margin-top: 5px;	 
}
#frontend_manage_subaccounts_edit_subaccount .sfwc-account-status-wrap {
	background: #ffffff;
    padding: 15px;
    float: none;
    clear: both;
    border-radius: 4px;
}
#frontend_manage_subaccounts_edit_subaccount .sfwc-account-status-wrap p {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 0;
}
#frontend_manage_subaccounts .account-status.active {
	color: #61ad11;
}
#frontend_manage_subaccounts .account-status.deactivated {
	color: #db4f4f;
}

@media only screen and (min-width: 940px) {
	
	#frontend_manage_subaccounts_edit_subaccount #sfwc_frontend_edit_subaccount_header {
		display: flex;
		flex-wrap: nowrap;
		flex-direction: row;
		justify-content: space-between;
	}
	#frontend_manage_subaccounts_edit_subaccount .sfwc-profile-summary {
		display: flex;
		flex-direction: row;
		align-items: center;
		max-width: 50%;
		margin-bottom: 0;
	}
	#frontend_manage_subaccounts_edit_subaccount .sfwc-account-status-wrap {
		max-width: 50%;
	}
}




/**
 * Frontend tables.
 */
table.sfwc_table {
	border-collapse: collapse;
	border-spacing: 0;
	border-spacing: 0;
	width: 100%;
	margin: 0 0 1.41575em;
	border-collapse: separate;
}
table.sfwc_table td, th {
	padding: 0;
}
table.sfwc_table caption {
	padding: 1em 0;
	font-weight: 600;
}
table.sfwc_table td, table th {
	padding: 1em 1.41575em;
	text-align: left;
	vertical-align: middle;
}
table.sfwc_table td p:last-child, table.sfwc_table th p:last-child {
	margin-bottom: 0;
}
table.sfwc_table th {
	font-weight: 600;
}
table.sfwc_table thead th {
	padding: 1.41575em;
	vertical-align: middle;
}
table.sfwc_table tbody h2 {
	font-size: 1em;
	letter-spacing: normal;
	font-weight: 400;
}
table.sfwc_table tbody h2 a {
	font-weight: 400;
}
body table.sfwc_table th {
	background-color: #f8f8f8;
}
body table.sfwc_table tbody tr {
	background-color: #fdfdfd;
}
body table.sfwc_table tbody tr:nth-child(even) {
	background-color: #fbfbfb;
}
body table.sfwc_table td {
	line-height: normal;
}


/**
 * Frontend Tooltip.
 */
.sfwc-help-tip {
	position: relative;
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 4px;
	border-radius: 50%;
	background: #2271b1;
	cursor: help;
	top: 2px;
}

.sfwc-help-tip::before {
	content: "?";
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.sfwc-help-tip:hover::after {
	content: attr(data-tip);
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
	max-width: 260px;
	width: max-content;
	white-space: normal;
	word-wrap: break-word;
	text-align: left;
	z-index: 9999;
}


/**
 * Miscellaneous.
 */
#sfwc-order-details {
	padding: 10px;
	background: #f5f5f5;
	margin-bottom:20px;
}
img#sfwc-loading-icon {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	text-align: center;
	margin: auto;
}
table.my_account_orders td a {
	margin: 2px;
}
p.sfwc-reload-page-text {
	margin-top: 20px;
}
#frontend_subaccount_orders td.woocommerce-orders-table__cell-order-actions a {
	white-space: nowrap;
}