#maincontent.cart {
  padding: 10% 8% 14% 8%;
}

/* Navigation */

.cart .cart-navigation {
  padding: 0;
  margin: 0;
  margin-bottom: 1em;
  
  white-space: nowrap;
}

.cart .cart-navigation li {
  box-sizing: border-box;
  display: inline-block;
  overflow: hidden;
  
  width: 24%;
  
  margin: 0 0.34%;
  padding: 0.5em;
  
  background-color: #ecefef;
  border: 0;
  
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: #a3abab;
  text-align: center;
  text-overflow: ellipsis;
}

.cart:not(.invoiceaddress):not(.shippingaddress):not(.checkout):not(.confirmation):not(.success):not(.error):not(.orderreceived) .cart-navigation .navigation-cart,
.cart.invoiceaddress .cart-navigation .navigation-data,
.cart.shippingaddress .cart-navigation .navigation-data,
.cart.checkout .cart-navigation .navigation-checkout,
.cart.confirmation .cart-navigation .navigation-confirmation,
.cart.success .cart-navigation .navigation-confirmation,
.cart.error .cart-navigation .navigation-confirmation,
.cart.orderreceived .cart-navigation .navigation-confirmation {
  background-color: #47504f;
  color: white;
}

.cart h1 {
  height: 0.8em;
  
  font-size: 120%;
  font-weight: normal;
  text-align: center;
}

.cart input[type=submit],
.cart a.button {
  box-sizing: border-box;
  display: inline-block;
  
  width: 14em;
  
  padding: 0.5em 2em;
  
  background-color: #47504f;
  border: 0;
  
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: white;
  text-align: center;
  
  cursor: pointer;
}

.cart input[type=submit],
.cart a.button.submit {
  position: absolute;
  right: 9%;
}

/* Tabelle */

.cart table {
  width: 100%;
  
  margin-bottom: 1em;
  
  border-collapse: collapse;
  
  font-size: 70%;
}

.cart table td {
  padding: 0.2em;
}

.cart table td input[readonly] {
  border: none;
  
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.cart table td.image img {
  max-width: 6em;
  max-height: 6em;
}

.cart table tr th,
.cart table tr.item td,
.cart table tr.empty td {
  padding: 1em 0;
  
  border-width: 1px 0;
  border-style: solid;
  border-color: #47504f;
}

.cart table tr.item td {
  padding: 0.4em 0;
}

.cart table tr.item:not(:first-of-type) td {
  border-top-width: 0;
}

.cart table tbody:before {
    content: "";
    display: block;
    height: 0.6em;
}

.cart table tr.total {
  font-weight: bold;
}



.cart table tr .amount,
.cart table tr .image,
.cart table tr .tax {
  text-align: center;
}

.cart table tr .title,
.cart table tr .isbn {
  text-align: left;
}

.cart table tr .unitprice,
.cart table tr .price {
  text-align: right;
}

.cart table tr .currency {
  text-align: right;
}

.cart table .amount {
  width: 8em;
}

.cart table .image {
  width: 7em;
}

.cart table .title {
  width: 19em;
}

.cart table .currency {
  width: 2em;
}

.cart table .unitprice,
.cart table .price {
  width: 3.5em;
}

.cart table .amount span {
  display: inline-block;
  width: 3em;
  
  padding: 0.35em 0.4em;
  margin: 0 0 2.5em 0;
  
  background-color: #ebeeee;
  
  text-align: center;
}

.cart table .amount .buttons {
  display: inline-block;
  position: relative;
  
  top: 1em;
}

.cart table .amount .buttons a {
  display: block;
  
  padding: 0.25em 0.65em;
  margin: 0.8em;
  
  background-color: #ebeeee;
  
  font-size: 70%;
}

.cart table .amount .buttons a.removeall {
  display: none;
}

.cart table tr.calc.subtotal td {
  padding-top: 1em;
}

.cart table tr.empty td {
  font-weight: bold;
  text-align: center;
}

/* Addressfelder */

.cart fieldset {
  margin: 0;
  padding: 3em 0;
  
  border-width: 1px 0 0 0;
  border-style: solid;
  border-color: #47504f;
  
  font-size: 70%;
}

.cart fieldset legend {
  display: none;
}

.cart fieldset input[type=text] {
  width: 60%;
  
  padding: 0.15em 0.6em;
  margin-right: 0.3em;
  
  border: none;
  background-color: #e6eaf5;
  
  font-family: inherit;
  font-size: 140%;
}

.cart fieldset .column {
  float: left;
  width: 50%;
}

.cart fieldset .column label {
  display: inline-block;
  width: 6em;
}
.cart fieldset .column div {
  margin-bottom: 1em;
}

.cart fieldset .column .title {
  margin-left: 6em;
  height: 2em;
}

.cart fieldset .column .title label {
  width: auto;
}

.cart fieldset .column.rightcolumn {
  padding-top: 3em;
}

.cart fieldset .sameaddress {
  clear: left;
}

.cart fieldset .hint {
  text-align: right;
}

.cart fieldset div.invalid input {
  border: 1px solid #bf7c7f;
}

.cart fieldset div.invalid {
  color: #af1a1c;
}

/* Checkout */

.cart.checkout section {
  padding: 0 1em;
  
  font-size: 70%;
}

.cart.checkout section h2 {
  font-weight: normal;
  margin: 0 0 1em 0;
}

.cart.checkout section footer h2 {
  font-weight: normal;
  margin: 0 0 0.5em 0;
}

.cart.checkout .checkout-aligned {
  clear: left;
  
  padding-top: 1em;
  
  border-top: 1px solid #47504f;
  
  white-space: nowrap;
}

.cart.checkout .checkout-aligned section {
  box-sizing: border-box;
  float: left;
  position: relative;
  
  width: 25%;
  height: 20em;
  
  border-left: 1px solid #47504f;
  
  white-space: initial;
}

.cart.checkout .checkout-aligned section:first-child {
  border-left: none;
}

.cart.checkout .checkout-aligned section footer {
  box-sizing: border-box;
  position: absolute;
  
  width: 100%;
  
  left: 0;
  bottom: 0;
  
  padding: 0 1em;
}

.cart.checkout .checkout-aligned section footer .desc {
  display: inline-block;
  width: 60%;
}

.cart.checkout .checkout-aligned section footer .value {
  display: inline-block;
  width: 30%;
}

.cart.checkout .checkout-aligned section footer .edit-link {
  width: 100%;
  text-align: right;
}

.cart.checkout .checkout-aligned section footer .edit-link a {
  padding: 0 0.2em;
  
  background-color: #ebeeee;
  
  font-size: 140%;
}

.cart.checkout form {
  clear: left;
  
  padding: 3em 0;
}

.cart.checkout section.terms {
  box-sizing: border-box;
  
  width: 50%;
  
  margin-bottom: 1em;
  padding: 1.5em 0;
  
  border-width: 1px 0;
  border-style: solid;
  border-color: #47504f;
}

.cart.checkout img.logo {li
  margin: 1.7em 0 2.3em 2.2em;
  width: 47%;
}

.cart.checkout table {
  font-size: inherit;
}

/* Messages */

/* Error message */

.cart.error,
.cart.success,
.cart.orderreceived {
  text-align: center;
}

.cart.error h1 {
  display: inline-block;
  position: relative;
  
  width: 5em;
  height: 3em;
  
  top: -1em;
  
  margin-bottom: -2.4em;
  
  background-image: url("./img/fussel_zorn.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: white;
}

.cart.success .message,
.cart.error .message,
.cart.orderreceived .message {
  min-height: 8.5em;
  
  padding: 8em 0 8em 0;
  
  border-width: 1px 0;
  border-style: solid;
  border-color: #47504f;
  
  font-size: 70%;
}

.cart.success .message-wrapper,
.cart.orderreceived .message-wrapper {
  display: inline-block;
  
  width: auto;
  
  padding: 1em 3em;
  margin: -1em 0;
  
  background-image: url("./img/fussel_freude.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 5em auto;
}

.cart.orderreceived .message-wrapper {
  padding: 1em 7em;
  margin: -1em 0;
  
  background-position-y: 15%;
}

.cart.success .message p,
.cart.error .message p,
.cart.orderreceived .message p {
  margin: 0.6em;
}

.cart.success .message p.spacer,
.cart.error .message p.spacer {
  margin-bottom: 2em;
}

.cart.orderreceived .message p.spacer {
  margin-bottom: 1em;
}

.cart.orderreceived #paypal-button-container > .paypal-buttons {
  max-width: 10vw;
}