:root
{
  font-family: 'StormTypeRegula', 'Georgia', 'Garamond', 'EBGaramond', 'UrzaGaramond', 'Baskerville Old Face', 'Baskerville', 'Bookman Old Style', serif;
  --mode: wide;
}

body
{
  background-position: center top;
  background-repeat: no-repeat;
  text-align: justify;
}

p
{
  margin-left: 0px;
  margin-top: 8px;
  margin-right: 0px;
  margin-bottom: 8px;
}

p:has(+form>#booksBuy)
{
  margin-top: 69px;
}

a
{
  color: inherit;
}

h1
{
  font-weight: bold;
  font-size: 222%;
}

h2
{
  font-weight: bold;
  font-size: 128%;
}

hr
{
  width: 50%;
  margin-left: auto;
  margin-top: 32px;
  margin-right: auto;
  margin-bottom: 32px;
}

input
{
  font-family: inherit;
}

select
{
  font-family: inherit;
}

button
{
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

body>header
{
  position: relative;
  width: 1024px;
  margin-left: auto;
  margin-top: 42px;
  margin-right: auto;
  margin-bottom: 42px;
  padding: 0px;
  text-align: center;
}

body>main
{
  width: 1024px;
  margin-left: auto;
  margin-top: 0px;
  margin-right: auto;
  margin-bottom: 0px;
  padding: 0px;
}

#msg
{
  position: fixed;
  width: 512px;
  left: 50%;
  top: 128px;
  margin-left: -322px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  padding-left: 64px;
  padding-top: 50px;
  padding-right: 64px;
  padding-bottom: 50px;
  z-index: 4;
  text-align: center;
  font-weight: bold;
  color: #ff0000;
}

#msg button
{
  width: 128px;
  margin-left: auto;
  margin-top: 32px;
  margin-right: auto;
  margin-bottom: 0px;
  padding-left: 0px;
  padding-top: 8px;
  padding-right: 0px;
  padding-bottom: 8px;
  text-align: center;
  font-weight: bold;
}

#booksData
{
  display: flex;
}

#booksData .bookButton
{
  background: none;
  border: none;
  padding: 0px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

#booksData .bookData
{
  flex: 1;
}

#booksData .bookData .bookTitle
{
  text-align: center;
}

#booksData .bookData .bookDetail
{
  display: none;
}

#booksData .bookData .bookDetail.visible
{
  display: none;
}

#booksData .arrow
{
  display: inline-block;
  width: 1.10em;
  text-align: center;
}

#booksDetail
{
  display: none;
}

#booksDetail.visible
{
  display: block;
}

#booksBuy
{
  width: 100%;
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 32px;
  table-layout: fixed;
}

#booksBuy th,
#booksBuy td
{
  padding-left: 0px;
  padding-top: 2px;
  padding-right: 0px;
  padding-bottom: 2px;
  vertical-align: middle;
}

#booksBuy th:first-child:not(colspan),
#booksBuy td:first-child:not(colspan)
{
  width: 32%;
  text-align: left;
}

#booksBuy th:not(:first-child),
#booksBuy td:not(:first-child)
{
  width: 17%;
  text-align: center;
}

#booksBuy input[type=number]
{
  width: 2em;
  text-align: center;
  font: inherit;
}

#booksBuy #anag2026virtPrice
{
  width: 3em;
}

#booksBuy #ancap2026virtPrice
{
  width: 3em;
}

#booksBuy #ancap2018virtPrice
{
  width: 3em;
}

#booksBuy #donate
{
  width: 3em;
}

#booksOrder button
{
  display: block;
  width: auto;
  margin-left: auto;
  margin-top: 0px;
  margin-right: auto;
  margin-bottom: 0px;
  padding-left: 110px;
  padding-top: 16px;
  padding-right: 110px;
  padding-bottom: 16px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}

.bookSubheading
{
  font-size: 110%;
  font-style: italic;
}

.bookDescription
{
  font-size: 82%;
}

.bookAuthor
{
  text-align: right;
  font-size: 82%;
}

#salesOrder
{
  width: 100%;
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 32px;
  border-collapse: collapse;
}

#salesOrder th
{
  padding-left: 0px;
  padding-top: 2px;
  padding-right: 0px;
  padding-bottom: 2px;
  text-align: center;
  font-weight: bold;
}

#salesOrder td:first-child
{
  padding-left: 8px;
  padding-top: 2px;
  padding-right: 8px;
  padding-bottom: 2px;
  text-align: left;
}

#salesOrder td:not(first-child)
{
  padding-left: 4px;
  padding-top: 2px;
  padding-right: 4px;
  padding-bottom: 2px;
  text-align: center;
}

#booksDelivery button
{
  display: block;
  width: auto;
  margin-left: auto;
  margin-top: 0px;
  margin-right: auto;
  margin-bottom: 0px;
  padding-left: 32px;
  padding-top: 8px;
  padding-right: 32px;
  padding-bottom: 8px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}

#booksDelivery button[type=submit]
{
  margin-left: auto;
  margin-top: 42px;
  margin-right: auto;
  margin-bottom: 69px;
  padding-left: 110px;
  padding-top: 16px;
  padding-right: 110px;
  padding-bottom: 16px;
}

#booksDelivery button#packetaPicker
{
  margin-left: 0px;
  margin-top: 0px;
  margin-right: auto;
  margin-bottom: 0px;
  font-size: 82%;
}

#addressForm
{
  display: grid;
  grid-template-columns: max-content 169px max-content 144px;
  row-gap: 2px;
  column-gap: 8px;
  align-items: center;
}

#addressForm input
{
  width: 128px;
}

#addressForm #optionalFields
{
  grid-column: 1 / -1;
  margin-left: 0px;
  margin-top: 32px;
  margin-bottom: 0px;
  margin-right: 0px;
}

#paymentForm
{
  margin-left: 0px;
  margin-top: 32px;
  margin-right: 0px;
  margin-bottom: 32px;
}

#paymentInfo
{
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 110px;
}

#salesOrderInfo
{
  margin-left: 0px;
  margin-top: 110px;
  margin-right: 0px;
  margin-bottom: 110px;
}

#ibanShow
{
  font-size: 55%;
}

.fiatPayment
{
  display: grid;
  grid-template-columns: max-content max-content;
  row-gap: 2px;
  column-gap: 32px;
  align-items: center;
  margin-left: 0px;
  margin-top: 8px;
  margin-right: 0px;
  margin-bottom: 8px;
}

.hidden
{
  display: none;
}

.small
{
  font-weight: lighter;
  font-size: 82%;
}

.compact
{
  margin: 0px;
}

.wholeLine
{
  grid-column: 1 / -1;
}

.backLink
{
  margin: 32px;
  text-align: center;
}

#endlogo
{
  display: block;
  width: 256px;
  height: 256px;
  clear: both;
  margin-left: auto;
  margin-top: 128px;
  margin-right: auto;
  margin-bottom: 64px;
  border: 0px;
}

#endlogo img
{
  width: 256px;
  height: 256px;
}

#banner
{
  display: block;
  margin: 0px;
  padding-left: 16px;
  padding-top: 32px;
  padding-right: 16px;
  padding-bottom: 32px;
  color: #000000;
  background-color: #ffd700;
  text-align: center;
  font-weight: bold;
  font-size: 256%;
}

#bannerLink 
{
  display: block;
  border: 0px solid #ffd700;
  text-decoration: none;
}

@media only screen and (max-width: 1023px)
{
  :root
  {
    --mode: narrow;
  }
  
  body
  {
    min-width: 256px;
    padding: 16px;
    width: auto;
    line-height: 1.5;
    max-width: 969px;
  }
  
  body>header
  {
    width: 100%;
  }
  
  body>main
  {
    width: 100%;
  }
  
  #msg
  {
    width: 100%;
    left: 0px;
    box-sizing: border-box;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    padding-left: 32px;
    padding-top: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
  }
  
  #booksData
  {
    flex-direction: column;
  }
  
  #booksData .bookData .bookDetail.visible
  {
    display: block;
  }
  
  #booksDetail.visible
  {
    display: none;
  }
  
  #booksBuy,
  #booksBuy tbody,
  #booksBuy tfoot
  {
    display: block;
    width: 100% !important;
  }
  
  #booksBuy thead
  {
    display: none;
  }
  
  #booksBuy tr
  {
    display: block;
    width: 100% !important;
    margin-left: 0px;
    margin-top: 16px;
    margin-right: 0px;
    margin-bottom: 16px;
  }
  
  #booksBuy th,
  #booksBuy td
  {
    display: block;
    width: 100% !important;
    padding: 0px;
    vertical-align: middle;
  }
  
  #booksBuy th:first-child,
  #booksBuy td:first-child
  {
    text-align: center;
    font-weight: bold;
  }
  
  #booksBuy th[data-label]::before,
  #booksBuy td[data-label]::before
  {
    content: attr(data-label) ': ';
  }
  
  #addressForm
  {
    grid-template-columns: max-content 169px;
  }
  
  #endlogo
  {
    display: block;
    position: static;
    width: 256px;
    height: 256px;
    left: auto;
    top: auto;
    margin-left: auto;
    margin-top: 64px;
    margin-right: auto;
    margin-bottom: 0px;
  }
  
  #endlogo img
  {
    width: 256px;
    height: 256px;
    left: 0px;
    top: 0px;
  }
}
