* { margin: 0; padding: 0; }
body { background: #DCCF9B url("/theme/background.png") repeat-y; font-family: "Times New Roman", Times, serif; font-size: 14px; }

h1 { height: 145px; width: 233px; position: absolute; top: 30px; left: 15px; font-size: 1em; text-indent: -999em; background: url("/theme/logo-trans.png"); }

p { margin: .2em 0 .8em 0; }
img { margin: .5em .5em .5em 0; border: 3px solid #8A7153; }
input, textarea { border: none; padding: 1px; background: #DDD; }
input[type="text"],
textarea { width: 99%; display: block; border: 1px solid #722; }
input.auto { color: #00A; }
a.button,
input[type="submit"],
input[type="button"] { background: #9F8763; border: 1px solid #722; color: #000 !important; font-weight: bold; display: inline-block; }
a.button,
input.qtyfield,
input[name="qty"],
input[type="submit"],
input[type="button"] { border-radius: .4em; -moz-border-radius: .4em; -webkit-border-radius: .4em; }
a.button { padding: 0 4px; }


a { color: #722; text-decoration: none; font-weight: bold; }
a:hover { color: #194d29; }

.left { float: left; }
.right { float: right; } 
.hidden { display: none; }
.clear { clear: both; }

img.right { margin: .5em 0 .5em .5em; }
img.left { margin: .5em .5em .5em 0; }

#sidebar { position: absolute; top: 190px; left: 30px; width: 200px; padding-top: 1em; border-top: 5px solid #633; }
#topcart,
#main { margin-left: 261px; }
#tools { float: left; width: 15em; padding: 0 1em 0 .8em; }
#content { margin: 1em 0 0 18em; padding: 1em 1em 0 0; }
#topcart { padding: .2em; background: #194d29; font-weight: bold; font-size: .9em; }
#topcart .cartcontents { min-height: 4em; position: relative; }

#topcart * { color: #FFF; }
#topcart h2 { float: right; font-size: 1.2em; margin: .2em; }
#topcart div.book { margin-left: .2em; display: inline; }
#topcart div.book img { border: 1px solid #8A7153; margin: 0; }
#topcart div.actions { position: absolute; right: .2em; top: 2.2em;}

#topcart ul.cart { list-style: none; }
#topcart ul li { display: inline; }
#topcart ul li > span,
#topcart ul a span.title { display: none; }
#topcart ul a { position: relative; }
#topcart ul a span.qty { position: absolute; left: 4px; top: 4px; background: #DCCF9B; color: #000; }

#topcart ul a img { height: 50px; }

#topcart .cartcontents .qtyfield { display: none; }

#search input[type="submit"]
{ display: none; }
#search input[type="text"] { background: #DDD; }
#search h3 { padding-top: 85px; background: url("/theme/books-trans.png") no-repeat; }

#f_search
{ position: relative; padding: 0 0 2em 0; }
div#query
{ position: relative; float: left; }
#search input#query-field
{ width: 14em; padding: .2em .5em .2em .5em; font-size: 1em; }
body.narrow #search input#query-field
{ width: 215px; padding: .2em 0 .2em 3px; }
label.overlabel-apply
{ position: absolute; top: .2em; left: .4em; z-index: 1; color: #999; }
body.narrow label.overlabel-apply
{ left: 5px; }

#tools ul.menu { margin: .3em 0 .7em 0; }
#tools ul.menu li {  line-height: 2em; }
#tools li { border: none; padding: 0; margin: 0; }

#sidebar * { text-align: center; }
#sidebar h2 { display: none; }

#content h4 { margin-top: .5em; }

ul.menu li,
ul.menu { list-style: none; }

.popup { position: absolute; top: 20%; left: 25%; right: 25%; min-height: 8em; background: url("/theme/paper_bg.png"); border: 1px solid #633; z-index: 5; }
.popup .content { padding: .2em; }
.popup .titlebar { padding: .2em .4em .2em .4em; color: #E7D69E; background: #633; border-bottom: 3px outset #633; }
.popup .content h4 { display: none; }
.popup .titlebar a { font-weight: bold; color: #E7D69E; }
.popup .titlebar span { float: right; }
.popup .menu li { float: left; width: 12em; }
.menu li a { border: none; }

div.book div.text { padding: 0 0 0 220px; }
div.book div.imgs { float: left; width: 220px; }
div.book div.imgs img { width: 200px; }

div.thumb { min-height: 3em; max-width: 35em; }
div.thumb h4 { font-size: 1em; margin-top: 0 !important; }
div.thumb h4 span { float: right; }
div.thumb p { font-size: .9em; font-weight: normal; }

h3 { font-size: 1.1em; margin: 1.4em 0 0 0; }
h3 img { border: none; display: block; }


h3:after { font-size: 1em; content: ':'; }

#tools h2 { display: none; }
#content h2 { font-size: 1.3em; margin: 0 0 1em 0; }

h3.separator { text-indent: -999em; height: 3px; border-bottom: 4px solid #722; width: 70%; margin-bottom: 1em; }

form.edit .row { min-height: 1.6em; padding: .2em; }
form.edit .row span.label { display: block; text-align: right; font-weight: bold; width: 9em; float: left; }
form.edit .row span.element { display: block; margin-left: 10em; }
form.edit span.required { display: none; }
form.edit input[type="text"],
form.edit input[type="file"],
form.edit textarea,
form.edit select { font-size: 12px; display: block; width: 25em; }
form.edit textarea { height: 8em; }
#content form.edit img { float: none; vertical-align: top; }

/* Narrow design */

body.narrow h1 { }
body.narrow #sidebar { display: none; }
body.narrow #tools { margin-top: 150px; width: 215px; padding: 0 18px 0 15px; }

body.narrow #main { margin-left: 0; }
body.narrow body { background-position: 0 0; }
body.narrow #search h3 { padding: .2em 0; filter: none;  background: none; }
body.narrow #topcart { margin-left: 261px; }
body.narrow #content { margin-left: 261px; padding-left: 1em; }
#tools .tool
{ line-height: 2.2em; }
#tools .tool a
{ margin: .1em; padding: .1em .3em; border: 2px outset #600; color: #000; background: #A66; }
h3 em
{ color: #194F2A; }
a.addthumb {
	display: block;
	float: left;
	position: relative;
	width: 120px;
	height: 120px;
	margin: .5em;
}
a.addthumb span {
	position: absolute;
	padding: .5em .3em;
}
a.addthumb img {
	width: 120px;
}
a.cart {
	display: block;
	width: 66px;
	height: 24px;
	text-indent: -999em;
	background: url("cart_button.png");
}
p.by {
	padding-left: 1em;
}

.admin *,
.admin { color: #F44; }

input.qtyfield,
input[name="qty"] { display: inline; width: 1.5em; margin: font-size: 1em; padding: 2px; text-align: center; margin-right: .5em; }
.actions .paypalcrop { text-align: right; overflow: hidden; }
#topcart .actions .paypalcrop { overflow: hidden; height: 25px; margin: 0; padding: 0; }
.actions .paypalcrop * { margin: 0; padding: 0; background: transparent; }

body input[type="hidden"] { display: none; }
