  .commerce-studio-3d-widget {
    margin: 16px 0;
  }

  .cs-3d-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .cs-3d-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  /* Inline preview mode */
  .cs-3d-inline-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: 12px;
    flex-wrap: wrap;
  }

  .cs-3d-inline-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .cs-3d-inline-info {
    flex: 1;
    min-width: 160px;
  }

  .cs-3d-inline-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
  }

  .cs-3d-inline-info span {
    font-size: 13px;
    color: #666;
  }

  .cs-3d-trigger-inline {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Embedded viewer mode */
  .cs-3d-embedded-viewer {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
  }

  .cs-3d-viewer-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
  }

  .cs-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
  }

  .cs-3d-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
  }

  .cs-3d-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cs-3d-spin 1s linear infinite;
    margin: 0 auto 12px;
  }

  @keyframes cs-3d-spin {
    to { transform: rotate(360deg); }
  }

  .cs-3d-embedded-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
  }

  /* Modal */
  .cs-3d-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cs-3d-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
  }

  .cs-3d-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
  }

  .cs-3d-modal-title {
    padding: 20px 24px 0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .cs-3d-modal-content .cs-3d-viewer-container {
    margin: 16px;
    border-radius: 12px;
    overflow: hidden;
    width: auto;
  }

  /* Controls shared */
  .cs-3d-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px 24px;
  }

  .cs-3d-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
  }

  .cs-3d-control-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
  }

  .cs-3d-control-btn.active {
    border-color: transparent;
  }

  .cs-3d-control-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 0 4px;
  }

  /* Responsive */
  @media (max-width: 480px) {
    .cs-3d-modal-content {
      width: 95%;
      max-width: none;
    }

    .cs-3d-controls {
      flex-wrap: wrap;
    }

    .cs-3d-inline-preview {
      flex-direction: column;
      text-align: center;
    }

    .cs-3d-trigger-inline {
      width: 100%;
    }
  }
