.eventbookings-loader {
  display: flex;
  gap: 0.5em;
}

.eventbookings-loader div {
  width: 2.5em;
  height: 2.5em;
  background-color: #1199c4;
  border-radius: 50%;
  animation: load7 1.8s infinite ease-in-out;
}

.eventbookings-loader div:nth-child(1) {
  animation-delay: -0.32s;
}

.eventbookings-loader div:nth-child(2) {
  animation-delay: -0.16s;
}

.eventbookings-loader div:nth-child(3) {
  animation-delay: 0s;
}

@keyframes load7 {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.event-list-wrap {}
.event-list-wrap h1 {
  font-size: 23px;
  font-weight: 600;
  margin: 0;
}
.event-list-wrap p {
  margin: 0 0 20px;
}
.event-list-wrap .meta-box {
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}
.event-list-wrap .meta-box select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 5.24987L0 1.24987L0.716667 0.533203L4 3.8332L7.28333 0.54987L8 1.26654L4 5.24987Z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-size: 10px 8px;
  background-position: calc(100% - 10px) 50%;
  padding: 1px 30px 1px 16px;
  text-overflow: ellipsis;
  border: 1px solid #BDBDBD;
  border-radius: 60px;
  height: 36px;
  margin: 0;
  font-size: 14px;
}
.event-list-wrap .meta-box button {
  padding: 0px 24px;
  border-radius: 60px;
  background: #ffffff;
  font-size: 14px;
  height: 36px;
  margin: 0;
}
.event-list-wrap .meta-box .search-box {
  position: relative;
  margin: 0;
  min-width: 250px;
}
.event-list-wrap .meta-box .search-box input {
  padding: 1px 20px 1px 12px;
  border: 1px solid #BDBDBD;
  border-radius: 60px;
  height: 36px;
  margin: 0;
  width: 100%;
}
.event-list-wrap .meta-box .search-box span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
}

.table-wrap {
  overflow-x: auto;
}

table.event-lists {
  border: none;
}
table.event-lists tr th {
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: none;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}
table.event-lists tr th::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background-color: #DDDDDD;
}
table.event-lists tr td {
  padding: 12px;
  color: #4F4F4F;
  background: #ffffff;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
}
table.event-lists tr th:first-child,
table.event-lists tr td:first-child {
  width: 30px;
  max-width: 30px;
}
table.event-lists tr th:nth-child(2),
table.event-lists tr td:nth-child(2) {
  width: 300px;
}
table.event-lists tr th:nth-child(3),
table.event-lists tr td:nth-child(3) {
  width: 140px;
}
table.event-lists tr th:nth-child(4),
table.event-lists tr td:nth-child(4) {
  width: 90px;
}
table.event-lists tr th:nth-child(5),
table.event-lists tr td:nth-child(5) {
  width: 90px;
}
table.event-lists tr th:nth-child(6),
table.event-lists tr td:nth-child(6) {
  width: 180px;
}
table.event-lists tr th:nth-child(7),
table.event-lists tr td:nth-child(7) {
  width: 200px;
}
table.event-lists tr th:nth-child(8),
table.event-lists tr td:nth-child(8) {
  width: 350px;
}
table.event-lists tr th:last-child,
table.event-lists tr td:last-child {
  width: 100px;
}

.switch {
  position: relative;
}
.switch input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
.switch .slider {
  background: #cccccc;
  display: inline-flex;
  height: 14px;
  width: 34px;
  border-radius: 50px;
  position: relative;
}
.switch input[type="checkbox"]:checked + .slider {
  background: #98ccff;
}
.switch .slider::before {
  content: "";
  transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
  transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  position: absolute;
  left: 0;
  top: -3px;
  height: 20px;
  width: 20px;
  background: #ffffff;
  border-radius: 50px;
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);
}
.switch input[type="checkbox"]:checked + .slider::before {
  left: auto;
  right: 0;
  background: #1976d2;
}
.bottom-pagination-wrap {
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottom-pagination-wrap select {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  height: 32px;
  min-width: 70px;
  background-color: #ffffff;
  outline: none;
  box-shadow: none;
}
.bottom-pagination-wrap .bottom-pagination {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}
.bottom-pagination-wrap .bottom-pagination a {
  height: 32px;
  width: 32px;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: #ffffff;
}

.event-settings-wrap {
  margin: 20px 0;
}
.event-settings-wrap button[name="disconnect"] {
  color: #FB3030;
  border-color: #FB3030;
  height: 38px;
}
.event-settings-wrap button[name="disconnect"]:hover {
  color: #ffffff;
  border-color: #FB3030;
  background-color: #FB3030;
}
.event-settings-wrap button[name="save_settings"] {
  background-color: #1976d2;
  border-color: #1976d2;
  height: 38px;
}
.connection-settings-display-table-wrap {
  max-width: 780px;
  width: 100%;
  margin: 0 0 20px;
}
table.connection-settings-display-table {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}
table.connection-settings-display-table tbody {
  display: flex;
}
table.connection-settings-display-table tr {
  width: 100%;
}
table.connection-settings-display-table tr th,
table.connection-settings-display-table tr td {
  display: block;
  padding: 0;
}
table.connection-settings-display-table tr th {
  padding-bottom: 0;
}
table.connection-settings-display-table tr td {
  padding-top: 5px;
}
table.connection-settings-display-table label {
  line-height: 1.5;
  font-size: 12px;
  font-weight: 600;
}
table.connection-settings-display-table input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  height: 38px;
}
.customize-event-display-table-wrap {
  max-width: 780px;
  width: 100%;
  margin: 0 0 20px;
}
table.customize-event-display-table {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 24px;
}
table.customize-event-display-table tr th,
table.customize-event-display-table tr td {
  padding: 10px 0;
}

.shortcode-input-box {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  display: inline-block;
  position: relative;
}
.shortcode-input-box label {
  line-height: 1.5;
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.shortcode-input-box input[type="text"] {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  height: 38px;
  min-width: 280px;
}
.shortcode-input-box button {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  -webkit-appearance: none;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  background-color: #1976d2;
  border-color: #1976d2;
  color: #ffffff;
  height: 38px;
}
.shortcode-input-box button:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}
.shortcode-input-box .shortcode-copy-success {
  position: absolute;
  right: 27px;
  top: -5px;
  background: #1976d2;
  color: #ffffff;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 12px;
  transition: 0.3s;
}
.shortcode-input-box .shortcode-copy-success::after {
  content: "";
  border-color: #1976d2 transparent transparent transparent;
  border-style: solid;
  border-width: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
}

/* ============================================================
   Settings Page v2 – Modern Card Layout
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

.eb-settings-page {
  --eb-bg: #f4f5f7;
  --eb-surface: #ffffff;
  --eb-border: #e2e5ea;
  --eb-border-soft: #eef0f3;
  --eb-text-primary: #1a1d23;
  --eb-text-secondary: #5a6172;
  --eb-text-muted: #8b93a5;
  --eb-accent: #2563eb;
  --eb-accent-hover: #1d4ed8;
  --eb-accent-light: #eff4ff;
  --eb-accent-border: #bfcffe;
  --eb-success: #16a34a;
  --eb-danger: #dc2626;
  --eb-danger-light: #fef2f2;
  --eb-danger-border: #fecaca;
  --eb-warning: #d97706;
  --eb-warning-light: #fffbeb;
  --eb-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --eb-radius: 10px;
  --eb-radius-sm: 6px;

  max-width: 720px;
  margin: 24px 0 48px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--eb-text-primary);
}

/* Page Header */
.eb-page-header { margin-bottom: 24px; }
.eb-page-header h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--eb-text-primary) !important;
  letter-spacing: -0.3px;
  margin: 0 0 3px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}
.eb-page-header p {
  font-size: 13px;
  color: var(--eb-text-muted);
  margin: 0 !important;
}

/* Notice */
.eb-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--eb-radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
}
.eb-notice svg { width: 15px; height: 15px; flex-shrink: 0; }
.eb-notice-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--eb-success);
}
.eb-notice-error {
  background: var(--eb-danger-light);
  border: 1px solid var(--eb-danger-border);
  color: var(--eb-danger);
}

/* Card */
.eb-card {
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
  animation: ebFadeUp 0.3s ease both;
}
@keyframes ebFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.eb-card:nth-child(1) { animation-delay: 0.05s; }
.eb-card:nth-child(2) { animation-delay: 0.10s; }
.eb-card:nth-child(3) { animation-delay: 0.15s; }

.eb-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--eb-border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eb-card-header-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eb-icon-blue   { background: var(--eb-accent-light); color: var(--eb-accent); }
.eb-icon-green  { background: #f0fdf4; color: var(--eb-success); }
.eb-icon-purple { background: #f5f3ff; color: #7c3aed; }
.eb-card-header-icon svg { width: 15px; height: 15px; }

.eb-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--eb-text-primary);
  line-height: 1.3;
}
.eb-card-subtitle {
  font-size: 12px;
  color: var(--eb-text-muted);
  margin-top: 1px;
}
.eb-card-body { padding: 20px; }

/* Status badge */
.eb-status-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--eb-success);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.eb-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eb-success);
  animation: ebPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes ebPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Form fields */
.eb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.eb-settings-page .eb-form-group label {
  display: block !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: var(--eb-text-secondary) !important;
  margin-bottom: 5px !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.4 !important;
}
.eb-settings-page .eb-form-group input[type="text"],
.eb-settings-page .eb-form-group input[type="password"] {
  width: 100% !important;
  padding: 8px 11px !important;
  border: 1px solid var(--eb-border) !important;
  border-radius: var(--eb-radius-sm) !important;
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 12px !important;
  color: var(--eb-text-primary) !important;
  background: var(--eb-bg) !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.eb-settings-page .eb-form-group input[type="text"]:focus,
.eb-settings-page .eb-form-group input[type="password"]:focus {
  border-color: var(--eb-accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}

/* Help link */
.eb-help-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--eb-accent);
  text-decoration: none;
  margin-top: 10px;
}
.eb-help-link:hover { text-decoration: underline; color: var(--eb-accent-hover); }
.eb-help-link svg { width: 12px; height: 12px; }

/* Divider */
.eb-divider {
  border: none !important;
  border-top: 1px solid var(--eb-border-soft) !important;
  margin: 16px 0 !important;
  background: none !important;
}

/* Buttons */
.eb-settings-page .eb-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 16px !important;
  border-radius: var(--eb-radius-sm) !important;
  font-family: 'DM Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent !important;
  height: auto !important;
  line-height: 1.5 !important;
  text-decoration: none;
  vertical-align: middle;
}
.eb-btn svg { width: 13px; height: 13px; }
.eb-settings-page .eb-btn-primary {
  background: var(--eb-accent) !important;
  color: #fff !important;
  border-color: var(--eb-accent) !important;
}
.eb-settings-page .eb-btn-primary:hover {
  background: var(--eb-accent-hover) !important;
  border-color: var(--eb-accent-hover) !important;
  color: #fff !important;
}
.eb-settings-page .eb-btn-danger {
  background: var(--eb-danger-light) !important;
  color: var(--eb-danger) !important;
  border-color: var(--eb-danger-border) !important;
}
.eb-settings-page .eb-btn-danger:hover {
  background: #fee2e2 !important;
  color: var(--eb-danger) !important;
  border-color: var(--eb-danger-border) !important;
}
.eb-settings-page .eb-btn-ghost {
  background: transparent !important;
  color: var(--eb-text-secondary) !important;
  border-color: var(--eb-border) !important;
}
.eb-settings-page .eb-btn-ghost:hover {
  background: var(--eb-bg) !important;
  color: var(--eb-text-secondary) !important;
}

/* Shortcode info banner */
.eb-shortcode-info {
  display: flex;
  gap: 10px;
  background: var(--eb-accent-light);
  border: 1px solid var(--eb-accent-border);
  border-radius: var(--eb-radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.eb-shortcode-info > svg { width: 15px; height: 15px; color: var(--eb-accent); flex-shrink: 0; margin-top: 1px; }
.eb-shortcode-info-text { font-size: 12.5px; color: #1e3a8a; line-height: 1.55; }
.eb-shortcode-info-text strong { font-weight: 600; }

/* Shortcode items */
.eb-shortcode-item { margin-bottom: 16px; }
.eb-shortcode-item:last-of-type { margin-bottom: 0; }

.eb-shortcode-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--eb-text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.eb-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 20px;
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.eb-tag-blue {
  background: var(--eb-accent-light);
  color: var(--eb-accent);
  border-color: var(--eb-accent-border);
}
.eb-shortcode-desc {
  font-size: 12px;
  color: var(--eb-text-muted);
  margin-bottom: 7px;
}

.eb-shortcode-input-row {
  display: flex;
  align-items: stretch;
}
.eb-settings-page .eb-shortcode-input-row input[type="text"] {
  flex: 1;
  padding: 8px 11px !important;
  border: 1px solid var(--eb-border) !important;
  border-right: none !important;
  border-radius: var(--eb-radius-sm) 0 0 var(--eb-radius-sm) !important;
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 12px !important;
  color: var(--eb-text-secondary) !important;
  background: var(--eb-bg) !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
}
.eb-btn-copy {
  background: var(--eb-accent);
  color: #fff;
  border: 1px solid var(--eb-accent);
  padding: 7px 14px;
  font-size: 12px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 500;
  border-radius: 0 var(--eb-radius-sm) var(--eb-radius-sm) 0;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.eb-btn-copy:hover { background: var(--eb-accent-hover); border-color: var(--eb-accent-hover); }
.eb-btn-copy.eb-copied { background: var(--eb-success); border-color: var(--eb-success); }

/* Help footer */
.eb-help-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--eb-warning-light);
  border: 1px solid #fde68a;
  border-radius: var(--eb-radius-sm);
  padding: 11px 14px;
  margin-top: 16px;
}
.eb-help-footer > svg { width: 14px; height: 14px; color: var(--eb-warning); flex-shrink: 0; }
.eb-help-footer-text { font-size: 12px; color: #92400e; }
.eb-help-footer-text a { color: var(--eb-warning); font-weight: 600; text-decoration: none; }
.eb-help-footer-text a:hover { text-decoration: underline; }

/* Checkbox grid */
.eb-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.eb-checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--eb-border-soft);
  border-radius: var(--eb-radius-sm);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
  margin: 0;
}
.eb-checkbox-item:hover { background: var(--eb-bg); border-color: var(--eb-border); }
.eb-settings-page .eb-checkbox-item input[type="checkbox"] {
  display: none !important;
  margin: 0 !important;
}
.eb-custom-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--eb-border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  background: var(--eb-surface);
}
.eb-checkbox-item input[type="checkbox"]:checked ~ .eb-custom-check {
  background: var(--eb-accent);
  border-color: var(--eb-accent);
}
.eb-custom-check svg { width: 9px; height: 9px; color: #fff; display: none; }
.eb-checkbox-item input[type="checkbox"]:checked ~ .eb-custom-check svg { display: block; }
.eb-checkbox-text { font-size: 12.5px; color: var(--eb-text-secondary); }

/* Footer actions */
.eb-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--eb-border-soft);
  flex-wrap: wrap;
}
.eb-footer-note {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--eb-text-muted);
}

@media (max-width: 600px) {
  .eb-form-row,
  .eb-checkbox-grid { grid-template-columns: 1fr; }
  .eb-footer-note { margin-left: 0; }
}