  .commerce-studio-pd-widget {
    margin: 16px 0;
  }

  .cs-pd-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
  }

  .cs-pd-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .cs-pd-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }

  .cs-pd-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .cs-pd-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-pd-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .cs-pd-button-inline {
    background: transparent !important;
    color: inherit !important;
    padding: 8px 16px;
    border: 1px solid currentColor;
  }

  .cs-pd-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-pd-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .cs-pd-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
  }

  .cs-pd-step {
    display: none;
    text-align: center;
  }

  .cs-pd-step.active {
    display: block;
  }

  .cs-pd-step h3 {
    margin-bottom: 16px;
  }

  .cs-pd-guide-svg {
    max-width: 200px;
    margin: 24px auto;
  }

  /* Step 1 tips list */
  .cs-pd-tips {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 16px auto;
    max-width: 280px;
  }

  .cs-pd-tips li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 24px;
  }

  .cs-pd-tips li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
  }

  /* Camera container */
  .cs-pd-camera-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
  }

  .cs-pd-camera-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
  }

  .cs-pd-camera-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  /* Loading spinner for MediaPipe model */
  .cs-pd-loading-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
  }

  .cs-pd-loading-model p {
    font-size: 14px;
    color: #666;
    margin: 0;
  }

  .cs-pd-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9ecef;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: cs-pd-spin 0.8s linear infinite;
  }

  @keyframes cs-pd-spin {
    to { transform: rotate(360deg); }
  }

  /* Detection status feedback */
  .cs-pd-detection-status {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 8px 0;
    transition: all 0.3s ease;
  }

  .cs-pd-status-loading {
    background: #f0f4ff;
    color: #3b82f6;
  }

  .cs-pd-status-ready {
    background: #f0f4ff;
    color: #3b82f6;
  }

  .cs-pd-status-good {
    background: #f0fdf4;
    color: #16a34a;
  }

  .cs-pd-status-warning {
    background: #fffbeb;
    color: #d97706;
  }

  .cs-pd-status-info {
    background: #f8f9fa;
    color: #666;
  }

  /* Live PD preview */
  .cs-pd-live-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 12px;
  }

  .cs-pd-live-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
  }

  .cs-pd-live-preview {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: center;
  }

  .cs-pd-camera-hint {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
  }

  /* Manual input fallback */
  .cs-pd-manual-input {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
  }

  .cs-pd-manual-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
  }

  .cs-pd-manual-row {
    display: flex;
    gap: 8px;
    justify-content: center;
  }

  .cs-pd-manual-field {
    width: 100px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    outline: none;
  }

  .cs-pd-manual-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  }

  .cs-pd-manual-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
  }

  /* Results */
  .cs-pd-result {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
  }

  .cs-pd-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
  }

  .cs-pd-value small {
    font-size: 24px;
    font-weight: 400;
    color: #666;
  }

  .cs-pd-monocular {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
  }

  .cs-pd-confidence {
    margin-top: 8px;
    color: #666;
  }

  .cs-pd-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .cs-pd-save, .cs-pd-retry, .cs-pd-next, .cs-pd-capture {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
  }

  .cs-pd-save, .cs-pd-next, .cs-pd-capture {
    color: #fff;
  }

  .cs-pd-capture:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .cs-pd-retry {
    background: #f0f0f0;
    color: #333;
  }
