.approf-3d-product-model {
  width: 100%;
}

.approf-3d-viewer-block {
  width: 100%;
  box-sizing: border-box;
  padding: 22px;
  margin: 20px 0;
  border: 1px solid #e7e9ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(20, 30, 60, 0.06);
}

.approf-3d-viewer-header {
  margin-bottom: 18px;
}

.approf-3d-viewer-title {
  margin: 0 0 6px 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2533;
}

.approf-3d-viewer-subtitle {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.5;
  color: #667085;
}

.approf-3d-viewer-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 100%);
}

.approf-3d-viewer {
  display: block;
  width: 100%;
  height: 520px;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
}

.approf-3d-viewer-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 215, 225, 0.9);
  font-size: 14px;
  line-height: 1.3;
  color: #5f6b7a;
  box-shadow: 0 6px 18px rgba(20, 30, 60, 0.08);
  pointer-events: none;
}

.approf-3d-viewer-frame.approf-3d-loaded .approf-3d-viewer-loader {
  display: none;
}

.approf-3d-viewer-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(210, 215, 225, 0.9);
  font-size: 13px;
  line-height: 1.3;
  color: #3f4655;
  box-shadow: 0 6px 18px rgba(20, 30, 60, 0.08);
  backdrop-filter: blur(8px);
}

.approf-drawing-block {
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e6eaf2;
}

.approf-drawing-title {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2533;
}

.approf-drawing-text {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #667085;
}

.approf-drawing-frame {
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #f7f8fb;
  border: 1px solid #e1e6ef;
  overflow: auto;
}

.approf-drawing-frame img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.approf-drawing-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
  color: #4f5968;
}

.approf-architect-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
  border: 1px solid #e6eaf2;
}

.approf-architect-content {
  flex: 1 1 auto;
}

.approf-architect-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--theme-base-color, #1b74e4);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

.approf-architect-title {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2533;
}

.approf-architect-text {
  max-width: 850px;
  font-size: 15px;
  line-height: 1.55;
  color: #5f6b7a;
}

.approf-architect-text-small {
  margin-top: 12px;
  font-size: 14px;
  color: #6f7887;
}

.approf-architect-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.approf-architect-formats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dfe5ef;
  color: #2d3544;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

.approf-architect-action {
  flex: 0 0 auto;
}

.approf-architect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--theme-base-color, #1b74e4);
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.approf-architect-btn:hover {
  background: var(--theme-more-color, #155fc0);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.approf-copyright-warning {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fffaf0;
  border: 1px solid #f0d8a8;
}

.approf-copyright-title {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: #2d3544;
}

.approf-copyright-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #4f5968;
}

.approf-copyright-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 170, 86, 0.35);
  font-size: 13px;
  line-height: 1.5;
  color: #7a5520;
  font-weight: 600;
}

@media (max-width: 768px) {
  .approf-3d-viewer-block {
    padding: 14px;
    margin: 14px 0;
    border-radius: 14px;
  }

  .approf-3d-viewer-title {
    font-size: 20px;
  }

  .approf-3d-viewer-subtitle {
    font-size: 14px;
  }

  .approf-3d-viewer {
    height: 360px;
  }

  .approf-3d-viewer-badge {
    left: 10px;
    bottom: 10px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .approf-drawing-block {
    padding: 16px;
    margin-top: 16px;
    border-radius: 14px;
  }

  .approf-drawing-title {
    font-size: 19px;
  }

  .approf-drawing-text {
    font-size: 14px;
  }

  .approf-drawing-frame {
    padding: 12px;
  }

  .approf-drawing-note {
    font-size: 13px;
  }

  .approf-architect-block {
    display: block;
    padding: 16px;
    margin-top: 16px;
    border-radius: 14px;
  }

  .approf-architect-title {
    font-size: 19px;
  }

  .approf-architect-text {
    font-size: 14px;
  }

  .approf-architect-action {
    margin-top: 16px;
  }

  .approf-architect-btn {
    width: 100%;
    min-height: 44px;
  }

  .approf-copyright-warning {
    padding: 15px;
    border-radius: 12px;
  }

  .approf-copyright-title {
    font-size: 16px;
  }

  .approf-copyright-text {
    font-size: 13px;
  }

  .approf-copyright-note {
    font-size: 13px;
  }
}