.integrations-m365-showcase {
  --m365-brand: #5d4696;
  --m365-pink: #e5006c;
  --m365-excel: #217346;
  --m365-outlook: #0078d4;
}

.integrations-m365-showcase__scene {
  position: relative;
  min-height: 380px;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #2a2348 0%, #3d2f6b 38%, #1a3a5c 100%);
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(42, 35, 72, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.integrations-m365-showcase__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.integrations-m365-showcase__glow--excel {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -30px;
  background: rgba(33, 115, 70, 0.45);
}

.integrations-m365-showcase__glow--outlook {
  width: 160px;
  height: 160px;
  right: -20px;
  bottom: -30px;
  background: rgba(0, 120, 212, 0.4);
}

.integrations-m365-showcase__window {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.integrations-m365-showcase__window--excel {
  top: 1.25rem;
  left: 1rem;
  width: 62%;
  z-index: 2;
  transform: rotate(-2deg);
}

.integrations-m365-showcase__window--outlook {
  right: 0.75rem;
  bottom: 1rem;
  width: 54%;
  z-index: 3;
  transform: rotate(3deg);
}

.integrations-m365-showcase__titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.integrations-m365-showcase__titlebar--excel {
  background: var(--m365-excel);
}

.integrations-m365-showcase__titlebar--outlook {
  background: var(--m365-outlook);
}

.integrations-m365-showcase__dots {
  display: inline-flex;
  gap: 3px;
}

.integrations-m365-showcase__dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.integrations-m365-showcase__titlebar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.integrations-m365-showcase__ribbon {
  display: flex;
  gap: 0.65rem;
  padding: 0.4rem 0.65rem;
  background: #f3f2f1;
  border-bottom: 1px solid #e1dfdd;
  font-size: 0.62rem;
  color: #605e5c;
}

.integrations-m365-showcase__ribbon .is-active {
  color: var(--m365-brand);
  font-weight: 700;
  border-bottom: 2px solid var(--m365-pink);
  padding-bottom: 0.15rem;
}

.integrations-m365-showcase__sheet {
  padding: 0.35rem 0.45rem 0.55rem;
  font-size: 0.58rem;
  color: #323130;
}

.integrations-m365-showcase__sheet-head,
.integrations-m365-showcase__sheet-row {
  display: grid;
  grid-template-columns: 14px 1fr 1.1fr 28px;
  gap: 0.25rem;
  align-items: center;
}

.integrations-m365-showcase__sheet-head span:not(:first-child) {
  text-align: center;
  color: #8a8886;
  font-weight: 600;
}

.integrations-m365-showcase__sheet-row {
  margin-top: 0.2rem;
}

.integrations-m365-showcase__sheet-row span:first-child {
  color: #8a8886;
  font-weight: 600;
}

.integrations-m365-showcase__sheet-row span:nth-child(2),
.integrations-m365-showcase__sheet-row span:nth-child(3) {
  padding: 0.15rem 0.25rem;
  background: #faf9f8;
  border: 1px solid #edebe9;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.integrations-m365-showcase__qr-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px dashed #c8c6c4;
  color: #a19f9d;
  font-size: 0.75rem;
}

.integrations-m365-showcase__qr-cell.is-filled {
  border-style: solid;
  border-color: var(--m365-brand);
  background: linear-gradient(135deg, rgba(93, 70, 150, 0.12), rgba(229, 0, 108, 0.1));
  color: var(--m365-brand);
}

.integrations-m365-showcase__email {
  padding: 0.5rem 0.6rem 0.65rem;
  font-size: 0.58rem;
  color: #323130;
}

.integrations-m365-showcase__email-field {
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #edebe9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.integrations-m365-showcase__email-body p {
  margin: 0 0 0.4rem;
  line-height: 1.4;
  color: #605e5c;
}

.integrations-m365-showcase__email-qr {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--m365-pink), var(--m365-brand));
  box-shadow: 0 8px 16px rgba(93, 70, 150, 0.35);
}

.integrations-m365-showcase__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 120, 212, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
  .integrations-m365-showcase__scene {
    min-height: 340px;
    padding: 1.5rem 1rem;
  }

  .integrations-m365-showcase__window--excel {
    width: 78%;
    left: 0.5rem;
  }

  .integrations-m365-showcase__window--outlook {
    width: 68%;
    right: 0.25rem;
  }
}

.integrations-m365-cta > .input-rel-container > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
}

.integrations-m365-cta > .input-rel-container > .btn .learn-more-icon,
.integrations-m365-cta > .input-rel-container > .btn i[class*="fa-"] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.integrations-m365-cta > .input-rel-container > .btn i[class*="fa-"] {
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.integrations-gws-cta > .input-rel-container > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
}

.integrations-gws-cta > .input-rel-container > .btn .learn-more-icon,
.integrations-gws-cta > .input-rel-container > .btn i[class*="fa-"] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.integrations-gws-cta > .input-rel-container > .btn i[class*="fa-"] {
  font-size: 24px;
  line-height: 1;
  text-align: center;
}
