html {
  overflow-y: scroll;
}
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
}

#page {
  width: 1058px;
  margin: 30px auto 50px auto;
  padding: 0;
}

#top {
  position: relative;
  width: 1058px;
  height: 263px;
  background: url(allb.png) -9px -63px no-repeat;
}
#top h1 {
  visibility: hidden;
  margin: 0;
  padding: 0;
}
#menu {
  position: absolute;
  display: block;
  left: 335px;
  top: 182px;
  margin: 0;
  padding: 0;
}
#menu li {
  display: block;
  float: left;
  margin: 0;
  padding: 0;
}
#menu a {
  display: block;
  margin: 0;
  padding: 0 20px;
  border-right: 1px solid #fff;
  text-decoration: none;
}
#menu li:last-child a {
  border-right: none;
}
#menu a > div {
  border-bottom: 2px solid #808080;
  font: bold 17px/32px Georgia, serif;
  vertical-align: 0;
  color: #bcbcbc;
}
#menu a:active > div, #menu a:hover > div {
  color: #fff;
  border-bottom: 2px solid #fff;
}

#middle {
  position: relative;
  width: 1031px;
  margin-left: 19px;
  padding-bottom: 50px;
  background: #000;
}
#border {
  position: absolute;
  left: 192px;
  width: 9px;
  height: 100%;
  background: url(allb.png) 0 0 repeat-y;
}

#left {
  float: left;
  width: 172px;
  padding: 0 10px;
  background: #000;
}
#left h3 {
  width: 164px;
  margin: 0;
  padding: 0;
  font: bold 20px Georgia, serif;
  color: #bcbcbc;
  border-bottom: 1px solid #2f2f2f;
}
#left ul {
  font: 14px/20px Georgia, serif;
  margin: 0 0 25px 22px;
  padding: 0;
}
#left li {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-indent: -10px;
}
#left li > b {
  color: #777;
  font-weight: normal;
}
#left a {
  color: #bcbcbc;
  text-decoration: none;
}
#left a:active, #left a:hover {
  color: #fff;
  text-decoration: underline;
}

#footer {
  width: 979px;
  margin-left: 19px;
  padding: 7px 40px 0 12px;
  font: 15px/18px Georgia, serif;
  border-top: 1px solid #fff;
}
#footer ul {
  display: block;
  margin: 0;
  padding: 0;
}
#footer li {
  display: block;
  float: left;
  padding: 0 12px 0 38px;
  background: url(allb.png) -772px -40px no-repeat;
}
#footer a {
  color: #bcbcbc;
  text-decoration: none;
}
#footer a:active, #footer a:hover {
  color: #fff;
}
#footer p {
  margin: 0;
  padding: 0;
  text-align: right;
  color: #bcbcbc;
}

.basket-count {
  color: #f99;
}
.clear {
  clear: both;
}
.clear-right {
  clear: right;
}
.center {
  text-align: center !important;
}

ul.plain {
  display: block;
  margin: 0;
  padding: 0;
}
ul.plain > li {
  display: block;
  margin: 0;
  padding: 0;
}

#content {
  margin-left: 190px;
  padding: 0 42px;
  font: 12px Arial, sans-serif;
}

#content a {
  color: #bcbcbc;
  text-decoration: none;
}
#content a:active, #content a:hover {
  text-decoration: underline;
  color: #fff;
}

h2 {
  height: 80px;
  margin: 0;
  background: url(allb.png) -11px 43px no-repeat;
  font: 40px Georgia, serif;
  letter-spacing: 2px;
  text-align: center;
  color: #bcbcbc;
}
h2.pinned {
  background: url(allb.png) -771px 43px no-repeat;
}

#content h3 {
  margin-top: 2em;
  border-bottom: 3px solid #f00;
  font: bold 20px Georgia, serif;
  line-height: 1px;
}
#content h3 span {
  padding-right: 0.5em;
  background: #000;
  color: #f00;
}

.book {
  position: relative;
  width: 590px;
  overflow: hidden;
  margin: 0 auto 25px auto;
  padding: 0 0 25px 164px;
  border-bottom: 1px solid #bcbcbc;
}
.book.pinned {
  background: #2f2f2f;
  margin: 0 1px 25px 1px;
}
.book.pinned.first {
  margin-bottom: 0;
  background: #2f2f2f url(allb.png) -9px -342px no-repeat;
}
.book.pinned.middle {
  margin-bottom: 0;
  padding-top: 25px;
}
.book.pinned.last {
  margin-bottom: 25px;
  border-bottom: none;
}
.book-pinned-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 754px;
  height: 26px;
  background: #2f2f2f url(allb.png) -12px -37px no-repeat;
}
.book h5 {
  margin: 0 5px;
  padding: 0;
  font: bold 14px Arial, sans-serif;
  color: #bcbcbc;
}
.book p {
  margin: 12px 5px;
  padding: 0;
  font: 12px Arial, sans-serif;
  color: #fff;
}
.book-info {
  position: absolute;
  bottom: 13px;
  width: 400px;
  z-index: 1;
}
.book-info.reserved {
  bottom: 70px;
}
.book-price {
  font-weight: bold;
  color: #f00;
}
.book-price s {
  color: #b66;
}

.book-spacer {
  margin-bottom: 75px;
}
.book-state {
  position: absolute;
  right: 17px;
  bottom: 25px;
  width: 570px;
  height: 45px;
  background: #2f2f2f;
}
.book-state h6 {
  position: absolute;
  left: 10px;
  top: 7px;
  margin: 0;
  padding: 0;
  font: bold 27px Arial, sans-serif;
  color: #f00;
}
.book-state p {
  margin: 0;
  padding: 8px 8px 8px 190px;
  font: 11px Arial, sans-serif;
  color: #f00;
}

.basket-btn {
  display: block;
  position: absolute;
  right: 0px;
  bottom: 28px;
  width: 178px;
  height: 26px;
  margin-top: -10px;
  padding-top: 45px;
  text-align: center;
  color: #555 !important;
  font: bold 15px Georgia, serif;
}
a:active.basket-btn, a:hover.basket-btn {
  color: #000 !important;
  text-decoration: none !important;
}
.basket-btn.add {
  background: url(allb.png) -1067px -40px no-repeat;
}
.basket-btn.remove {
  background: url(allb.png) -1245px -40px no-repeat;
}
.basket-btn.reserved {
  position: static;
  float: right;
  margin-bottom: 60px;
}

.basket-btn-multi {
  display: block;
  float: right;
  width: 178px;
  text-align: center;
  font: 12px Georgia, serif;
}
.basket-btn-multi.add {
  height: 73px;
  padding-top: 45px;
  background: url(allb.png) -1067px -111px no-repeat;
  color: #000;
}
.basket-btn-multi.add input {
  border: 1px solid #000;
  background: none;
  color: #000;
}
.basket-btn-multi.remove {
  height: 78px;
  padding-top: 40px;
  background: url(allb.png) -1245px -111px no-repeat;
  color: #000;
}
.basket-btn-multi.remove input {
  border: 1px solid #000;
  background: none;
  color: #000;
}
.basket-btn-multi input.submit {
  border: none;
  background: none;
  color: #555 !important;
  font: bold 15px Georgia, serif;
}
.basket-btn-multi input:hover.submit {
  color: #000 !important;
  cursor: pointer;
}

.pinned .add-to-basket {
  bottom: 35px;
}
.pinned .book-img-wnd {
  margin-bottom: 10px;
}

.pager {
  margin-right: 3px;
  font: 15px Georgia, serif;
  color: #fff;
  text-align: right;
}
.pager a {
  color: #bcbcbc;
  text-decoration: none;
}
.pager a:active, .pager a:hover {
  color: #f00;
  text-decoration: underline;
}
.pager-cur {
  font-weight: bold;
}
.pager-count {
  float: left;
  margin-left: 3px;
  font: 15px Georgia, serif;
  color: #fff;
}
.pager-top {
  width: 752px;
  margin: 0 1px 25px 1px;
  padding: 10px 1px;
  border-bottom: 1px solid #bcbcbc;
}
.pager-top.pinned {
  width: 752px;
  margin: 0 1px;
  padding: 5px 1px;
  border-bottom: none;
  background: #2f2f2f;
}
.pager-bottom {
  width: 752px;
  margin: -10px 1px 0 1px;
  padding: 0 1px;
}


.book-images {
  float: left;
  position: relative;
  margin-left: -164px;
}
.book-img-wnd {
  position: relative;
  margin: 0 15px;
  overflow: hidden;
  border: 2px solid #2f2f2f;
  width: 132px;
  height: 189px;
  background: #000;
}
.book-img-wnd ul {
  position: absolute;
  list-style: none;
  left: 0;
  margin: 0;
  padding: 0;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  transform: translateX(0);
  -moz-transition: all 150ms ease-in-out;
  -webkit-transition: all 150ms ease-in-out;
  transition: all 150ms ease-in-out;
}
.book-img-wnd ul li {
  display: block;
  float: left;
  text-align: center;
  border: 1px solid #000;
  width: 130px;
  height: 185px;
  line-height: 185px;
}
.book-img-wnd ul li a {
  display: block;
  width: 100%;
  height: 100%;
}
.book-img-wnd ul li img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}
.book-img-selector {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  padding: 0 15px 0 20px;
  font: 12px/22px Arial, sans-serif;
  color: #767676;
}
.book-img-selector span {
  float: right;
  font: bold 16px Arial, sans-serif;
  letter-spacing: 5px;
  color: #2f2f2f;
  text-shadow: 0 0 2px #888;
  cursor: pointer;
}
.book-img-selector span.selected {
  color: #bcbcbc;
}

.admin-stuff {
  color: #4c4 !important;
}
.admin-book-btn {
  margin: 2px 5px;
  padding: 2px 4px;
  float: right;
}
.admin-book-btn:hover {
  text-decoration: none !important;
  background: rgba(255, 255, 255, .2);
}
.admin-archived-order {
  color: #f00;
}
.admin-publish-btn {
  display: block;
  position: absolute;
  right: 0;
  bottom: 25px;
}

.edittable {
  width: 100%;
  margin: 1em auto;
  padding: 10px;
  border-radius: 5px;
  background: #2f2f2f;
  color: #fff;
  font: 13px/22px Arial;
}
.edittable th {
  width: 160px;
  text-align: right;
  vertical-align: top;
  font-weight: normal;
}
.edittable td {
  text-align: left;
  vertical-align: top;
}
.edittable.sticky-bottom {
  position: sticky;
  bottom: -5px;
  z-index: 1;
}
form .fW {
  width: 410px;
}
form textarea {
  font: 13px Arial;
}
h4 {
  font-size: 18px;
  text-align: center;
}

.form-buttons {
  padding-top: 12px;
  text-align: center;
}
.form-buttons input {
  width: 140px;
}
.fiw {
  width: 35em;
}

.basket-contents {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  border-spacing: 0;
}
.basket-contents th {
  font-weight: normal;
}
.basket-contents td {
  padding: 2px 5px;
  vertical-align: top;
  font-size: 12px;
}
td.basket-total-desc {
  border-left: none !important;
  padding-right: 0.5em;
  text-align: right;
}
td.basket-total-num {
}
tr.basket-postage {
}
.basket-empty {
  font-style: italic;
  text-align: center;
}
.basket-col-id {
  width: 5.5em;
}
.basket-col-title {
}
.basket-col-state {
  width: 6em;
}
.basket-col-price {
  width: 5em;
}
.basket-internal-note {
  margin: 0;
  padding: 0 0 0 1em;
  font-size: 80%;
}

.basket-contents th {
  background: #2f2f2f;
  border: 1px solid #fff;
}
.basket-contents td {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}
td.basket-total-desc {
  border-top: 1px solid #fff;
}
td.basket-total-num {
  border: 1px solid #fff;
}
tr.basket-postage {
  border-top: 1px solid #fff;
}
.basket-empty {
  border-bottom: 1px solid #fff;
}

.form-info {
  width: 400px;
  padding-left: 25px;
  font-size: 90%;
  line-height: normal;
  color: #777;
}

.order-form hr {
  border: none;
  border-bottom: 1px solid black;
  margin: 1em 0 0.3em 0;
}

.order-review-form {
  width: 100%;
  font-size: 100%;
}
.order-review-form th {
  width: 11em;
  padding-right: 1em;
  text-align: right;
  vertical-align: top;
}

.orders-list {
  width: 100%;
  margin: 1em 0;
  border-spacing: 0;
  border-collapse: collapse;
}
.orders-list th {
  font-weight: normal;
  padding: 0.2em;
  text-align: left;
  font-size: 90%;
}
.orders-list td {
  margin: 0;
  padding: 2px;
  font-size: 12px;
  vertical-align: top;
}
.orders-list td {
  cursor: pointer;
}
.orders-list td a {
  text-decoration: none;
}
.orders-list tr.l1 {
}
.orders-list tr.l2 {
}
.orders-list tr:hover {
}
.orders-empty {
  font-style: italic;
  text-align: center;
}
.orders-col-id {
  width: 3em;
}
.orders-col-address {
}
.orders-col-content {
}
.orders-col-state {
}
.orders-col-dates {
  width: 11em;
}
.orders-empty {
  font-style: italic;
  text-align: center;
}
.orders-state-2 {
}

.order-review-form {
  border: 1px solid #000;
}
.orders-list {
  border: 1px solid #000;
  border-right: none;
  color: #ccc;
}
.orders-list th {
  background: #2f2f2f;
  border-right: 1px solid #000;
}
.orders-list td {
  border-right: 1px solid #000;
}
.orders-list tr.l1 {
  background: #000;
}
.orders-list tr.l2 {
  background: #0a0a0a;
}
.orders-list tr:hover {
  background: #171717;
}
.orders-state-1 {
  color: #2a2;
}
.orders-state-2 {
  color: #a22;
}
.orders-state-3 {
  color: #bb0;
}


.suggestion_list {
  background: #111;
  border: 1px solid #888;
  font: 13px/22px Arial;
}
.suggestion_list ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.suggestion_list a {
  padding: 0 2px;
  text-decoration: none;
  color: navy !important;
}
.suggestion_list .selected {
  background: navy;
  color: white !important;
}
.suggestion_list .selected a {
  color: white !important;
}
#autosuggest {
  position: absolute;
  display: none;
  text-align: left;
}

.progress-button {
  width: 15em;
}

.form-info .important {
  font-weight: bold;
  color: #c00;
}


.report-table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1em 0;
}
.report-table th {
  font-weight: normal;
}
.report-table td {
  vertical-align: top;
  padding: 2px 5px;
  font-size: 12px;
}
.report-table td a {
  text-decoration: none;
}
.report-table tr.r0 {
}
.report-table tr.r1 {
}
td.report-total-desc {
  border-left: none !important;
  padding-right: 0.5em;
  text-align: right;
}
td.report-total-num {
}
.report-col-id {
  width: 3.2em;
}
.report-col-title {
}
.report-col-state {
  width: 6em;
}
.report-col-price {
  width: 5em;
}

.report-table th {
  background: #2f2f2f;
  border: 1px solid #000;
}
.report-table td {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}
.report-table tr.r1 {
  background: #111;
}
td.report-total-desc {
  border-top: 1px solid #000;
}
td.report-total-num {
  border: 1px solid #000;
}


.search-box {
  margin: 10px;
  padding: 10px;
  border: none;
}

.message-neutral, .message-success, .message-error {
  margin: 0 0 5px 0;
  padding: 5px;
  border-radius: 5px;
  background: #2f2f2f;
}
.message-neutral {
  color: #000;
}
.message-success {
  color: #0c0;
}
.message-error {
  color: #f33;
}

#top-banner {
  margin: 0 0 10px 0;
  padding: 5px;
  border-radius: 5px;
  background: #2f2f2f;
  color: #000;
  font: 25px Georgia, serif;
  text-align: center;
}
#bottom-banner {
  margin: -30px 0 30px 0;
  text-align: center;
}

input[name="delivery_method"] {
  vertical-align: text-bottom;
}
input[name="delivery_method"] ~ label img {
  height: 17px;
  vertical-align: -4px;
}
input[name="delivery_method"]:not(:checked) ~ .form-info.extension {
  display: none;
}

.packeta-widget-selector {
  background: rgba(255, 255, 255, .1);
  color: #99c !important;
}
.packeta-widget-selector.missing {
  color: #f99 !important;
}
#packeta-widget-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
}
#packeta-widget-iframe-wrap {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: 1000px;
  height: 600px;
  border: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  background: transparent;
}
#packeta-widget-iframe {
  width: 100%;
  height: 560px;
  border: none;
}

#packeta-label-preview {
  display: inline-block;
  vertical-align: top;
}
#packeta-label-preview div {
  display: flex;
  width: 5em;
  margin: 5px auto;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 1px 1px 3px rgba(255, 255, 255, .1);
  flex-wrap: wrap;
  align-content: start;
}
#packeta-label-preview span {
  box-sizing: border-box;
  background: #aaa;
  border: 1px solid #fff;
}
#packeta-label-preview span.skip {
  background: #eee;
}
