/* Generic */
body {
	background-color: #5a9ed9;
}

p {
	margin: 1em 0;
}

h1 {
	margin: 0.5em 0;
	font-size: xx-large;
}

h2 {
	margin: 0.5em 0;
	font-size: x-large;
}

h3 {
	margin: 0.5em 0;
	font-size: large;
}

h4 {
	margin: 0.5em 0;
}

.header-replace {
	background-repeat: no-repeat;
	text-indent: -999px;
	overflow: hidden;
}

.clearer { clear: both; }

/* Main layout and header */
#container {
       width: 60em;
       margin: 0 auto 2em auto;
}

#header h1 {
	margin: 0;
}

#header h1 a {
	display: block;
	overflow: hidden;
	width: 532px;
	height: 164px;
	background-image: url(/img/feral-penguin-logo.png);
	text-indent: -999px;
}

/* Navigation and tabs */
#nav {
	margin-top: -40px;
	height: 39px;
	padding-left: 26em;
}

#nav ul {
	overflow: hidden;
	height: 58px;
}

#nav li {
	display: inline;
	list-style: none;
}

#nav a {
	display: block;
	float: left;
	padding-top: 39px;
	overflow: hidden;
	height: 0px !important;
	background-color: #9f9;
}

#nav a.active {
	padding-top: 58px;
}

#tab-shop a {
	width: 97px;
	background: transparent url(/img/tab-shop.png) no-repeat scroll top left;
}

#tab-support a {
	width: 137px;
	background: transparent url(/img/tab-support.png) no-repeat scroll top left;
}

#tab-about a {
	width: 111px;
	background: transparent url(/img/tab-about.png) no-repeat scroll top left;
}

#tab-contact a {
	width: 142px;
	background: transparent url(/img/tab-contact.png) no-repeat scroll top left;
}

/* Main content */
#content {
	background-color: #fff;
	padding: 2em 2em 1em 2em;
	border: 4px solid #0045ce;
	border-radius: 25px;
	-o-border-radius: 25px;
	-moz-border-radius: 25px;
	-icab-border-radius: 25px;
	-khtml-border-radius: 25px;
	-webkit-border-radius: 25px;
}

/* Flash message */
#flashMessage {
	padding: 1em;
	margin-bottom: 1em;
	background-color: #fcc;
	border: 3px solid #f00;
	border-radius: 25px;
	-o-border-radius: 25px;
	-moz-border-radius: 25px;
	-icab-border-radius: 25px;
	-khtml-border-radius: 25px;
	-webkit-border-radius: 25px;
}

/* Control box */
#control-box {
	width: 20em;
	float: right;
	margin-left: 1em;
	margin-bottom: 1em;
	padding: 0.5em;
	background: #f6c75d url(/img/control-box.png) repeat-x scroll top left;
	border: 3px solid #de9542;
	border-radius: 25px;
	-o-border-radius: 25px;
	-moz-border-radius: 25px;
	-icab-border-radius: 25px;
	-khtml-border-radius: 25px;
	-webkit-border-radius: 25px;
}

#control-box h4 {
	padding: 1em;
	text-align: center;
	font-weight: normal;
}

#control-box .username {
	font-weight: bold;
}

#control-box ul {
	margin-left: 3em;
}

#control-box li {
	margin: 0 0 1em 0;
}

#control-box li a { padding-left: 2em; }
#cb-account a { background: transparent url(/img/cb-account.png) no-repeat scroll center left; }
#cb-cart    a { background: transparent url(/img/cb-cart.png)    no-repeat scroll center left; }
#cb-login   a { background: transparent url(/img/cb-login.png)   no-repeat scroll center left; }

#control-box a, #control-box a:visited {
	color: #000;
	text-decoration: none;
}

/* Subcategory view */
#subcategories {
	clear: both;
	padding: 1em 30px;
	background: #fff9b9 url(/img/categories.png) repeat-x scroll top left;
	border: 3px solid #ffd88b;
	border-radius: 25px;
	-o-border-radius: 25px;
	-moz-border-radius: 25px;
	-icab-border-radius: 25px;
	-khtml-border-radius: 25px;
	-webkit-border-radius: 25px;
}

#subcategories li {
	float: left;
	width: 12em;
	padding: 6px;
	font-size: xx-large;
}

#subcategories img { vertical-align: middle; }
#subcategories li.left { clear: left; }

#subcategories a, #subcategories a:visited {
	color: #000;
	text-decoration: none;
}

/* Featured products */
#products {
	display: table;
	width: 57em;
	margin-left: -1em;
	margin-right: -1em;
	border-spacing: 1em;
}

#products h3 {
	margin-top: 24px;
}

.product-group{
	clear: both;
	display: table-row;
}

.product-box {
	display: table-cell;
	width: 33%;
	padding: 1em 2em;
	background: transparent url(/img/product-gradient.png) repeat-x scroll top left;
	overflow: hidden;
	border: 3px solid #c5d8d8;
	border-radius: 25px;
	-o-border-radius: 25px;
	-moz-border-radius: 25px;
	-icab-border-radius: 25px;
	-khtml-border-radius: 25px;
	-webkit-border-radius: 25px;
}
.product-box.last { margin-right: 0; }

.product-box h4 {
	padding: 0;
	margin-bottom: 1em;
	text-align: center;
}

.product-box .button {
	display: block;
	margin: 1em auto 0 auto;
}

/* Product view */
#product-view { clear: none; }
#product-view form { width: 100%; clear: none; }
#product-configure { width: 30em; clear: none; }
#product-configure dl { width: 30em; }
#product-configure label { display: inline; }

#quantity {
	display: inline;
	width: 3em;
}

#product-configure dd {
	font-size: 80%;
	line-height: 1em;
}

#product-configure input[type="radio"] {
	float: none;
}

#product-focus {
	clear: right;
	float: right;
	width: 20em;
	margin-top: 1em;
	padding: 0.5em;
	background: transparent url(/img/product-gradient.png) repeat-x scroll top left;
	overflow: hidden;
	border: 3px solid #c5d8d8;
	border-radius: 25px;
	-o-border-radius: 25px;
	-moz-border-radius: 25px;
	-icab-border-radius: 25px;
	-khtml-border-radius: 25px;
	-webkit-border-radius: 25px;
	text-align: center;
}

#product-price { font-weight: bold; }

input[type=submit].add-to-cart {
	display: block;
	font-size: x-small;
	width: 177px;
	height: 29px;
	overflow: hidden;
	text-indent: -999px;
	border: 0;
	background: transparent url(/img/add-to-cart.png) no-repeat scroll top left;
	cursor: pointer;
}

/* Shopping cart */

#cart td.price, td.price { width: 8em; text-align: right; }
#cart .currency, .currency { display: block; float: left; }

#cart table { border: none; }
#cart td { text-align: left; border: none; }
#cart td.part { padding-left: 4em; }
#cart .subtotal { border-top: 1px solid #999;}

#cart .total {
	font-weight: bold;
	border-bottom: 3px double #999;
}

/* Checkout address selection */

#addressSelect label {
	margin-left: 2em;
	margin-bottom: 1em;
}

/* Order conformation */
#cartConfirm {
	width: 100%;
}

/* View order */
#orderView dt { font-weight: normal; }

.stamp input[type=submit] {
	padding: 0;
	vertical-align: top;
	margin-top: 1px;
}

/* Message */
#message-view {
	width: 80%;
	margin: 0 auto;
	padding: 3em;
	background: transparent url(/img/product-gradient.png) repeat-x scroll top left;
	overflow: hidden;
	border: 3px solid #c5d8d8;
	border-radius: 25px;
	-o-border-radius: 25px;
	-moz-border-radius: 25px;
	-icab-border-radius: 25px;
	-khtml-border-radius: 25px;
	-webkit-border-radius: 25px;
}
#message-ok {
	width: 80%;
	margin: 1em auto;
	padding: 0;
}

/* Footer */
#footer {
	text-align: center;
}

#footer p {
	color: #fff;
	font-size: small;
}

#footer a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px dotted #fff;
}

/* Scaffold View */
dl {
	line-height: 2em;
	margin: 0em 0em;
}
dt {
	font-weight: bold;
	padding-left: 4px;
	vertical-align: top;
}
dd {
	margin-left: 10em;
	margin-top: -2em;
	vertical-align: top;
}

/* Paging */
div.paging {
	background:#fff;
	color: #ccc;
	margin-bottom: 2em;
}
div.paging div.disabled {
	color: #ddd;
	display: inline;
}
div.paging span {
}
div.paging span.current {
	color: #000;
}
div.paging span a {
}

/* Forms */
form {
	clear: both;
	margin-right: 20px;
	padding: 0;
	width: 80%;
}
fieldset {
	border: 1px solid #ccc;
	margin-top: 30px;
	padding: 16px 20px;
}
fieldset legend {
	background:#fff;
	color: #0045ce;
	font-size: large;
	font-weight: bold;
}
fieldset fieldset {
	margin-top: 0px;
	margin-bottom: 20px;
	padding: 16px 10px;
}
fieldset fieldset legend {
	font-size: 120%;
	font-weight: normal;
}
fieldset fieldset div {
	clear: left;
	margin: 0 20px;
}
form div {
	clear: both;
	margin-bottom: 1em;
	padding: .5em;
	vertical-align: text-top;
}
form div.input {
	color: #444;
}
form div.required {
	color: #333;
	font-weight: bold;
}
form div.submit {
	border: 0;
	clear: both;
	margin-top: 10px;
	margin-left: 140px;
}
label {
	display: block;
	padding-right: 20px;
}
input, textarea {
	clear: both;
	font-family: "frutiger linotype", "lucida grande", "verdana", sans-serif;
	padding: 2px;
	width: 100%;
}
input.button {
	width: auto;
	padding: 0;
}
select {
	clear: both;
	vertical-align: text-bottom;
}
select[multiple=multiple] {
	width: 100%;
}
option {
	padding: 0 3px;
}
input[type=checkbox] {
	clear: left;
	float: left;
	margin: 0px 6px 7px 2px;
	width: auto;
}
input[type=radio] {
	float:left;
	width:auto;
	margin: 0 3px 7px 0;
}
div.radio label {
	margin: 0 0 6px 20px;
}
input[type=submit] {
	display: inline;
	padding: 2px 5px;
	width: auto;
	vertical-align: bottom;
}
textarea.monospace {
	font-family: monospace;
}

/*  Actions  */
div.actions ul {
	margin: 0px 0;
	padding: 0;
}
div.actions li {
	display: inline;
	list-style-type: none;
	line-height: 2em;
	margin: 0 2em 0 0;
	white-space: nowrap;
}
div.actions ul li a {
	background:#fff;
	color: #003d4c;
	text-decoration: none;
}
div.actions ul li a:hover {
	color: #333;
	text-decoration: underline;
}

/* Related */
div.related {
	clear: both;
	display: block;
}

/* Tables */
.adminIndex table td {
	font-size: small;
}

table {
	background: #fff;
	border: 1px solid #ccc;
	clear: both;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
}
th {
	background: #f2f2f2;
	border:1px solid #ccc;
	text-align: center;
}
th a {
	background:#f2f2f2;
	display: block;
	padding: 2px 4px;
	text-decoration: none;
}
th a:hover {
	background: #ccc;
	color: #333;
	text-decoration: none;
}
table tr td {
	background: #fff;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	padding: 4px;
	text-align: center;
	vertical-align: top;
}
table tr.altrow td {
	background: #f4f4f4;
}
td.actions {
	text-align: center;
	white-space: nowrap;
}
td.actions a {
	margin: 0px 6px;
}
.cake-sql-log table {
	background: #f4f4f4;
}
.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
}
