.td-core-ui .button,
.td-core-ui .button-primary,
.td-core-ui .button-secondary {
	display: inline-block;
	text-decoration: none;
	font-size: 13px;
	line-height: 26px;
	height: 28px;
	margin: 0;
	padding: 0 10px 1px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	-webkit-appearance: none;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	white-space: nowrap;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-user-select: none;
}

.td-core-ui button::-moz-focus-inner,
.td-core-ui input[type="reset"]::-moz-focus-inner,
.td-core-ui input[type="button"]::-moz-focus-inner,
.td-core-ui input[type="submit"]::-moz-focus-inner {
	border-width: 0;
	border-style: none;
	padding: 0;
}

.td-core-ui .button.button-large,
.td-core-ui .button-group.button-large .button {
	height: 30px;
    line-height: 28px;
    padding: 0 12px 2px;
}

.td-core-ui .button.button-small,
.td-core-ui .button-group.button-small .button {
	height: 24px;
	line-height: 22px;
	padding: 0 8px 1px;
	font-size: 11px;
}

.td-core-ui .button.button-hero,
.td-core-ui .button-group.button-hero .button {
	font-size: 14px;
	height: 46px;
	line-height: 44px;
	padding: 0 36px;
}

.td-core-ui .button:active,
.td-core-ui .button:focus {
	outline: none;
}

.td-core-ui .button.hidden {
	display: none;
}

.td-core-ui input[type="reset"],
.td-core-ui input[type="reset"]:hover,
.td-core-ui input[type="reset"]:active,
.td-core-ui input[type="reset"]:focus {
	background: none;
	border: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	padding: 0 2px 1px;
	width: auto;
}

.td-core-ui .button,
.td-core-ui .button-secondary {
	color: #555;
	border-color: #cccccc;
	background: #f7f7f7;
	-webkit-box-shadow: 0 1px 0 #cccccc;
	box-shadow: 0 1px 0 #cccccc;
 	vertical-align: top;
}

.td-core-ui p .button {
	vertical-align: baseline;
}

.td-core-ui .button.hover,
.td-core-ui .button:hover,
.td-core-ui .button-secondary:hover,
.td-core-ui .button.focus,
.td-core-ui .button:focus,
.td-core-ui .button-secondary:focus {
	background: #fafafa;
	border-color: #999;
	color: #23282d;
}

.td-core-ui .button.focus,
.td-core-ui .button:focus,
.td-core-ui .button-secondary:focus,
.td-core-ui .button-link:focus {
	border-color: #2196F3;
}

.td-core-ui .button.active,
.td-core-ui .button.active:hover,
.td-core-ui .button:active,
.td-core-ui .button-secondary:active {
	background: #eee;
	border-color: #999;
	-webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
	box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
	-webkit-transform: translateY(1px);
	-ms-transform: translateY(1px);
	transform: translateY(1px);
}

.td-core-ui .button.active:focus {
	border-color: #5b9dd9;
	-webkit-box-shadow:
		inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
		0 0 3px rgba( 0, 115, 170, .8 );
	box-shadow:
		inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
		0 0 3px rgba( 0, 115, 170, .8 );
}

.td-core-ui .button[disabled],
.td-core-ui .button:disabled,
.td-core-ui .button.disabled,
.td-core-ui .button-secondary[disabled],
.td-core-ui .button-secondary:disabled,
.td-core-ui .button-secondary.disabled,
.td-core-ui .button-disabled {
	color: #a0a5aa !important;
	border-color: #ddd !important;
	background: #f7f7f7 !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	text-shadow: 0 1px 0 #fff !important;
	cursor: default;
	-webkit-transform: none !important;
	-ms-transform: none !important;
	transform: none !important;
}

.td-core-ui .button-link {
	margin: 0;
	padding: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	border: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
	background: none;
	outline: none;
	cursor: pointer;
}

.td-core-ui .button-link:focus {
	outline: #5b9dd9 solid 1px;
}

.td-core-ui .button-primary {
	background: #0085ba;
	border-color: #0073aa #006799 #006799;
	-webkit-box-shadow: 0 1px 0 #006799;
	box-shadow: 0 1px 0 #006799;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 -1px 1px #006799,
		1px 0 1px #006799,
		0 1px 1px #006799,
		-1px 0 1px #006799;
}

.td-core-ui .button-primary.hover,
.td-core-ui .button-primary:hover,
.td-core-ui .button-primary.focus,
.td-core-ui .button-primary:focus {
	background: #008ec2;
	border-color: #006799;
	color: #fff;
}

.td-core-ui .button-primary.focus,
.td-core-ui .button-primary:focus {
	-webkit-box-shadow: 0 1px 0 #0073aa,
		0 0 2px 1px #33b3db;
	box-shadow: 0 1px 0 #0073aa,
		0 0 2px 1px #33b3db;
}

.td-core-ui .button-primary.active,
.td-core-ui .button-primary.active:hover,
.td-core-ui .button-primary.active:focus,
.td-core-ui .button-primary:active {
	background: #0073aa;
	border-color: #006799;
	-webkit-box-shadow: inset 0 2px 0 #006799;
	box-shadow: inset 0 2px 0 #006799;
	vertical-align: top;
}

.td-core-ui .button-primary[disabled],
.td-core-ui .button-primary:disabled,
.td-core-ui .button-primary-disabled,
.td-core-ui .button-primary.disabled {
	color: #66c6e4 !important;
	background: #008ec2 !important;
	border-color: #007cb2 !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
	cursor: default;
}

.td-core-ui .button.button-primary.button-hero {
	-webkit-box-shadow: 0 2px 0 #006799;
 	box-shadow: 0 2px 0 #006799;
}

.td-core-ui .button.button-primary.button-hero.active,
.td-core-ui .button.button-primary.button-hero.active:hover,
.td-core-ui .button.button-primary.button-hero.active:focus,
.td-core-ui .button.button-primary.button-hero:active {
	-webkit-box-shadow: inset 0 3px 0 #006799;
 	box-shadow: inset 0 3px 0 #006799;
}

.td-core-ui .button-group {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	font-size: 0;
	vertical-align: middle;
}

.td-core-ui .button-group > .button {
	display: inline-block;
	-webkit-border-radius: 0;
	border-radius: 0;
	margin-right: -1px;
	z-index: 10;
}

.td-core-ui .button-group > .button-primary {
	z-index: 100;
}

.td-core-ui .button-group > .button:hover {
	z-index: 20;
}

.td-core-ui .button-group > .button:first-child {
	-webkit-border-radius: 3px 0 0 3px;
	border-radius: 3px 0 0 3px;
}

.td-core-ui .button-group > .button:last-child {
	-webkit-border-radius: 0 3px 3px 0;
	border-radius: 0 3px 3px 0;
}

.td-core-ui .button-group > .button:focus {
	position: relative;
	z-index: 1;
}

@media screen and ( max-width: 782px ) {

	.td-core-ui .button,
	.td-core-ui .button.button-large,
	.td-core-ui .button.button-small,
	input#publish,
	input#save-post,
	a.preview {
		padding: 6px 14px;
		line-height: normal;
		font-size: 14px;
		vertical-align: middle;
		height: auto;
		margin-bottom: 4px;
	}

	#media-upload.td-core-ui .button {
		padding: 0 10px 1px;
		height: 24px;
		line-height: 22px;
		font-size: 13px;
	}

	.media-frame.mode-grid .bulk-select .button {
		margin-bottom: 0;
	}

	.td-core-ui .save-post-status.button {
		position: relative;
		margin: 0 14px 0 10px;
	}

	.td-core-ui.wp-customizer .button {
		padding: 0 10px 1px;
		font-size: 13px;
		line-height: 26px;
		height: 28px;
		margin: 0;
		vertical-align: inherit;
	}

	.interim-login .button.button-large {
		height: 30px;
		line-height: 28px;
		padding: 0 12px 2px;
	}

}
