.ms-syb-widget {
  --ms-syb-primary: #9d2d68;
  --ms-syb-primary-dark: #76204e;
  --ms-syb-accent: #f4c84b;
  --ms-syb-border: #eadde5;
  --ms-syb-text: #2b2227;
  max-width: 920px;
  margin: 2rem auto;
  color: var(--ms-syb-text);
}

.ms-syb-disclosure {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ms-syb-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(75, 28, 55, .08);
}

.ms-syb-launcher {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ms-syb-primary), var(--ms-syb-primary-dark));
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  list-style: none;
  transition: background-color .2s ease, filter .2s ease;
}

.ms-syb-launcher::-webkit-details-marker {
  display: none;
}

.ms-syb-launcher::marker {
  display: none;
}

.ms-syb-launcher:hover,
.ms-syb-launcher:focus-visible {
  filter: brightness(1.08);
}

.ms-syb-launcher:focus-visible {
  outline: 3px solid rgba(244, 200, 75, .85);
  outline-offset: -3px;
}

.ms-syb-launcher-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

.ms-syb-disclosure[open] .ms-syb-launcher-icon {
  transform: rotate(45deg);
}

.ms-syb-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(255, 250, 252, .82);
  border-top: 1px solid var(--ms-syb-border);
}

.ms-syb-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #f6eef2;
}

.ms-syb-backdrop::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 250, 252, .8), rgba(255, 255, 255, .66));
  content: "";
}

.ms-syb-backdrop-slide {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  filter: saturate(.9) blur(1px);
  opacity: 0;
  transform: scale(1.06);
  animation: ms-syb-image-transition 16s linear infinite;
}

.ms-syb-backdrop-slide:nth-child(2) {
  animation-delay: 4s;
}

.ms-syb-backdrop-slide:nth-child(3) {
  animation-delay: 8s;
}

.ms-syb-backdrop-slide:nth-child(4) {
  animation-delay: 12s;
}

.ms-syb-panel-content {
  position: relative;
  z-index: 2;
}

@keyframes ms-syb-image-transition {
  0%, 100% {
    opacity: 0;
    transform: scale(1.06);
  }

  8%, 25% {
    opacity: .28;
  }

  33% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.ms-syb-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.ms-syb-title {
  margin: 0;
  color: var(--ms-syb-primary-dark);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.ms-syb-description {
  max-width: 680px;
  margin: .65rem auto 0;
  color: #665861;
}

.ms-syb-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .9rem;
  align-items: end;
  margin: 0 auto 1.4rem;
}

.ms-syb-field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
}

.ms-syb-field select {
  width: 100%;
  min-height: 48px;
  padding: .65rem .8rem;
  color: var(--ms-syb-text);
  background-color: #fff;
  border: 1px solid #cdbec7;
  border-radius: 8px;
  font-size: 1rem;
}

.ms-syb-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ms-syb-button:hover,
.ms-syb-button:focus-visible {
  transform: translateY(-1px);
}

.ms-syb-button-primary {
  color: #fff !important;
  background: var(--ms-syb-primary);
}

.ms-syb-button-primary:hover,
.ms-syb-button-primary:focus-visible {
  background: var(--ms-syb-primary-dark);
}

.ms-syb-button-secondary {
  color: var(--ms-syb-primary-dark) !important;
  background: #fff;
  border-color: var(--ms-syb-primary);
}

.ms-syb-button-secondary:hover,
.ms-syb-button-secondary:focus-visible {
  color: #fff !important;
  background: var(--ms-syb-primary);
}

.ms-syb-results {
  min-height: 52px;
  transition: opacity .2s ease;
}

.ms-syb-ajax-ready .ms-syb-submit {
  display: none;
}

.ms-syb-is-loading .ms-syb-results {
  opacity: .72;
}

.ms-syb-message {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.ms-syb-message-info {
  color: #665861;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--ms-syb-border);
}

.ms-syb-message-loading {
  color: var(--ms-syb-primary-dark);
  background: rgba(255, 247, 251, .9);
  border: 1px solid #dca8c3;
}

.ms-syb-message-error {
  color: #7b1f30;
  background: #fff1f3;
  border: 1px solid #e5aeb8;
}

.ms-syb-product-card {
  display: grid;
  grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #fffafc;
  border: 1px solid var(--ms-syb-border);
  border-radius: 14px;
}

.ms-syb-product-image-wrap {
  overflow: hidden;
  border-radius: 10px;
  background: #f6eef2;
}

.ms-syb-product-image-wrap a,
.ms-syb-product-image-wrap img {
  display: block;
  width: 100%;
}

.ms-syb-product-image-wrap img {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ms-syb-badge {
  display: inline-block;
  margin-bottom: .6rem;
  padding: .25rem .6rem;
  color: #503500;
  background: var(--ms-syb-accent);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ms-syb-product-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.ms-syb-product-title a {
  color: var(--ms-syb-primary-dark);
  text-decoration: none;
}

.ms-syb-product-price {
  margin-top: .55rem;
  color: var(--ms-syb-primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.ms-syb-product-description {
  margin: .75rem 0 1rem;
  color: #665861;
  line-height: 1.55;
}

.ms-syb-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

@media (prefers-reduced-motion: reduce) {
  .ms-syb-backdrop-slide {
    animation: none;
    opacity: 0;
  }

  .ms-syb-backdrop-slide:first-child {
    opacity: .16;
  }
}

@media (max-width: 640px) {
  .ms-syb-form,
  .ms-syb-product-card {
    grid-template-columns: 1fr;
  }

  .ms-syb-form .ms-syb-button,
  .ms-syb-product-actions .ms-syb-button {
    width: 100%;
  }

  .ms-syb-product-actions .ms-syb-button {
    flex: 1 1 100%;
  }
}
