/*********/
/* RESET */
/*********/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	}

/***************/
/* Page layout */
/***************/

html, body { 
	height: 100%; /* see http://www.alistapart.com/articles/footers */
	margin-bottom: 1px; /* force vertical scrollbar */
	background: white;
	color: black;
	}

body {
	font-size: 62.5%;
	}
	
#container {
	position: relative; /* define as CB */
	margin: 0 auto;
	min-width: 930px;
	max-width: 1100px;
	min-height: 93%; /* ensure footer placement is towards the bottom of the viewport or further if required */
	font-family: Verdana, Geneva, sans-serif;
	line-height: 1;
	}

#content {
	position: relative;
	margin: 0 auto;
	width: 80%; /* IE rounds %ages up so do not use "margin: 0 10%"; this may shrink (sic) width as viewport width increases. */
	font-size: 1.3em;
	padding-bottom: 161px;
	background: url(../images/logo_wagtail.png) scroll no-repeat bottom right;
	}
	
#content:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	}
	
p 	{
	line-height: 1.4em;
	padding-bottom: 1em;
	}
	
a:link, a:visited {
	color: #646E58;
	text-decoration: underline;
	}

a:hover, a:active, a:focus {
	color: #C04;
	text-decoration: underline;
	}

input, textarea {
	background: #eee;
	border: solid 1px #646e58;
	}
	
input:hover, input:focus, textarea:hover, textarea:focus {
	background: #DCF0FA;
	}
	
input:hover {
	cursor: pointer;
	}

/*******************/
/* Heading with IR */
/*******************/


#header h1 {
	margin: 10px 0 20px 0;
	height: 119px;
	width: 600px;
	text-indent: -5000px;
	background: url(../images/logo_writing.png) no-repeat;
	}

#header h1 a {
	display: block;
	width: 100%;
	height: 100%;
	}

#header .cart-info {
	position: absolute;
	top: 10px;
	right: 10px;
	}

#header .cart-items, #header .cart-checkout {
	padding: 6px;
	background: white;
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
	font-size: 1.3em;
	font-weight: bold;
	text-align: right;
	line-height: 1.5;
	}

/******************/
/* Other headings */
/******************/
h2, h3 	{
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
	font-weight: bold;
	font-size: 1.7em;
	padding-bottom: 1em;
	color: #555;
	text-align: center;
	}

body#contact h2 {
	margin-left: 155px;
	text-align: left;
	padding: 0;
	}
	
/*********/
/* Menus */
/*********/

#nav {
	position: relative;
	padding-bottom: 1.5em;
	line-height: 1.3;
	font-family: Georgia, serif;
	font-size: 1.9em;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: lowercase;
	text-align: center;
	}
	
#nav-cart {
	margin-top: 2em;
	}
	
#nav ul {
	list-style-type: none;
	}

#nav li {
	display: inline;
	margin-bottom: 0.5em;
	padding: 0 1em;
	white-space: nowrap;
	}

#nav a 	{
	text-decoration: none;
	}

#nav li.active a, #nav li.active span {
	color: black;
	}
	
#nav li a:hover,
#nav li a:active,
#nav li a:focus {
	color: #C04;
	}

/*******************************/
/*   Main content typography   */
/*******************************/

.richtext-container, #enquiry-success-message {
	/* Apply global styles to here, not to <p>
	 * NOTE: this may be more appropriate applied to #content
	 */
	clear: both;
	text-align: center;
	font-size: 1em;
	line-height: 1.5;
	}
	
.richtext-container ul {
	list-style-type: disc;
	padding-left: 2em;
	}
.richtext-container ol {
	list-style-type: decimal;
	padding-left: 2em;
	}

.richtext-container p,  #enquiry-success-message p {
	padding-bottom: 1em;
	}

.richtext-container li {
	padding-bottom: 0.5em;
	}

.richtext-container h3, .richtext-container h4, .richtext-container h5, .richtext-container h6 {
	font-weight: bold;
	padding-bottom: 1em;
	}

.richtext-container h3 { font-size: 1.4em; }

.richtext-container h4 { font-size: 1.3em; }

.richtext-container h5 { font-size: 1.2em; }

.richtext-container h6 { font-size: 1.1em; }

.richtext-container strong,  #enquiry-success-message strong { font-weight: bold; }

.richtext-container em { font-style: italic; }

.richtext-container sup { vertical-align: top; font-size: 60%; }

.richtext-container sub { vertical-align: bottom; font-size: 60%; }

.richtext-container table th, .richtext-container table td { padding: 0.6em; }

.richtext-container img {
	margin: 0 10px 10px 10px;
	}
	
.richtext-container:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	}

/*************/
/* Stockists */
/*************/

body#stockists #content ul {
	list-style-type: none;
	}

#stockists-nav li {
	float: left;
	width: 33%;
	font-size: 1.3em;
	line-height: 1.3;
	text-align: center;
	}
	
#stockists-nav a:link, #stockists-nav a:visited {
	text-decoration: none;
	}

#stockists-nav li span {
	color: #C04;
	}

body#stockists #content h2 {
	clear: left;
	padding-top: 2em;
	}
	
/**************/
/* Categories */
/* & Products */
/**************/

#product-list {
	float: left;
	width: 100%;
	min-height: 165px;
	}

#product-list ul {
	list-style-type: none;
	}
	
#product-list li {
	float: left;
	margin-bottom: 1em;
	font-weight: bold;
	}
	
#product-list img {
	margin: 0 30px 10px 0;
	border: solid 2px black;
	}
	
#product-list a:link, #product-list a:visited, #product-list a:hover, #product-list a:active, #product-list a:focus {
	text-decoration: none;
	}

#product-list a:hover img, #product-list a:active img, #product-list a:focus img {
	border: solid 2px #C04;
	}
	
li.category span {
	display: block;
	font-weight: bold;
	margin-right: 1em;
	}
	
li.product {
	padding-bottom: 1em; /* mimic span so all <li>s line up */
	}
	
/*****************************************/
/* Product lists on single product pages */
/*****************************************/

ul#sibling-products {
	clear: both;
	margin: 20px 0;
	width: 100%;
	list-style-type: none;
	}

ul#sibling-products:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	}

ul#sibling-products li {
	float: left;
	}
	
ul#sibling-products img {
	margin: 0 30px 10px 0;
	border: solid 2px #aad2a2;
	height: 50px;
	}

#sibling-products li.current-product img, #sibling-products a:hover img, #sibling-products a:active img, #sibling-products a:focus img {
	border: solid 2px #C04;
	}

/***************/
/* Breadcrumbs */
/***************/

#breadcrumbs {
	font-weight: bold;
	padding-bottom: 1.5em;
	}
	
#home #product-list {
	padding-top: 2.5em;
	}
	
#breadcrumbs a:link, #breadcrumbs a:visited, span.B_currentCrumb, span.B_homeCrumb {
	text-decoration: none;
	color: #602;
	}
#breadcrumbs a:hover, #breadcrumbs a:active, #breadcrumbs a:focus {
	text-decoration: none;
	color: #C04;
	}
	
#breadcrumbs h2 {
	display: inline;
	font-size: 1.54em;
	vertical-align: middle;
	}

/************/
/* Products */
/************/

#product-image {
	float: left;
	margin: 0 20px 30px 0;
	}
	
#product-price {
	margin-bottom: 20px;
	font-size: 200%;
	color: #555;
	}	
	
#product-description {
	clear: none;
	text-align: left;
	}
	
#product-name {
	text-align: left;
	}

input.quantity {
	width: 3em;
	text-align: right;
	margin-right: 1em;
	}
	
#added-msg {
	padding-top: 1em;
	font-weight: bold;
	color: #00C;
	}

/*********/
/* Press */
/*********/

#press-prev-jump-next {
	position: absolute;
	top: 0;
	right: 0;
	}

#press-prev-jump-next span {
	display: inline-block;
	width: 5em;
	}

#press-prev-jump-next span.press-next {
	text-align: right;
	}

ul#press-cutting-list {
	margin-top: 30px;
	list-style-type: none;
	}
	
ul#press-cutting-list:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
	}

ul#press-cutting-list li {
	float: left;
	margin: 0 50px 50px 0;
	}
	
#publication-cover {
	text-align: center;
	}

/********/
/* Cart */
/********/

#cart-empty {	
	font-size: 1.2em;
	font-weight: bold;
	}

#shopping-cart table {
	table-layout: fixed;
	width: 51em;
	text-align: center;
	}
	
caption {
	position: absolute;
	left: -5000px;
	}

.item-image	{ width: 10em; }
.item-title	{ width: 10em; }
.item-price	{ width: 5em; }
.item-quantity	{ width: 10em; }
.item-subtotal	{ width: 5em; }
.item-delete	{ width: 5em; }

#shopping-cart th {
	font-weight: bold;
	}
	
#shopping-cart th, #shopping-cart td {
	padding: 1em 0.5em;
	vertical-align: middle;
	}
	
.item-quantity .button {
	margin: 1em;
	}

.item-delete input {
	margin: 0;
	border: none;
	padding: 0 0 0 16px;
	min-height: 16px;
	background: url(../images/delbutton_dim.gif) left center no-repeat;
	}
.item-delete input:hover, .item-delete input:focus {
	background-image: url(../images/delbutton.gif);
	}
	
#grand-total {
	border-top: solid 2px black;
	border-bottom: solid 2px black;
	font-weight: bold;
	}

#cart-footer {
	width: 50.5em;
	height: 4em;
	padding-right: 0.5em;
	}
	
#cart-footer form {
	float: right;
	margin: 4em 0 4em 2em;
	}

/*****************/
/* Enquiry forms */
/*****************/

#enquiry * { font-size: 100%; }

#enquiry div {
	margin: 1em 0;
	clear: left;
	}
	
#enquiry label {
	float: left;
	width: 140px;
	text-align: right;
	font-weight: bold;
	}
	
#enquiry input, #enquiry textarea {
	display: inline;
	margin-left: 15px;
	}
#enquiry input { 
	width: 220px;
	}
#enquiry textarea {
	width: 400px;
	}

/* Koops mailing list */

#enquiry .koops-mailing-list-radio {
	padding-left: 155px;
	}

#enquiry .koops-mailing-list-radio * {
	float: none;
	}
	
#enquiry .koops-mailing-list-radio p {
	margin: 0;
	padding: 0 0 0.3em 0;
	}

#enquiry .koops-mailing-list-radio input {
	width: 1em;
	border: none;
	}

#koops-msg {
	margin: 1em 0 3em 0;
	font-weight: bold;
	text-align: center;
	}

/* reCaptcha */
div#recaptcha-div, #recaptcha-div div, #recaptcha-div input, #recaptcha-div textarea {
	margin: 0; /* reset #enquiry div etc. */
	clear: none; /* " */
	line-height: 1;
	}
#enquiry #enquiry-captcha label {
	margin-top: 72px;
	}
#enquiry #recaptcha-div {
	position: relative; /* define as CB */
	margin-left: 155px;
	width: 456px;
	background: url(../captcha/logo.gif) scroll no-repeat 350px 15px;
	}
#enquiry #recaptcha_image {
	margin: 15px 0 5px 0;
	border: solid 1px black;
	height: 57px;
	width: 300px;
	background: white;
	}
#enquiry .recaptcha_audio_cant_hear_link {
	padding-left: 1.5em;
	font-weight: bold;
	}
#enquiry #recaptcha-controls {
	position: absolute;
	top: 1px;
	left: 315px;
	}
#enquiry #recaptcha-controls a {
	display: block;
	margin-bottom: 5px;
	}
#enquiry #recaptcha-controls a:hover, #enquiry #recaptcha-controls a:active, #enquiry #recaptcha-controls a:focus {
	outline: solid 2px #F00;
	}
#enquiry #recaptcha_response_field {
	margin-bottom: 15px;
	width: 300px;
	}
	
#enquiry .submit { margin-left: 140px; } /* label width */
	
#enquiry .submit .button {
	padding: 0.15em 1em;
	width: auto;
	font-weight: bold;
	border-style: outset;
	border-width: 2px;
	background: #ddd;
	}

#enquiry .submit .button:hover, #enquiry .submit .button:focus {
	background: #88CEFC;
	}

#enquiry p { /* notes */
	margin: 1em 0 1em 155px;
	text-align: left; /* ++++ */
	}

#enquiry .error { color: #600; }

#enquiry p.error { margin: 0.1em 0 0.5em 155px; }

/***********/
/* Footer  */
/***********/

#footer {
	position: absolute;
	bottom: 0;
	left: 10%;
	width: 80%;
	}

#credits { 
	font-size: 1.2em;
	font-family: "Comic Sans MS", cursive;
	}

#credits a {
	padding-right: 1em;
	line-height: 2;
	}

#credits a:link, #credits a:visited {
 	color: #555;
	text-decoration: none;
	font-weight:bold;
 	}

#credits a:hover, #credits a:active, #credits a:focus {
	color: black;
	text-decoration: underline;
	font-weight:bold;
	}

