.swbfg-grid-wrap {
  display: grid;
  gap: var(--swbfg-gap, 22px);
  max-width: 1200px;
  margin: 0 auto;
}
.swbfg-grid-wrap.swbfg-columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.swbfg-grid-wrap.swbfg-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swbfg-grid-wrap.swbfg-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swbfg-grid-wrap.swbfg-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.swbfg-grid-wrap.swbfg-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.swbfg-grid-wrap.swbfg-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.swbfg-card {
  background: #fff;
  border: 1px solid #f5d7e3;
  border-radius: var(--swbfg-radius, 24px);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(190, 62, 109, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.swbfg-card-image-wrap { padding: 16px 16px 0; }
.swbfg-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: #fff3f8;
}
.swbfg-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.swbfg-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe8f0;
  color: #b12b60;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.swbfg-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  color: #7b1e45;
}
.swbfg-desc {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #6b5562;
  flex: 1 1 auto;
}
.swbfg-desc p { margin: 0 0 10px; }
.swbfg-desc p:last-child { margin-bottom: 0; }
.swbfg-desc ul,
.swbfg-desc ol { margin: 0 0 10px 18px; padding: 0; }
.swbfg-desc li { margin: 0 0 6px; }
.swbfg-desc strong { color: #7b1e45; }
.swbfg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--swbfg-accent-start, #ffc1da) 0%, var(--swbfg-accent-end, #de3163) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(222, 49, 99, 0.22);
}
.swbfg-button:hover { opacity: 0.94; color: #fff; }
.swbfg-button-secondary {
  background: #fff;
  color: #b12b60;
  border: 1px solid #f2cada;
  box-shadow: none;
}
.swbfg-button-secondary:hover { color: #b12b60; }

.swbfg-card-list {
  min-height: 100%;
}
.swbfg-card-list .swbfg-card-image-wrap {
  padding: 16px 16px 0;
}
.swbfg-card-list .swbfg-card-body {
  gap: 0;
}
.swbfg-card-list .swbfg-title {
  min-height: 58px;
}
.swbfg-desc-scroll {
  position: relative;
  max-height: 170px;
  overflow: auto;
  padding: 12px 12px 10px;
  border-radius: 16px;
  border: 1px solid #f2d5e1;
  background: linear-gradient(180deg, #fffafc 0%, #fff4f8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  scrollbar-width: thin;
  scrollbar-color: #e6a8be #fff3f8;
}
.swbfg-desc-scroll::-webkit-scrollbar {
  width: 8px;
}
.swbfg-desc-scroll::-webkit-scrollbar-track {
  background: #fff3f8;
  border-radius: 999px;
}
.swbfg-desc-scroll::-webkit-scrollbar-thumb {
  background: #e6a8be;
  border-radius: 999px;
}
.swbfg-desc-scroll:after {
  content: "";
  position: sticky;
  left: 0;
  bottom: -10px;
  display: block;
  height: 20px;
  margin-top: -20px;
  background: linear-gradient(180deg, rgba(255,244,248,0) 0%, rgba(255,244,248,0.96) 85%);
  pointer-events: none;
}
.swbfg-modal-card .swbfg-desc {
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.swbfg-form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f4;
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, .08);
  font-size: 14px;
  line-height: 1.6;
}
html.swbfg-modal-open,
body.swbfg-modal-open {
  overflow: hidden;
}
.swbfg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(55, 18, 38, 0.78);
  backdrop-filter: blur(7px);
}
.swbfg-modal-dialog {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: linear-gradient(180deg, #fffafc 0%, #ffffff 100%);
  border-radius: 28px;
  border: 1px solid rgba(222, 49, 99, 0.12);
  box-shadow: 0 28px 80px rgba(92, 26, 58, 0.28);
  padding: 18px;
}
.swbfg-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.swbfg-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1cfdb;
  background: #fff;
  color: #b03060;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.swbfg-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff0f5;
  color: #b03060;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.swbfg-modal-state { display: none; }
.swbfg-modal-state.is-active { display: block; }
.swbfg-modal-card { box-shadow: none; border-color: #f2d6e2; }
.swbfg-modal-hero {
  padding: 8px 18px 0;
}
.swbfg-modal-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #ffe8f0;
  color: #b12b60;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.swbfg-modal-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: #8e214c;
}
.swbfg-modal-form-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #8e214c;
}
.swbfg-modal-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #7a5b69;
}
.swbfg-modal-actions,
.swbfg-modal-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swbfg-modal-form-wrap {
  background: #fff;
  border: 1px solid rgba(222, 49, 99, 0.1);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(222, 49, 99, 0.06);
}
.swbfg-modal-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.swbfg-modal-form-body input[type="text"],
.swbfg-modal-form-body input[type="email"],
.swbfg-modal-form-body input[type="tel"],
.swbfg-modal-form-body textarea,
.swbfg-modal-form-body select {
  border-radius: 12px !important;
  border: 1px solid #f1c5d4 !important;
  background: #fffdfd !important;
}
.swbfg-modal-form-body .ff-btn-submit,
.swbfg-modal-form-body button[type="submit"],
.swbfg-modal-form-body input[type="submit"] {
  background: linear-gradient(135deg, var(--swbfg-accent-start, #ffc1da) 0%, var(--swbfg-accent-end, #de3163) 100%) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 20px rgba(222, 49, 99, 0.18) !important;
}
@media (max-width: 1199px) {
  .swbfg-grid-wrap.swbfg-columns-6,
  .swbfg-grid-wrap.swbfg-columns-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .swbfg-grid-wrap.swbfg-columns-6,
  .swbfg-grid-wrap.swbfg-columns-5,
  .swbfg-grid-wrap.swbfg-columns-4,
  .swbfg-grid-wrap.swbfg-columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swbfg-modal-form-header {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .swbfg-card-list .swbfg-title { min-height: 0; }
  .swbfg-desc-scroll { max-height: 190px; }
  .swbfg-grid-wrap,
  .swbfg-grid-wrap.swbfg-columns-1,
  .swbfg-grid-wrap.swbfg-columns-2,
  .swbfg-grid-wrap.swbfg-columns-3,
  .swbfg-grid-wrap.swbfg-columns-4,
  .swbfg-grid-wrap.swbfg-columns-5,
  .swbfg-grid-wrap.swbfg-columns-6 { grid-template-columns: 1fr; }
  .swbfg-modal-overlay { padding: 12px; }
  .swbfg-modal-dialog { padding: 14px; border-radius: 22px; }
  .swbfg-modal-topbar { align-items: center; }
  .swbfg-modal-link { font-size: 12px; padding: 9px 12px; }
  .swbfg-modal-actions,
  .swbfg-modal-inline-actions { flex-direction: column; }
  .swbfg-modal-actions .swbfg-button,
  .swbfg-modal-inline-actions .swbfg-modal-link,
  .swbfg-modal-topbar .swbfg-modal-link { width: 100%; }
}
