.tribe-events-c-top-bar .hub-rsvp-buttons,
.tribe-events-calendar-list-nav .hub-rsvp-buttons {
	margin-left: auto !important;
	text-align: center !important;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out;
}

.tribe-events-c-top-bar .hub-rsvp-buttons button,
.tribe-events-calendar-list-nav .hub-rsvp-buttons button {
	margin: 0.5rem !important;
	box-sizing: border-box;
}

.tribe-events-c-top-bar .hub-rsvp-buttons .hub-rsvp-submit,
.tribe-events-calendar-list-nav .hub-rsvp-buttons .hub-rsvp-submit {
	opacity: 0.2;
	cursor: not-allowed;
}

.tribe-events-c-top-bar .hub-rsvp-buttons .hub-rsvp-select-all,
.tribe-events-calendar-list-nav .hub-rsvp-buttons .hub-rsvp-select-all {
	border: 1px solid #a31f36 !important;
	background-color: #fff !important;
	color: #a31f36 !important;
}

.tribe-events-c-top-bar .hub-rsvp-buttons .hub-rsvp-cancel,
.tribe-events-calendar-list-nav .hub-rsvp-buttons .hub-rsvp-cancel {
	background-color: #C8C9C7 !important;
	color: #2C2A29 !important;
}

.tribe-events-c-top-bar .hub-rsvp-buttons .hub-rsvp-help,
.tribe-events-calendar-list-nav .hub-rsvp-buttons .hub-rsvp-help {
	background-color: #fff !important;
	color: #0099FF !important;
}

.tribe-events-c-top-bar .hub-rsvp-buttons .hub-rsvp-help .et-pb-icon--help,
.tribe-events-calendar-list-nav .hub-rsvp-buttons .hub-rsvp-help .et-pb-icon--help {
	font-size: unset !important;
}

.tribe-events-c-top-bar .hub-rsvp-buttons .hub-rsvp-help .et-pb-icon--help:before,
.tribe-events-calendar-list-nav .hub-rsvp-buttons .hub-rsvp-help .et-pb-icon--help:before {
	content: '\74';
	font-family: "ETmodules";
	font-size: 20px;
	margin-right: 4px;
	vertical-align: middle;
}

.tribe-events-c-nav__list-item {
	width: unset !important;
}

/* Reorder RSVP buttons below nav links on small screens */
@media (max-width: 1179px) {
  .tribe-events-calendar-list-nav .tribe-events-c-nav__list > .hub-rsvp-buttons {
    order: 1 !important;
  }
}

/* Custom RSVP selectors icons */
.hub-rsvp-already-rsvped p {
	font-size: 14px;
	font-family: var(--tec-font-family-sans-serif);
	color: #a31f36;
}

.hub-rsvp-selectors {
    display: inline-block;
}

.hub-rsvp-selectors > * {
	margin-bottom: 0.5rem !important;
	margin-left: 0.5rem !important;
	margin-right: 0.5rem !important;
}

@media (max-width: 599px) {
	.hub-rsvp-selectors > * {
		margin-top: 0.5rem !important;
		margin-left: 0 !important;
	}
	.hub-rsvp-selectors > *:last-child {
		margin-top: 0 !important;
	}
}

.hub-rsvp-selectors input[type="checkbox"] {
	margin-left: 0 !important;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hub-rsvp-selectors label {
	margin-left: 0 !important;
    position: relative;
    padding-left: 24px;
	font-size: small;
    cursor: pointer;
}

.hub-rsvp-selectors label:before {
    content: '\56';
    font-family: "ETmodules";
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hub-rsvp-selectors input[type="checkbox"]:checked + label:before {
    content: '\5a';
}

.hub-rsvp-selectors select {
    padding: 0.25rem 0.5rem !important;
    font-size: small;
    background-color: #F3F3F1;
    color: #808080 !important;
    border-radius: 2px;
}
.hub-rsvp-selectors select:valid {
    color: #000 !important;
}

/* Error highlight for instrument select */
.hub-rsvp-selectors select.hub-rsvp-invalid {
    outline: 2px solid #a31f36 !important;
}

/* Quantity input styling */
.hub-rsvp-quantity {
    display: inline-block;
    font-size: small;
}
.hub-rsvp-quantity-input {
    border: none;
    background: transparent;
    width: 1em;
    text-align: center;
    appearance: none;
    -moz-appearance: textfield;
}

.hub-rsvp-quantity .hub-rsvp-qty-increment{
	margin-right: 0.25rem;
}

.hub-rsvp-quantity-input::-webkit-inner-spin-button,
.hub-rsvp-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Modal */
#hub-rsvp-modal {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100000;
}

/* Modal Overlay */
#hub-rsvp-modal-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000000;
  opacity: 0.65;
  top: 0;
  left: 0;
}

/* White modal panel */
#hub-rsvp-modal-panel {
  position: fixed;
  width: 480px;
  max-width: 90%;
  padding: 2rem;
  background: #FFFFFF;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Close icon */
#hub-rsvp-modal-close {
  position: absolute;
  width: 32px;
  height: 29px;
  font-family: 'ETmodules';
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: 1em;
  color: #808080;
  top: 8px;
  right: 0;
  cursor: pointer;
}

#hub-rsvp-modal-close::before {
  content: '\4d';
  /* inherits font-size, color, etc. from #hub-rsvp-modal-close */
}

/* Modal content */
#hub-rsvp-modal-panel h2 {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: #962C39;
}

#hub-rsvp-modal-panel p,
#hub-rsvp-modal-panel li {
	font-weight: 400;
}

#hub-rsvp-modal-panel ol {
	list-style-type: decimal;
	margin-top: 0.5em;
	margin-left: 1.5em;
}

/* Confirmation Modal */
#hub-rsvp-confirm-modal {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100000;
}

#hub-rsvp-confirm-modal-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.65;
  top: 0;
  left: 0;
}

#hub-rsvp-confirm-modal-panel {
  position: fixed;
  width: 960px;
  max-width: 90%;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#hub-rsvp-confirm-modal-close {
  position: absolute;
  width: 32px;
  height: 29px;
  font-family: 'ETmodules';
  font-size: 20px;
  line-height: 24px;
  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: 1em;
  color: #808080;
  top: 8px;
  right: 0;
  cursor: pointer;
}

#hub-rsvp-confirm-modal-close::before {
  content: '\4d';
}

#hub-rsvp-confirm-modal-panel h2 {
  font-family: 'Oswald';
  font-size: 24px;
  line-height: 36px;
  color: #962C39;
}

#hub-rsvp-confirm-content {
  font-family: var(--tec-font-family-sans-serif);
  margin-top: 1rem;
}

.hub-rsvp-confirm-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hub-rsvp-confirm-info {
  flex-basis: 67%;
}

@media (max-width: 1023px) {
	.hub-rsvp-confirm-info {
		flex-basis: 100%;
	}
}

.hub-rsvp-confirm-item h3 {
  font-family: var(--tec-font-family-sans-serif);
  font-weight: 700;
  line-height: 1.4rem;
  padding-bottom: 0.25rem;
}

.hub-rsvp-confirm-item p {
  font-family: var(--tec-font-family-sans-serif);
  font-weight: 400;
  font-size: small;
}

.hub-rsvp-confirm-datetime {
  font-size: 14px !important;
  padding-bottom: 0.5rem !important;
  padding-top: 0.5rem !important;
}

.hub-rsvp-confirm-instrument p {
  font-weight: 700;
}

.hub-rsvp-confirm-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hub-rsvp-confirm-qty p {
  font-weight: 700;
}

.hub-rsvp-confirm-qty-number {
  font-size: x-large !important;
  padding-bottom: 0.25rem !important;
}

.hub-rsvp-confirm-buttons {
  margin-top: 1.5rem !important;
  text-align: center;
}

/* Confirmation modal button styles */
#hub-rsvp-confirm-modal-panel .hub-rsvp-confirm-buttons button {
  margin: 0 1rem !important;
  box-sizing: border-box;
}
#hub-rsvp-confirm-modal-panel .hub-rsvp-confirm-buttons button.hub-rsvp-cancel-confirm {
  background-color: #C8C9C7 !important;
  color: #2C2A29 !important;
}
#hub-rsvp-confirm-modal-panel .hub-rsvp-confirm-buttons button.hub-rsvp-confirm {
  background-color: #a31f36 !important;
  color: #fff !important;
}
#hub-rsvp-confirm-modal-panel .hub-rsvp-confirm-buttons button:hover {
  opacity: 0.9;
}
#hub-rsvp-confirm-modal-panel .hub-rsvp-confirm-buttons button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hub-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #962C39;
  border-radius: 50%;
  animation: hub-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}

@keyframes hub-spin {
  to { transform: rotate(360deg); }
}

/* Enable smooth scrolling for invalid instrument selection */
html {
  scroll-behavior: smooth;
}

/* Hide small CTA button */
.tribe-events-c-small-cta__link.tribe-common-cta.tribe-common-cta--thin-alt,
.tribe-events-c-small-cta.tribe-common-b3.tribe-events-calendar-list__event-cost {
  display: none;
}