.sf-schedule-block-editor {
  margin: 16px 0;
  padding: 20px 24px 28px;
  background: #fff;
  border: 1px dashed #1a5fa8;
  border-radius: 5px;
  max-width: none !important;
}

.sf-schedule-block-editor__hint {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(10, 31, 68, 0.55);
}

.sf-schedule-block-editor__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sf-schedule-block-editor__meta-grid--top {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.sf-schedule-block-editor__days {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.sf-schedule-block-editor__table .sf-schedule-block-editor__days {
  margin: 0 12px 12px;
  padding-bottom: 10px;
}

.sf-schedule-block-editor__days-title {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(10, 31, 68, 0.55);
  letter-spacing: 0.02em;
}

.sf-schedule-block-editor__days-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sf-schedule-block-editor__day {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sf-schedule-block-editor__day input {
  width: 56px;
  box-sizing: border-box;
  border: 1px solid #d0d8e8;
  border-radius: 5px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  color: #0a1f44;
  text-align: center;
}

.sf-schedule-block-editor__day input:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.15);
}

.sf-schedule-block-editor__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(10, 31, 68, 0.55);
}

.sf-schedule-block-editor__field span {
  letter-spacing: 0.02em;
}

.sf-schedule-block-editor__field input,
.sf-schedule-block-editor__field textarea,
.sf-schedule-block-editor__field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d8e8;
  border-radius: 5px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  color: #0a1f44;
  background: #fff;
}

.sf-schedule-block-editor__field input:focus,
.sf-schedule-block-editor__field textarea:focus,
.sf-schedule-block-editor__field select:focus {
  outline: 0;
  border-color: #4db8e8;
  box-shadow: 0 0 0 2px rgba(77, 184, 232, 0.2);
}

.sf-schedule-block-editor__card-fields {
  margin-top: 12px;
}

.sf-schedule-block-editor__map-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: #ff6b2b;
}

.sf-schedule-block-editor__important {
  margin-top: 40px;
  padding: 24px;
  background: #f3f8fc;
  border-radius: 5px;
}

.sf-schedule-block-editor__important-title {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0a1f44;
  margin-bottom: 16px;
  padding: 0;
}

.sf-schedule-block-editor__important-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.sf-schedule-block-editor__important-card {
  background: #fff;
  border-radius: 5px;
  padding: 16px;
  border-top: 4px solid #4db8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sf-schedule-block-editor__important-card.is-orange {
  border-top-color: #ff6b2b;
}

.sf-schedule-block-editor__location + .sf-schedule-block-editor__location {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(10, 31, 68, 0.1);
}

.sf-schedule-block-editor__loc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sf-schedule-block-editor__loc-head > i {
  color: #ff6b2b;
  font-size: 18px;
}

.sf-schedule-block-editor__loc-title {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0a1f44;
  line-height: 1.15;
  padding: 0;
}

.sf-schedule-block-editor__loc-title:focus {
  outline: 2px solid #4db8e8;
  outline-offset: 4px;
  border-radius: 4px;
}

.sf-schedule-block-editor__layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.sf-schedule-block-editor__col {
  width: 65%;
  flex-shrink: 0;
  min-width: 0;
}

.sf-schedule-block-editor__aside {
  flex: 1;
  min-width: 220px;
}

.sf-schedule-block-editor__aside .sf-smap__frame {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 5px;
  display: block;
  background: #e8eef5;
}

.sf-schedule-block-editor__map-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef5;
  border-radius: 5px;
  color: rgba(10, 31, 68, 0.45);
  font-size: 13px;
  font-weight: 700;
}

.sf-schedule-block-editor__aside .sf-smap__card {
  margin-top: 12px;
}

.sf-schedule-block-editor__aside-note {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(10, 31, 68, 0.45);
}

.sf-schedule-block-editor__table {
  border: 1px solid rgba(10, 31, 68, 0.1);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.sf-schedule-block-editor__table-head {
  background: #1a5fa8;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sf-schedule-block-editor .sf-stable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-family: Roboto, sans-serif;
}

.sf-schedule-block-editor .sf-stable thead tr {
  background: #f3f8fc;
}

.sf-schedule-block-editor .sf-stable th {
  color: rgba(10, 31, 68, 0.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  text-align: center;
}

.sf-schedule-block-editor .sf-stable th:first-child {
  text-align: left;
  padding-left: 16px;
  width: 180px;
}

.sf-schedule-block-editor .sf-stable td {
  padding: 4px 6px;
  text-align: center;
  font-weight: 700;
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
  vertical-align: middle;
}

.sf-schedule-block-editor .sf-stable td:first-child {
  text-align: left;
  padding-left: 8px;
  font-weight: 800;
}

.sf-schedule-block-editor .sf-stable tr:last-child td {
  border-bottom: none;
}

.sf-schedule-block-editor .sf-smap__card {
  margin-top: 12px;
  background: #fff;
  border-radius: 5px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(10, 31, 68, 0.08);
}

.sf-schedule-block-editor .sf-smap__addr {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: #0a1f44;
  margin: 0;
}

.sf-schedule-block-editor .sf-smap__addr span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(10, 31, 68, 0.55);
  margin-top: 2px;
}

.sf-schedule-block-editor .sf-smap__text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(10, 31, 68, 0.7);
}

.sf-schedule-block-editor__head-title,
.sf-schedule-block-editor__head-meta {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Montserrat, sans-serif;
}

.sf-schedule-block-editor__head-title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sf-schedule-block-editor__head-meta {
  width: 180px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.sf-schedule-block-editor__head-title:focus,
.sf-schedule-block-editor__head-meta:focus {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-radius: 3px;
}

.sf-schedule-block-editor__table-wrap {
  overflow-x: auto;
}

.sf-schedule-block-editor__table .sf-stable {
  width: 100%;
}

.sf-schedule-block-editor__cell-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: inherit;
  padding: 6px 4px;
}

.sf-schedule-block-editor__cell-input--label {
  text-align: left;
  font-weight: 800;
  padding-left: 8px;
}

.sf-schedule-block-editor__cell-input:hover {
  border-color: #d0d8e8;
  background: #fff;
}

.sf-schedule-block-editor__cell-input:focus {
  outline: 0;
  border-color: #4db8e8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(77, 184, 232, 0.2);
}

.sf-schedule-block-editor__time-cell .sf-schedule-block-editor__cell-input {
  color: #1a5fa8;
}

.sf-stable__off .sf-schedule-block-editor__cell-input {
  color: rgba(10, 31, 68, 0.35);
}

.sf-schedule-block-editor__actions-col {
  width: 40px;
  padding: 0 8px !important;
}

.sf-schedule-block-editor__icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(10, 31, 68, 0.35);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.sf-schedule-block-editor__icon-btn:hover {
  background: #ffe8e0;
  color: #ff6b2b;
}

.sf-schedule-block-editor__table-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 14px;
  background: #f8fbfe;
  border-top: 1px solid rgba(10, 31, 68, 0.08);
}

.sf-schedule-block-editor__add-group {
  margin-top: 16px;
}

.sf-schedule-block-editor__add-school {
  margin-top: 28px;
}

.sf-schedule-block-editor__panel {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.sf-schedule-block-editor__panel strong {
  display: block;
  margin-bottom: 8px;
}

.wp-block-swim-family-schedule {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.sf-inner-content .wp-block-swim-family-schedule,
.sf-inner-content .sf-schedule-block {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .sf-schedule-block-editor__layout {
    flex-direction: column;
  }

  .sf-schedule-block-editor__col,
  .sf-schedule-block-editor__aside {
    width: 100%;
  }

  .sf-schedule-block-editor__meta-grid,
  .sf-schedule-block-editor__important-grid {
    grid-template-columns: 1fr;
  }
}
