html, body {
	_min-height: 100%;
	color:#333333;
}
html, body, td, p {
	font-family: verdana, arial, helvetica;
	font-size: 11px;
}
body {
	position:relative;
	width:940px;
	max-width:100%;
	overflow-x:hidden;
	margin:0 auto;
	padding:0px 1px;
	left:0px;
	_left:expression(document.body.clientWidth < 940 ? "0px": ((document.body.clientWidth-940)/2)+"px");
	background:#e4e4e4;
}
body.mce-content-body  {
	background: #ffffff;
}
a:link, a:visited {
	color:#911616;
	text-decoration:none;
}
a:hover {
	color:#911616;
	text-decoration:underline;
}
.error {
	color:#911616;
}
.buy {
	background-color:#911616;
	color:#ffffff !important;
	font-size:10px;
	display:inline-block;
	padding:4px 8px;
	font-weight: bold;
	text-transform:uppercase;
	text-align:center;
	margin:0 0 10px 0;
}
.buy.soldout {
	background-color:#999;
}
.frontpage a.buy {
	margin:0;
}
.share {
	position:relative;
	background-color:#fff;
	border: 1px solid #911616;
	color:#911616 !important;
	font-size:10px;
	display:inline-block;
	padding:3px 7px;
	font-weight: bold;
	text-transform:uppercase;
	text-align:center;
	margin:0 0 10px 5px;
	cursor: pointer;
	z-index: 1;
}
.share div {
	position:absolute;
	top: 18px;
	left: -1px;
	width: auto;
	background-color:#fff;
	border: 1px solid #911616;
	padding: 10px;
	box-shadow: 2px 2px 2px rgba(0,0,0,.3);
	white-space: nowrap;
	z-index: 1;
}
.share div a {
	display: inline-block;
	padding: 0 5px;
}
.share div img {
	width: 16px;
	height: 16px;
	border: 0;
	display: inline-block;
}
.share:not(:hover) > div {
	display:none;
}
table.layout {
	margin:0;
}
table.layout td {
	width:auto;
	padding:0 5px 10px 0;
	vertical-align:middle;
}


.wrapper {
	position:relative;
	background:#ffffff url(images/backshadow.gif) repeat-y scroll top right;
	padding: 0px 14px 0px 0px;
	width:100%;
	width:expression(document.body.clientWidth < 940 ? "100%": "940px");
}

/* header */
#header {
	position:relative;
	background:#ffffff url(images/headerback.gif) center top;
	height:88px;
	width:expression(document.body.clientWidth < 940 ? "100%": "940px");
	width:100%;
}
#logo {
	position:absolute;
	font-size:0px;
	display:block;
	background:url(images/logo.gif);
	width:299px;
	height:51px;
	margin:26px 0px 0px 21px;
	text-indent:-99999px;
}

#search {
	position:absolute;
	right:13px;
	bottom:13px;
	margin:0px;
	font-family: Georgia;
	font-size: 11px;
	font-weight: bold;
}
#search input {
	right:13px;
	border:1px solid #c4c4c4;
	font-family: Georgia;
	font-size: 10px;
	padding:1px 2px;
}
#search input.text  {
	width:118px;
}
@media screen and (max-width:600px) {
	.wrapper {
		padding:0;
		background:#fff;
	}
	#search {
		top:10px;
		bottom:auto;
		right:70px;
	}
}

input.text, textarea {
	vertical-align:middle;
	padding:2px;
	border:1px solid #c4c4c4;
	border-top: 1px solid #7c7c7c;
	width:100%;
}
input.button {
	color:#787878;
	vertical-align:middle;
	padding:1px 2px;
	background: #ffffff url(images/buttonback.gif) repeat-x bottom;
	font-weight: bold;
	font-size: 9px;
	border:1px solid #cdcdcd;
	border-bottom:1px solid #a2a2a2;
	border-right:1px solid #a2a2a2;
}

/* header - cnbib */
.cnbib #header {
	background: #000000;
}
.cnbib #logo {
	background:url(images/cnbiblogo.gif);
	width:500px;
	height:45px;
	margin:24px 0px 0px 14px;
}
.cnbib #search {
	font-family: Verdana,Arial,Helvetica;
	font-size: 10px;
	font-weight: bold;
	color:#ffffff;
}

/* menu */
ul#topmenu {
	background:#f4f4ea;
	border-top:1px solid #e5e5d7;
	border-bottom:1px solid #e2e2d8;
	list-style: none;
	display:block;
	float:left;
	margin:0;
	padding:0px 0px 0px 13px;
	width:100%;
	width:expression(document.body.clientWidth < 940 ? "100%": "940px");
	max-width:940px;
	box-sizing:border-box;
}
ul#topmenu li {
	text-transform: uppercase;
	font-family: georgia;
	font-size: 10px;
	font-weight: bold;
	letter-spacing:-0.3px;
	float:left;
	margin:0px;
	padding:0px;
	background:#e5e5d7;
}
ul#topmenu li a, ul#topmenu li span {
	display:block;
	background:#f4f4ea url(images/menubullet.gif) no-repeat 3px 50%;
	padding:8px 5px 7px 13px;
	vertical-align:middle;
	wrap:none;
}
ul#topmenu li a:hover, ul#topmenu li a:active, ul#topmenu li a:focus , ul#topmenu li.hover a, ul#topmenu li span, ul#topmenu a.active {
	background-color:#e5e5d7;
	text-decoration:none;
}
ul#topmenu ul {
	background:#ffffff;
	border:2px solid #e5e5d7;
	border-top:1px solid #e5e5d7;
	list-style:none;
	display:none;
	position:absolute;
	float:none;
	margin:0px;
	padding:13px 10px;
	width:auto;
	z-index:4;
}
ul#topmenu li.hover ul {
	display:block;
}
ul#topmenu ul li {
	text-transform:none;
	font-family:verdana, sans-serif;
	font-size:11px;
	font-weight:normal;
	float:none;
	margin:0px;
	background:#fff url(images/menubullet.gif) no-repeat 0px 50%;
}
ul#topmenu ul li a, ul#topmenu ul li span {
	display:block;
	padding:0;
	padding:2px 3px 5px 13px;
}
ul#topmenu ul li a,
ul#topmenu ul li a:hover,
ul#topmenu ul li a:active,
ul#topmenu ul li a:focus,
ul#topmenu li.hover ul li a,
ul#topmenu ul li span {
	background:transparent !important;
	wrap:none;
	text-decoration:none;
}
ul#topmenu ul li a:hover, ul#topmenu ul li a:active, ul#topmenu ul li a:focus, ul#topmenu li.hover ul li a:hover {
	text-decoration:underline;
}
ul#topmenu ul li a.active, ul#topmenu ul li span {
	font-weight: bold;
}

#topmenucontrol {
	position: absolute;
	top:-500px;
}
#topmenubutton {
	display:none;
	position:absolute;
	top:10px;
	right:10px;
	border: 1px solid #C4C4C4;
	font-family: Georgia;
	font-size: 10px;
	padding:1px 2px;
	padding-left:15px;
	background: #ffffff url(images/buttonback.gif) repeat-x bottom;
}
#topmenubutton:before {
	content: "";
	position: absolute;
	top: 5px;
	left: 2px;
	width: 10px;
	height: 1px;
	border-top: 3px double #787878;
	border-bottom: 1px solid #787878;
}

@media screen and (max-width:760px) {
	#topmenubutton {
		display:block;
	}
	ul#topmenu {
		max-height:0;
		overflow:hidden;
	}
	input#topmenucontrol:checked + ul#topmenu {
		max-height: 2000px;
		overflow:visible;
	}
	ul#topmenu {
		float:none;
		padding:0;
	}
	ul#topmenu li {
		float:none;
	}
	ul#topmenu ul {
		display:block;
		position:relative;
		padding:0;
		border:0;
	}
	ul#topmenu li a, ul#topmenu li span {
		padding:10px 15px;
	}
	ul#topmenu ul li {
		background-position:9px 50%;
	}
	ul#topmenu ul li a, ul#topmenu ul li span {
		display:block;
		padding:10px 5px 10px 20px;
	}
}

/* menu - cnbib */
.cnbib ul#topmenu {
	background:#f4f4f4;
	border-top:1px solid #e5e5e5;
	border-bottom:1px solid #e2e2e2;
}
.cnbib ul#topmenu li {
	text-transform: uppercase;
	font-family: Verdana,Arial,Helvetica;
	background:#f4f4f4;
}
.cnbib ul#topmenu li a, .cnbib ul#topmenu li span {
	background:#f4f4f4 url(images/menubullet.gif) no-repeat 3px 50%;
}
.cnbib ul#topmenu li a:hover, .cnbib ul#topmenu li a:active, .cnbib ul#topmenu li a:focus, .cnbib ul#topmenu li.hover a, .cnbib ul#topmenu li span, .cnbib ul#topmenu a.active {
	background-color:#e5e5e5;
}
.cnbib ul#topmenu ul {
	background:#ffffff;
	border:2px solid #e5e5e5;
	border-top:1px solid #e5e5e5;
}
.cnbib ul#topmenu ul li {
	text-transform:none;
	background:#fff url(images/menubullet.gif) no-repeat 0px 50%;
}

/* content */
#content {
	clear:both;
	position:relative;
	left:20px;
	top:33px;
	width:63%;
	width:calc(100% - 280px);
	float:left;
	margin-bottom:50px;
	padding-top:1px;
}

#sidebar {
	position:relative;
	width:202px;
	margin:210px 0 0 0;
	float:right;
	background:#ffffff url(images/dotsv.gif) repeat-y scroll top left;
	padding: 0px 20px 0px 28px;
	/*bottom:0px;*/
}
.frontpage #sidebar {
	margin:155px 0 0 0;
}
#sidebar p, .list p {
	margin:0 0 8px 0;
}
#sidebar2 {
	float: left;
	width:190px;
	top:0px;
	left:0px;
	bottom:0px;
}
#content2 {
	margin-left:200px;
}

@media screen and (max-width:760px) {
	#content {
		top:auto;
		left:auto;
		width:100%;
		margin-bottom:0;
		float:none;
		overflow:hidden;
		padding-bottom:30px;
	}
	#sidebar {
		position:relative;
		width:auto;
		margin:0;
		background:#ffffff;
		padding: 10px;
		float:none;
	}
	.frontpage #sidebar {
		margin:0;
		float:none;
	}
	#sidebar2 {
		float: none;
		width:auto;
	}
	#content2 {
		margin-left:0;
	}
}

hr {
	border:0;
	background:#ffffff url(images/dotsh.gif) repeat-x scroll top left;
	margin:20px 0 10px 0;
}
#content li {
	margin-bottom:5px;
}

/* booklist */
table.booklist {
	margin:20px 0 0 0;
	clear:both;
	border-collapse:collapse;
}
table.booklist td {
	vertical-align:top;
}
table.booklist td.image {
	text-align:right;
	height:115px;
	width:85px;
}
table.booklist td.text {
	padding:0 0 20px 10px;
}


.frontpage table.booklist {
	margin:0 0 10px 0;
	overflow:hidden;
}
.frontpage table.booklist > tbody > tr {
	background:url(images/dotsh.gif) repeat-x top left;
	margin:-1px 0 0 0;
}
.frontpage table.booklist > tbody > tr > td, table.booklistbog > tbody > tr > td {
	width:auto;
	padding-top:10px;
	padding-bottom:10px;
}

table.booklist.columns {
	box-sizing:border-box;
	display:block;
}
table.booklist.columns > tbody {
	box-sizing:border-box;
	display:block;
	margin:0 0 0 -17px;
}
table.booklist.columns > tbody > tr {
	box-sizing:border-box;
	display:inline-block;
	width:50%;
	overflow:hidden;
	padding:0 0 0 17px;
	vertical-align:top;
}
table.booklist.columns > tbody > tr > td.image {
	float:left;
	display:block;
}
table.booklist.columns > tbody > tr > td.text {
	margin:0 0 0 85px;
	display:block;
}

@media screen and (max-width:940px) {
	table.booklistforside.columns > tbody > tr {
		width:100%;
	}
}

@media screen and (max-width:760px) {
	table.booklist {
		box-sizing:border-box;
		display:block;
		overflow: hidden;
		background:url(images/dotsh.gif) repeat-x top left;
	}
	table.booklist > tbody {
		box-sizing:border-box;
		display:block;
		overflow-x: scroll;
		overflow-y: visible;
		white-space:nowrap;
		-webkit-overflow-scrolling: touch;
		-ms-scroll-chaining: chained;
		-webkit-transform: translateZ(0);
		background:url(images/dotsh.gif) repeat-x bottom left;
	}
	body .wrapper table.booklist > tbody > tr {
		box-sizing:border-box;
		display: inline-block;
		margin: 0 0 0 10px;
		width: 200px;
		white-space:normal;
		vertical-align:top;
	}
	table.booklist > tbody:first-child > tr > td.image {
		float:none;
		display: table-cell;
		vertical-align: middle;
		height: 190px;
		width:100%;
		background:none;
	}
	table.booklist > tbody:first-child > tr > td.text {
		margin:0 !important;
		display: block;
		background:none;
	}

}

/* cart */
table.cart {
	width:100%;
	border-collapse:collapse;
}
table.cart tr.total td {
	border-top:1px solid #000000;
}

table.border {
	border-collapse:collapse;
}
table.border th {
	background-color:#eeeeee;
}
table.border th a {
	display:block;
	color:#000000;
	font-weight:normal;
}
table.border, table.border td, table.border th {
	border:1px solid #cccccc;
}
table.articlelist td, table.articlelist th {
	border-left:0;
	border-right:0;
	padding:3px;
}

/* header */
h1 {
	font-family: Georgia,Times,Serif;
	font-size: 18px;
	font-weight: normal;
	margin:0px 0px 16px 0px;
}
h2 {
	font-family: verdana, arial, helvetica;
	font-size: 12px;
	font-weight: bold;
}
h3 {
	font-family: verdana, arial, helvetica;
	font-size: 11px;
	font-weight: bold;
	margin:0px 0px 10px 0px;
}
p {
	margin:0px 0px 17px 0px;
	line-height:17px;
}
hr {
	background:#ffffff url(images/dotsh.gif) repeat-x scroll top left;
	margin-top:10px;
	margin-bottom:10px;
	padding-top:1px;
}
th {
	text-align:left;
	vertical-align:top;
}
