.ui-dialog {
  max-width: 95vw !important;
}

#fooevents_seating_select_seats,
.fooevents_seating_chart {
  display: block;
  padding: 0.75em 1em !important;
  background: var(--button) !important;
  border: 1px solid var(--button) !important;
  color: var(--button-fg) !important;
  border-radius: 2em !important;
  font: var(--font-buttons) !important;
  font-size: var(--button-font-size) !important;
  transition: border-color 0.3s, color 0.3s !important;
  text-decoration: none !important;
  text-transform: uppercase;
  -moz-appearance: none !important;
       appearance: none !important;
  box-shadow: none !important;
  z-index: 1;
  position: relative;
  overflow: hidden;
  word-break: break-word;
  text-align: center;
  height: auto !important;
  text-transform: none !important;
}

#fooevents_seating_select_seats:visited,
.fooevents_seating_chart:visited {
  color: var(--button-fg) !important;
}

#fooevents_seating_select_seats:hover, #fooevents_seating_select_seats:focus,
.fooevents_seating_chart:hover,
.fooevents_seating_chart:focus {
  border: 1px solid var(--button-hover) !important;
  color: var(--button-hover-fg) !important;
}

#fooevents_seating_select_seats:hover::before, #fooevents_seating_select_seats:focus::before,
.fooevents_seating_chart:hover::before,
.fooevents_seating_chart:focus::before {
  transform: translateX(0);
}

#fooevents_seating_select_seats::before,
.fooevents_seating_chart::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  width: 120%;
  height: calc(100% + 2px);
  background: var(--button-hover) !important;
  transform: translateX(-100%);
  transition: all 0.3s;
  z-index: -1;
}

#fooevents_seating_select_seats.disabled, #fooevents_seating_select_seats:disabled,
.fooevents_seating_chart.disabled,
.fooevents_seating_chart:disabled {
  pointer-events: none;
}

#fooevents_seating_select_seats {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: auto;
  width: -moz-fit-content;
  width: fit-content;
  z-index: 9;
}

.fooevents_seating_chart_front,
.fooevents_seating_chart_legend {
  position: sticky;
  left: 0;
}

#fooevents_seating_dialog,
#fooevents_seating_dialog * {
  box-sizing: border-box !important;
}

#fooevents_seating_dialog {
  --seats-aisle: 5rem;
  --seats-aisle-big: calc(var(--seats-aisle) * 2);
}

#fooevents_seating_dialog .fooevents_seating_chart_view_row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-direction: row-reverse;
}

#fooevents_seating_dialog .fooevents_seating_chart_view_row span {
  margin: 0 !important;
  flex-shrink: 0 !important;
  width: 1.5rem;
  height: 1.5rem;
}

#fooevents_seating_dialog .row_container:last-of-type {
  padding-bottom: 5rem;
}

#fooevents_seating_dialog .row_container:first-of-type .fooevents_seating_chart_view_row span:nth-of-type(4),
#fooevents_seating_dialog .row_container:first-of-type .fooevents_seating_chart_view_row span:nth-of-type(5) {
  background-image: url("../../res/icon-seat-wheelchair.svg");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;
}

#fooevents_seating_dialog .row_container:first-of-type .fooevents_seating_chart_view_row .selected:nth-of-type(4),
#fooevents_seating_dialog .row_container:first-of-type .fooevents_seating_chart_view_row .selected:nth-of-type(5) {
  background-image: url("../../res/icon-seat-wheelchair-selected.svg");
}

#fooevents_seating_dialog .seat_container {
  width: -moz-fit-content !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-height: 70vh;
  box-sizing: border-box;
  overflow: unset;
}

#fooevents_seating_dialog .row_container {
  /*
    * Old solution with blocked seats
    */
}

#fooevents_seating_dialog .row_container + .row_container {
  margin-top: 1rem;
}

#fooevents_seating_dialog .row_container:nth-of-type(1) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(1) span:nth-child(17), #fooevents_seating_dialog .row_container:nth-of-type(2) span:nth-child(10), #fooevents_seating_dialog .row_container:nth-of-type(3) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(4) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(5) span:nth-child(8), #fooevents_seating_dialog .row_container:nth-of-type(6) span:nth-child(8), #fooevents_seating_dialog .row_container:nth-of-type(6) span:nth-child(9), #fooevents_seating_dialog .row_container:nth-of-type(6) span:nth-child(10), #fooevents_seating_dialog .row_container:nth-of-type(7) span:nth-child(9), #fooevents_seating_dialog .row_container:nth-of-type(7) span:nth-child(10), #fooevents_seating_dialog .row_container:nth-of-type(7) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(8) span:nth-child(9), #fooevents_seating_dialog .row_container:nth-of-type(8) span:nth-child(10), #fooevents_seating_dialog .row_container:nth-of-type(8) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(9) span:nth-child(9), #fooevents_seating_dialog .row_container:nth-of-type(9) span:nth-child(10), #fooevents_seating_dialog .row_container:nth-of-type(9) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(10) span:nth-child(10), #fooevents_seating_dialog .row_container:nth-of-type(10) span:nth-child(12), #fooevents_seating_dialog .row_container:nth-of-type(10) span:nth-child(14), #fooevents_seating_dialog .row_container:nth-of-type(11) span:nth-child(10), #fooevents_seating_dialog .row_container:nth-of-type(11) span:nth-child(19), #fooevents_seating_dialog .row_container:nth-of-type(12) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(12) span:nth-child(21), #fooevents_seating_dialog .row_container:nth-of-type(13) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(13) span:nth-child(21), #fooevents_seating_dialog .row_container:nth-of-type(14) span:nth-child(11), #fooevents_seating_dialog .row_container:nth-of-type(14) span:nth-child(22) {
  margin-left: var(--seats-aisle) !important;
}

#fooevents_seating_dialog .row_container:nth-of-type(16) span:nth-child(4) {
  margin-left: var(--seats-aisle-big) !important;
}

#fooevents_seating_dialog .row_container:nth-of-type(17) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(17) span:nth-child(15), #fooevents_seating_dialog .row_container:nth-of-type(18) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(18) span:nth-child(15), #fooevents_seating_dialog .row_container:nth-of-type(19) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(19) span:nth-child(16), #fooevents_seating_dialog .row_container:nth-of-type(20) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(20) span:nth-child(16), #fooevents_seating_dialog .row_container:nth-of-type(21) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(21) span:nth-child(16), #fooevents_seating_dialog .row_container:nth-of-type(22) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(22) span:nth-child(17), #fooevents_seating_dialog .row_container:nth-of-type(23) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(23) span:nth-child(18), #fooevents_seating_dialog .row_container:nth-of-type(24) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(24) span:nth-child(18), #fooevents_seating_dialog .row_container:nth-of-type(25) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(25) span:nth-child(18), #fooevents_seating_dialog .row_container:nth-of-type(26) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(26) span:nth-child(19), #fooevents_seating_dialog .row_container:nth-of-type(27) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(27) span:nth-child(20), #fooevents_seating_dialog .row_container:nth-of-type(28) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(28) span:nth-child(20), #fooevents_seating_dialog .row_container:nth-of-type(29) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(29) span:nth-child(20), #fooevents_seating_dialog .row_container:nth-of-type(30) span:nth-child(7), #fooevents_seating_dialog .row_container:nth-of-type(30) span:nth-child(20) {
  margin-left: var(--seats-aisle) !important;
}

.woocommerce-checkout #payment,
.woocommerce-checkout .payment_box {
  background: none !important;
  padding: 0 !important;
}

.woocommerce-checkout .payment_box:before {
  display: none !important;
}

.woocommerce-checkout .wc_payment_methods {
  padding: 0 !important;
}

.woocommerce-checkout .wc_payment_method input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.woocommerce-checkout .wc_payment_method input:checked + label:before {
  background: var(--fg);
  border-color: var(--fg);
}

.woocommerce-checkout .wc_payment_method input:checked + label:after {
  opacity: 1;
}

.woocommerce-checkout .wc_payment_method input:focus + label:before {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.woocommerce-checkout .wc_payment_method > label {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 2rem;
}

.woocommerce-checkout .wc_payment_method > label:before, .woocommerce-checkout .wc_payment_method > label:after {
  content: "";
  position: absolute;
}

.woocommerce-checkout .wc_payment_method > label:before {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--fg);
  border-radius: 4px;
  background: var(--bg);
  transition: background 0.2s ease, border 0.2s ease;
}

.woocommerce-checkout .wc_payment_method > label:after {
  left: 6px;
  top: 44%;
  width: 6px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.woocommerce-checkout .wc_payment_method .paytrail-provider-group {
  background: none !important;
  border-bottom: 1px solid var(--fg) !important;
  color: var(--fg) !important;
}

.woocommerce-checkout .wc_payment_method .paytrail-provider-group:hover {
  background: none !important;
}

.woocommerce-checkout .wc_payment_method .paytrail-provider-group.selected .paytrail-provider-group-title,
.woocommerce-checkout .wc_payment_method .paytrail-provider-group.selected div {
  color: var(--fg) !important;
  font-weight: var(--fontbase-bold-weight);
}

.woocommerce-checkout .wc_payment_method .paytrail-provider-group .paytrail-provider-group-title i {
  display: none !important;
}

.woocommerce-checkout .wc_payment_method .paytrail-woocommerce-payment-fields--list-item--wrapper {
  border: 2px solid var(--fg);
}

.woocommerce-checkout .wc_payment_method .paytrail-woocommerce-payment-fields--list-item--input:checked + .paytrail-woocommerce-payment-fields--list-item--wrapper {
  background: #fff !important;
  border-color: #fff !important;
}

.woocommerce-checkout .wc_payment_method .paytrail-woocommerce-payment-fields.hidden {
  display: block !important;
}

.woocommerce-checkout .fooevents_seating_chart.button {
  display: block;
  width: 100%;
  margin-bottom: 0;
  margin-top: 1em;
  font-size: 0.75em !important;
  width: -moz-fit-content;
  width: fit-content;
  text-transform: uppercase !important;
}
