.dhws-event-month-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
}

.dhws-event-month-nav a,
.dhws-event-month-disabled {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ccc;
  text-decoration: none;
  background: #fff;
}

.dhws-event-month-disabled {
  color: #aaa;
  background: #f5f5f5;
}

.dhws-event-card .date {
  margin: 0 0 0.5em;
}

.dhws-event-card.is-ended {
  border-color: #d0d0d0;
  color: #777;
}

.dhws-event-card.is-ended .item-header .title {
  border-left-color: #aaa;
}

.dhws-event-card.is-ended .item-header .info > * {
  color: #fff;
  background-color: #aaa;
}

.dhws-event-card.is-ended .item-header .info > .dhws-event-audience,
.dhws-event-card.is-ended .item-header .info > .dhws-event-countdown,
.dhws-event-card.is-ended .item-header .info > .dhws-event-registration-count,
.dhws-event-card.is-ended .item-header .info > .dhws-event-ticket-label {
  color: #555;
  background-color: #e5e5e5;
}

.item-header .info > .head-live,
.item-header .info > .meetup,
.item-header .info > .coworking,
.item-header .info > .other-event {
  color: #fff;
}

.item-header .info > .head-live {
  background-color: #0068b7;
}

.item-header .info > .meetup {
  background-color: #009b74;
}

.item-header .info > .coworking {
  background-color: #4b73b9;
}

.item-header .info > .other-event {
  background-color: #666;
}

.item-header .info > .dhws-event-audience {
  background-color: #eef6ff;
}

.item-header .info > .dhws-event-countdown {
  background-color: #fff7e6;
}

.item-header .info > .dhws-event-registration-count {
  background-color: #eef8ef;
}

.item-header .info > .dhws-event-ticket-label {
  color: #333;
  background-color: #fdebf4;
}

.links button.dhws-event-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.dhws-event-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  box-sizing: border-box;
}

.dhws-event-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dhws-event-form input,
.dhws-event-form select,
.dhws-event-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.dhws-event-form textarea {
  resize: vertical;
}

.dhws-event-form-note {
  font-size: 12px;
  font-weight: normal;
}

.dhws-event-radio-group {
  padding: 0;
  margin: 0;
  border: 0;
}

.dhws-event-radio-group legend {
  margin-bottom: 4px;
}

.dhws-event-radio-group label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
}

.dhws-event-radio-group input {
  width: auto;
}

.dhws-event-form button {
  justify-content: center;
  padding: 0.75em;
  border: 0;
  color: #fff;
  font-weight: bold;
  background-color: #f7701b;
  cursor: pointer;
}

.dhws-event-registration-closed {
  padding: 0.75em;
  margin-top: 1em;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #666;
  background: #eee;
}

.dhws-event-message {
  padding: 8px 10px;
  margin-bottom: 16px;
  background: #eef8ef;
}

.dhws-event-message-error {
  background: #fdecec;
}

.dhws-ticket-panel {
  position: relative;
  padding: 38px 16px 16px;
  margin-bottom: 20px;
  border: solid 2px #ccc;
  background: #fff;
}

.dhws-ticket-panel::before {
  content: "イベントチケット申請";
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5em 0.7em;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  background-color: #7d4698;
}

.dhws-ticket-search-form,
.dhws-ticket-claim-form {
  margin: 0;
  padding: 0;
  background: transparent;
}

.dhws-ticket-search-form {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}

.dhws-ticket-search-form label {
  flex: 1 1 auto;
  font-weight: bold;
}

.dhws-ticket-search-form input {
  margin-top: 6px;
  background: #fff;
}

.dhws-ticket-search-form button {
  flex: 0 0 auto;
  min-width: 180px;
  margin: 0;
}

.dhws-ticket-claim-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dhws-ticket-claim-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dhws-ticket-claim-item:hover {
  border-color: #f7701b;
  background: #fffaf6;
}

.dhws-ticket-claim-item.is-pending {
  color: #666;
  background: #f5f5f5;
  cursor: default;
}

.dhws-ticket-claim-item.is-pending:hover {
  border-color: #ccc;
  background: #f5f5f5;
}

.dhws-ticket-claim-item input {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0.35em;
}

.dhws-ticket-claim-item span {
  line-height: 1.6;
}

.dhws-ticket-claim-item strong {
  font-size: 14px;
}

.dhws-ticket-claim-status {
  display: inline-block;
  padding: 0.2em 0.5em;
  margin-left: 0.4em;
  font-size: 12px;
  font-style: normal;
  font-weight: bold;
  line-height: 1;
  color: #555;
  background: #e5e5e5;
}

.dhws-ticket-empty {
  position: relative;
  padding: 38px 16px 16px;
  margin-top: 16px;
  border: solid 2px #ccc;
  background: #fff;
}

.dhws-ticket-empty::before {
  content: "検索結果";
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5em 0.7em;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  color: #333;
  background-color: #eef6ff;
}

@media screen and (max-width: 769px) {
  .dhws-ticket-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .dhws-ticket-search-form button {
    width: 100%;
    min-width: 0;
  }
}

.dhws-event-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.dhws-event-modal.is-open {
  display: block;
}

.dhws-event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.dhws-event-modal-panel {
  position: relative;
  max-width: 520px;
  max-height: 84vh;
  padding: 24px;
  margin: 8vh auto;
  overflow: auto;
  background: #fff;
}

.dhws-event-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}
