.redcastle-reservation-page {
  max-width: 780px;
  margin-inline: auto;
}

.redcastle-reservation-cta {
  margin: 0 0 28px;
}

.redcastle-reservation-button,
.redcastle-reservation-button:visited {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid #a31d1d;
  border-radius: 5px;
  background: #a31d1d;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.redcastle-reservation-button::before {
  content: "✓";
  margin-right: 10px;
  font-size: 1.1em;
}

.redcastle-reservation-button:hover,
.redcastle-reservation-button:focus-visible {
  border-color: #7f1515;
  background: #7f1515;
  color: #fff !important;
  text-decoration: none;
}

.redcastle-reservation-button:focus-visible {
  outline: 3px solid rgba(163, 29, 29, 0.28);
  outline-offset: 3px;
}

.redcastle-event-reservation {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid #ddd;
}

.redcastle-reservation-heading {
  margin-top: 0;
}

.redcastle-seating-map {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.redcastle-seating-map-note {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.redcastle-reservation-overview {
  margin: 0 0 34px;
}

.redcastle-reservation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 16px;
  font-size: 14px;
}

.redcastle-reservation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.redcastle-reservation-legend i {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.redcastle-reservation-legend .is-free {
  background: #dff0df;
}

.redcastle-reservation-legend .is-reserved {
  background: #c52b2b;
}

.redcastle-reservation-legend .is-unavailable {
  background: #d9d9d9;
}

.redcastle-table-map {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
}

.redcastle-table-map > img {
  display: block;
  width: 100%;
  height: auto;
}

.redcastle-table-status {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  text-align: center;
  line-height: 1.05;
  overflow: hidden;
}

.redcastle-table-status strong {
  font-size: clamp(10px, 1.9vw, 16px);
}

.redcastle-table-status span {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  font-size: clamp(7px, 1.25vw, 11px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redcastle-table-status--free {
  background: rgba(214, 239, 214, 0.94);
  color: #1d5a25;
}

.redcastle-table-status--reserved {
  background: rgba(197, 43, 43, 0.96);
  color: #fff;
}

.redcastle-table-status--unavailable {
  background: rgba(217, 217, 217, 0.95);
  color: #555;
}

.redcastle-reservation-public-note {
  padding: 12px 14px;
  border-left: 4px solid #a31d1d;
  background: #f7f7f7;
  font-size: 14px;
}

.redcastle-reservation-team-table-wrap {
  overflow-x: auto;
}

.redcastle-reservation-team-table {
  width: 100%;
  border-collapse: collapse;
}

.redcastle-reservation-team-table th,
.redcastle-reservation-team-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.redcastle-reservation-empty {
  color: #666;
}

.redcastle-reservation-manage {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
}

.redcastle-reservation-link-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.redcastle-reservation-link-fields {
  display: flex;
  gap: 10px;
}

.redcastle-reservation-link-fields input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
}

.redcastle-reservation-link-fields button,
.redcastle-reservation-cancel-button {
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 5px;
  background: #a31d1d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.redcastle-reservation-cancel-button {
  background: #6f1515;
}

.redcastle-reservation-message {
  padding: 12px 14px;
  border-left: 4px solid #555;
  background: #fff;
}

.redcastle-reservation-message--success {
  border-left-color: #287a35;
}

.redcastle-reservation-message--error {
  border-left-color: #a31d1d;
}

.redcastle-reservation-manage-detail {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  background: #fff;
}

@media (max-width: 560px) {
  .redcastle-reservation-link-fields {
    flex-direction: column;
  }

  .redcastle-reservation-link-fields input,
  .redcastle-reservation-link-fields button {
    flex: 0 0 auto;
    width: 100%;
  }

  .redcastle-reservation-link-fields input {
    height: 46px;
    box-sizing: border-box;
  }

  .redcastle-reservation-manage {
    padding: 18px;
  }
}

.redcastle-reservation-note {
  padding: 18px 20px;
  margin: 0 0 28px;
  border-left: 4px solid #a31d1d;
  background: #f7f7f7;
}

.redcastle-reservation-page .forminator-ui.forminator-custom-form {
  margin-top: 24px;
}

.redcastle-reservation-page .forminator-ui .forminator-label {
  color: #252525;
  font-size: 16px;
  font-weight: 700;
}

.redcastle-reservation-page .forminator-ui .forminator-input,
.redcastle-reservation-page .forminator-ui .forminator-select2-selection {
  min-height: 48px;
  border-radius: 5px;
}

.redcastle-reservation-page .forminator-ui .forminator-button-submit {
  min-height: 48px;
  padding-inline: 26px;
  border-radius: 5px;
  background: #a31d1d;
  color: #fff;
  font-weight: 700;
}

.redcastle-reservation-page .forminator-ui .forminator-button-submit:hover,
.redcastle-reservation-page .forminator-ui .forminator-button-submit:focus {
  background: #7f1515;
}

/* Forminator appends Select2's open menu directly under <body>. Its default
   dropdown background is transparent, so following page content can show
   through the list. Keep the table picker opaque and above the form. */
body .forminator-select.forminator-select-dropdown-container--open {
  z-index: 1000000;
}

body .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown,
body .forminator-select.forminator-select-dropdown-container--open .select2-results,
body .forminator-select.forminator-select-dropdown-container--open .select2-results__options,
body .forminator-select.forminator-select-dropdown-container--open .select2-results__option {
  background-color: #fff;
}

body .forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown {
  border-color: #777;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

body .forminator-select.forminator-select-dropdown-container--open .select2-results__option {
  color: #252525;
}

body .forminator-select.forminator-select-dropdown-container--open .select2-results__option--selected {
  background-color: #f0f0f0;
}

body .forminator-select.forminator-select-dropdown-container--open .select2-results__option--highlighted {
  background-color: #a31d1d;
  color: #fff;
}

.forminator-edit-module {
  display: none !important;
}
