@charset "utf-8";
/* DRIFTLAND | Modern ticketing/shop CSS
   Replacement for shop(1).css. Retains the existing PHP/HTML selectors.
   Colours and sizing may be adjusted using the variables below. */

:root {
  --dl-bg: #f3f5f7;
  --dl-surface: #ffffff;
  --dl-surface-muted: #f8fafb;
  --dl-ink: #151c24;
  --dl-muted: #586573;
  --dl-line: #dce2e7;
  --dl-dark: #101820;
  --dl-accent: #e63946;
  --dl-accent-hover: #be2734;
  --dl-radius: 14px;
  --dl-shadow: 0 8px 28px rgba(17, 29, 41, .08);
}

/* Scope the refreshed styling to shop elements; don't force capitalisation site-wide. */
#shop, #shop_menu, #shop_main, .shopstyle, .basket, .forms_ticket {
  box-sizing: border-box;
  color: var(--dl-ink);
  font-family: inherit;
  text-transform: none;
}
#shop *, #shop_menu *, #shop_main *, .shopstyle *, .basket *, .forms_ticket * { box-sizing: border-box; }
#shop { width: 100%; max-width: 1440px; margin: 0 auto; }
#shop::after { content: ""; display: table; clear: both; }
#shop #title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--dl-dark);
  margin-bottom: 1rem;
}
#shop #left { float: left; width: 49%; }
#shop #right { float: right; clear: right; width: 49%; }

/* Shop menu — compatible with the existing #shop_menu / #shop_main layout. */
#shop_menu {
  display: inline-block;
  vertical-align: top;
  width: 19%;
  margin: 0 1% 1.5rem 0;
  padding: 0 0 .65rem;
  background: var(--dl-dark);
  color: white;
  text-align: left;
  border: 1px solid #25313b;
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  overflow: hidden;
}
#shop_menu_title {
  display: block;
  padding: 1rem 1.1rem;
  background: #202d38;
  color: #fff;
  border: 0;
  border-bottom: 3px solid var(--dl-accent);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
#shop_menu a:link, #shop_menu a:visited, #shop_menu a:active {
  display: block;
  padding: .75rem 1.1rem;
  color: #e7edf2;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none;
  border-left: 3px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
#shop_menu a:hover, #shop_menu a:focus-visible {
  color: #fff;
  background: #2b3945;
  border-left-color: var(--dl-accent);
  text-decoration: none;
}
#shop_main {
  display: inline-block;
  vertical-align: top;
  width: 79%;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  color: var(--dl-ink);
  background: var(--dl-surface-muted);
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  text-align: center;
}
#shop_smallprint {
  display: block;
  padding: .6rem .8rem;
  color: var(--dl-muted);
  font-size: .8rem;
  line-height: 1.5;
}

/* Product and ticket cards. Preserve the original wrappers and selectors. */
.shopstyle {
  display: block;
  width: 100%;
  margin: 0 auto;
  border-spacing: 0;
  text-align: center;
  background: transparent;
}
.shoprow { display: block; }
.shopitem_A {
  display: inline-block;
  vertical-align: top;
  width: 300px;
  max-width: calc(100% - 1rem);
  margin: .5rem;
}
.shopitem {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  background: var(--dl-surface);
  box-shadow: 0 3px 12px rgba(16,24,32,.05);
  text-align: center;
  font-size: .95rem;
  line-height: 1.55;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shopitem:hover {
  transform: translateY(-3px);
  border-color: #bfc9d1;
  box-shadow: var(--dl-shadow);
}
.shopitem .tickettitle {
  margin: .25rem 0 .75rem;
  color: var(--dl-dark);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
}
.shopitem .ticketimage { position: relative; width: 100%; max-width: 100%; padding: 0; margin: 0 auto .75rem; }
.shopitem .ticketimage img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 9px; object-fit: cover; }
.shopitem .ticketimage .tooltiptext {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 5;
  left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(240px, 90vw);
  padding: .55rem .7rem;
  color: white;
  background: #14202b;
  border-radius: 7px;
  font-size: .8rem;
  line-height: 1.4;
  pointer-events: none;
  transition: opacity .15s ease;
}
.shopitem .ticketimage:hover .tooltiptext,
.shopitem .ticketimage:focus-within .tooltiptext { visibility: visible; opacity: 1; }
.shopitem .ticketprice {
  margin: .75rem 0;
  color: var(--dl-accent-hover);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}
.shopitem .ticketdetails { padding: .65rem 0; color: var(--dl-muted); font-weight: 550; line-height: 1.6; }
.shopitem .forms, #shop .forms {
  width: 100%;
  margin: .75rem auto 0;
  padding: .85rem;
  background: var(--dl-surface-muted);
  border: 1px solid var(--dl-line);
  border-radius: 10px;
  box-shadow: none;
  text-align: center;
  font-size: .95rem;
}
.shopitem .forms br { line-height: 1.1; }
.forms_ticket {
  padding: 1rem;
  background: var(--dl-surface-muted);
  border: 1px solid var(--dl-line);
  border-radius: 12px;
  box-shadow: var(--dl-shadow);
}
/* Preserve the PHP/JS-controlled visibility of this form. */
.replyForm {
  display: none;
  padding: 1rem;
  background: #ecf9f5;
  border: 1px solid #badfd2;
  border-radius: 10px;
  text-align: center;
}

/* Buttons and hyperlinks */
.link_button, .link_button:link, .link_button:visited, .link_button:active {
  display: inline-block;
  max-width: 100%;
  margin: .3rem auto;
  padding: .75rem 1.2rem;
  border: 1px solid var(--dl-accent);
  border-radius: 9px;
  background: var(--dl-accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.link_button:hover, .link_button:focus-visible {
  background: var(--dl-accent-hover);
  border-color: var(--dl-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.textlink, .textlink:link, .textlink:visited, .textlink:active {
  display: inline-block;
  padding: .35rem .55rem;
  border: 0;
  border-radius: 5px;
  color: #b52532;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease, background-color .2s ease;
}
.textlink:hover, .textlink:focus-visible { color: #811924; background: #fff0f0; }
#shop a:focus-visible, #shop_menu a:focus-visible, .link_button:focus-visible, .textlink:focus-visible {
  outline: 3px solid #3a91dc;
  outline-offset: 3px;
}
#shop input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#shop select, #shop textarea,
.forms_ticket input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.forms_ticket select, .forms_ticket textarea {
  max-width: 100%;
  padding: .65rem .7rem;
  color: var(--dl-ink);
  background: #fff;
  border: 1px solid #bcc7d0;
  border-radius: 8px;
  font: inherit;
}
#shop input:focus-visible, #shop select:focus-visible, #shop textarea:focus-visible,
.forms_ticket input:focus-visible, .forms_ticket select:focus-visible, .forms_ticket textarea:focus-visible {
  outline: 3px solid rgba(58,145,220,.28);
  outline-offset: 1px;
  border-color: #317ab2;
}

/* Basket: retain table-row / table-cell semantics in existing markup. */
.basket {
  display: table;
  width: 100%;
  border-spacing: 0;
  margin: 1rem 0;
  border: 1px solid var(--dl-line);
  border-radius: 11px;
  background: white;
  font-size: .92rem;
  line-height: 1.5;
  overflow: hidden;
}
.basket_row, .basket_row_items { display: table-row; color: var(--dl-ink); background: white; }
.basket_row_items:nth-child(odd) { background: var(--dl-surface-muted); }
.basket_row_items:not(:first-child):hover { background: #eef3f6; }
.row_header { display: table-row; background: var(--dl-dark); color: white; font-weight: 800; }
.box {
  display: table-cell;
	color:black;
  vertical-align: middle;
  padding: .75rem .8rem;
  text-align: left;
  line-height: 1.5;
  border-right: 1px solid var(--dl-line);
  border-bottom: 1px solid var(--dl-line);
  overflow-wrap: anywhere;
}
.row_header .box { border-right-color: #394650; border-bottom-color: #394650; }
.box:last-child { border-right: 0; }
.basketimage { float: left; width: 90px; max-width: 100%; height: auto; padding: .4rem; margin-right: .5rem; border-radius: 8px; }
.show_price { font-weight: 800; text-align: right; white-space: nowrap; }
.item_details { width: 50%; }
.item_remove { width: 15%; }
/* Replace old invalid Sass-like @green and @yellow values with CSS colours. */
.box2 { background: #edf8f1; }
.box3 { background: #fff8df; }

@media screen and (max-width: 1000px) {
  #shop_menu { display: block; width: 100%; margin: 0 0 1rem; padding-bottom: .5rem; }
  #shop_main { display: block; width: 100%; }
  #shop_menu a:link, #shop_menu a:visited, #shop_menu a:active { display: inline-block; margin: .2rem; border-left: 0; border-bottom: 3px solid transparent; }
  #shop_menu a:hover, #shop_menu a:focus-visible { border-bottom-color: var(--dl-accent); }
}
@media screen and (max-width: 650px) {
  #shop #left, #shop #right { float: none; clear: both; width: 100%; }
  #shop_main { padding: .8rem; }
  .shopitem_A { width: min(100%, 360px); max-width: 100%; margin: .45rem 0; }
  .shopitem { padding: .9rem; }
  .basket { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .basket_row, .basket_row_items, .row_header { display: table-row; }
  .basket .box { min-width: 90px; padding: .6rem; }
  .basketimage { width: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  .shopitem, .link_button, .textlink, #shop_menu a, .shopitem .ticketimage .tooltiptext { transition: none !important; }
  .shopitem:hover, .link_button:hover { transform: none; }
}
