/**
 * PCC-Woo Public Styles v2.0
 * Mobile-First Design System
 * 
 * @version 2.0.0
 * @updated 2026-01-21
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* Colors - Primary (Inscape Blue) */
  --pcc-primary: #03a9f4;
  --pcc-primary-hover: #0288d1;
  --pcc-primary-light: #e1f5fe;
  --pcc-primary-dark: #01579b;

  /* Colors - Secondary */
  --pcc-secondary: #64748b;
  --pcc-secondary-hover: #475569;

  /* Colors - Status */
  --pcc-success: #10b981;
  --pcc-success-light: #d1fae5;
  --pcc-success-dark: #059669;
  --pcc-error: #ef4444;
  --pcc-error-light: #fee2e2;
  --pcc-warning: #f59e0b;
  --pcc-warning-light: #fef3c7;

  /* Colors - Neutral */
  --pcc-white: #ffffff;
  --pcc-gray-50: #f8fafc;
  --pcc-gray-100: #f1f5f9;
  --pcc-gray-200: #e2e8f0;
  --pcc-gray-300: #cbd5e1;
  --pcc-gray-400: #94a3b8;
  --pcc-gray-500: #64748b;
  --pcc-gray-600: #475569;
  --pcc-gray-700: #334155;
  --pcc-gray-800: #1e293b;
  --pcc-gray-900: #0f172a;

  /* Overlay */
  --pcc-overlay: rgba(15, 23, 42, 0.6);
  --pcc-overlay-blur: rgba(15, 23, 42, 0.4);

  /* Spacing */
  --pcc-space-1: 4px;
  --pcc-space-2: 8px;
  --pcc-space-3: 12px;
  --pcc-space-4: 16px;
  --pcc-space-5: 20px;
  --pcc-space-6: 24px;
  --pcc-space-8: 32px;
  --pcc-space-10: 40px;
  --pcc-space-12: 48px;

  /* Typography */
  --pcc-font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --pcc-text-xs: 0.75rem;
  --pcc-text-sm: 0.875rem;
  --pcc-text-base: 1rem;
  --pcc-text-lg: 1.125rem;
  --pcc-text-xl: 1.25rem;
  --pcc-text-2xl: 1.5rem;

  /* Font Weights */
  --pcc-font-normal: 400;
  --pcc-font-medium: 500;
  --pcc-font-semibold: 600;
  --pcc-font-bold: 700;

  /* Border Radius */
  --pcc-radius-sm: 6px;
  --pcc-radius-md: 8px;
  --pcc-radius-lg: 12px;
  --pcc-radius-xl: 16px;
  --pcc-radius-2xl: 24px;
  --pcc-radius-full: 9999px;

  /* Shadows */
  --pcc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --pcc-shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --pcc-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --pcc-shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --pcc-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --pcc-transition-fast: 150ms ease;
  --pcc-transition-base: 200ms ease;
  --pcc-transition-slow: 300ms ease;
  --pcc-transition-modal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE RESETS
   ========================================================================== */

.pcc-modal *,
.pcc-modal *::before,
.pcc-modal *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   CONFIGURATOR BUTTON - Mobile First
   ========================================================================== */

.pcc-woo-button-ctn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pcc-space-3);
  padding: var(--pcc-space-3) var(--pcc-space-4);
  background: var(--pcc-primary);
  border-radius: var(--pcc-radius-lg);
  margin: var(--pcc-space-4) 0;

  /* Mobile: Fixed to bottom */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  border-radius: 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.pcc-woo-product-details {
  display: flex;
  align-items: center;
  gap: var(--pcc-space-2);
  color: var(--pcc-white);
  font-size: var(--pcc-text-sm);
  font-weight: var(--pcc-font-medium);
  text-decoration: none;
  padding: var(--pcc-space-2) var(--pcc-space-3);
  border-radius: var(--pcc-radius-md);
  transition: background var(--pcc-transition-fast);
  white-space: nowrap;
}

.pcc-woo-product-details:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pcc-white);
  text-decoration: none;
}

.pcc-woo-product-details svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Primary Configurator Button */
#pcc-woo-button,
.pcc-woo-button.pcc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pcc-space-2);
  min-height: 44px;
  padding: var(--pcc-space-3) var(--pcc-space-5);
  font-family: var(--pcc-font-family);
  font-size: var(--pcc-text-sm);
  font-weight: var(--pcc-font-semibold);
  line-height: 1;
  color: var(--pcc-primary);
  background: var(--pcc-white);
  border: none;
  border-radius: var(--pcc-radius-md);
  cursor: pointer;
  transition: all var(--pcc-transition-fast);
  text-transform: none;
  white-space: nowrap;
}

#pcc-woo-button:hover,
.pcc-woo-button.pcc-btn-primary:hover {
  background: var(--pcc-gray-100);
  transform: translateY(-1px);
  box-shadow: var(--pcc-shadow-md);
}

#pcc-woo-button:active,
.pcc-woo-button.pcc-btn-primary:active {
  transform: translateY(0);
}

#pcc-woo-button:focus-visible,
.pcc-woo-button:focus-visible {
  outline: 2px solid var(--pcc-primary);
  outline-offset: 2px;
}

/* Button Icon */
#pcc-woo-button::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2303A9F4' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ==========================================================================
   MODAL OVERLAY - Mobile First (Fullscreen)
   ========================================================================== */

#pcc-interface {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  background: var(--pcc-white);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--pcc-transition-modal),
    visibility var(--pcc-transition-modal);
}

#pcc-interface.pcc-modal-open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   MODAL CONTAINER - Mobile First
   ========================================================================== */

.pcc-interface {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--pcc-white);
}

.pcc-interface-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ==========================================================================
   MODAL HEADER
   ========================================================================== */

.pcc-modal-header,
.pcc-interface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pcc-space-3);
  padding: var(--pcc-space-4);
  background: var(--pcc-white);
  border-bottom: 1px solid var(--pcc-gray-200);
  flex-shrink: 0;
}

.pcc-modal-header-content {
  display: flex;
  align-items: center;
  gap: var(--pcc-space-3);
  min-width: 0;
}

/* Header Icon (like in design pattern) */
.pcc-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--pcc-primary-light);
  border-radius: var(--pcc-radius-lg);
  flex-shrink: 0;
}

.pcc-modal-icon svg {
  width: 20px;
  height: 20px;
  color: var(--pcc-primary);
}

/* Header Title */
.modal-title,
.pcc-interface-label {
  margin: 0;
  font-family: var(--pcc-font-family);
  font-size: var(--pcc-text-base);
  font-weight: var(--pcc-font-semibold);
  color: var(--pcc-gray-900);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Close Button */
.pcc-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--pcc-gray-200);
  border-radius: var(--pcc-radius-sm);
  color: var(--pcc-gray-400);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--pcc-transition-fast);
  flex-shrink: 0;
}

.pcc-close:hover {
  background: var(--pcc-gray-100);
  border-color: var(--pcc-gray-300);
  color: var(--pcc-gray-600);
}

.pcc-close:focus-visible {
  outline: 2px solid var(--pcc-primary);
  outline-offset: 2px;
}

.pcc-close svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   MODAL BODY
   ========================================================================== */

.pcc-modal-body {
  flex: 1;
  overflow: auto;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pcc-modal-body iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   RESULT BOX MODAL
   ========================================================================== */

#pcc-result-box {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: var(--pcc-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--pcc-transition-modal),
    visibility var(--pcc-transition-modal);
  padding: 0;
}

#pcc-result-box.pcc-modal-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Result Dialog - Mobile: Slide from bottom */
.pcc-modal-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  background: var(--pcc-white);
  border-radius: var(--pcc-radius-2xl) var(--pcc-radius-2xl) 0 0;
  box-shadow: var(--pcc-shadow-2xl);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--pcc-transition-modal);
  overflow: hidden;
}

#pcc-result-box.pcc-modal-open .pcc-modal-dialog {
  transform: translateY(0);
}

/* Drag Handle for mobile */
.pcc-modal-dialog::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: var(--pcc-space-3) auto var(--pcc-space-2);
  background: var(--pcc-gray-300);
  border-radius: var(--pcc-radius-full);
}

/* Result Modal Content */
.pcc-modal-dialog .pcc-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 var(--pcc-space-4) var(--pcc-space-4);
}

.pcc-modal-dialog .pcc-modal-header {
  padding: var(--pcc-space-2) 0 var(--pcc-space-4);
  border-bottom: none;
}

/* Status Title */
#pcc-request-status {
  font-size: var(--pcc-text-base);
  font-weight: var(--pcc-font-semibold);
  color: var(--pcc-gray-900);
  margin: 0;
}

#pcc-request-status.text-success {
  color: var(--pcc-success);
}

/* ==========================================================================
   PRODUCT CARD IN RESULT
   ========================================================================== */

#pcc-product-ctn {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
  padding: var(--pcc-space-2) 0;
}

.pcc-product-row {
  display: flex;
  gap: var(--pcc-space-3);
  padding: var(--pcc-space-3);
  background: var(--pcc-gray-50);
  border-radius: var(--pcc-radius-lg);
  margin-bottom: var(--pcc-space-3);
}

.pcc-product-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--pcc-radius-md);
  overflow: hidden;
  background: var(--pcc-white);
  border: 1px solid var(--pcc-gray-200);
}

.pcc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

.pcc-product-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pcc-space-1);
}

.pcc-rows-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--pcc-space-2);
  padding: 0;
}

.pcc-product-title {
  font-size: var(--pcc-text-sm);
  font-weight: var(--pcc-font-semibold);
  color: var(--pcc-gray-900);
  line-height: 1.3;
}

.pcc-product-price {
  font-size: var(--pcc-text-sm);
  font-weight: var(--pcc-font-bold);
  color: var(--pcc-primary);
  white-space: nowrap;
}

.pcc-product-description {
  margin-top: var(--pcc-space-1);
}

.pcc-product-description p {
  margin: 0;
  font-size: var(--pcc-text-xs);
  color: var(--pcc-gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcc-product-description hr {
  display: none;
}

/* ==========================================================================
   MODAL FOOTER / ACTION BUTTONS
   ========================================================================== */

#pcc-result-footer,
.pcc-modal-footer {
  display: flex;
  align-items: center;
  gap: var(--pcc-space-3);
  padding: var(--pcc-space-4) 0 0;
  margin-top: auto;
  border-top: 1px solid var(--pcc-gray-200);
}

/* Button Base Styles */
.pcc-woo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pcc-space-2);
  min-height: 44px;
  padding: var(--pcc-space-3) var(--pcc-space-4);
  font-family: var(--pcc-font-family);
  font-size: var(--pcc-text-sm);
  font-weight: var(--pcc-font-medium);
  line-height: 1;
  border-radius: var(--pcc-radius-md);
  cursor: pointer;
  transition: all var(--pcc-transition-fast);
  text-decoration: none;
  white-space: nowrap;
  flex: 1;
}

/* Primary Button (Add to Cart) */
#pcc-to-cart {
  background: var(--pcc-primary);
  color: var(--pcc-white);
  border: none;
  box-shadow: var(--pcc-shadow-sm);
}

#pcc-to-cart:hover {
  background: var(--pcc-primary-hover);
  box-shadow: var(--pcc-shadow-md);
}

/* Secondary Button (Edit/Modify) */
#pcc-edit-conf-btn,
.pcc-woo-button.edit,
.pcc-woo-button.retry {
  background: var(--pcc-white);
  color: var(--pcc-gray-700);
  border: 1px solid var(--pcc-gray-300);
}

#pcc-edit-conf-btn:hover,
.pcc-woo-button.edit:hover,
.pcc-woo-button.retry:hover {
  background: var(--pcc-gray-50);
  border-color: var(--pcc-gray-400);
}

/* Go to Cart Button */
#pcc-edit-cart-btn {
  background: var(--pcc-primary);
  color: var(--pcc-white);
  border: none;
}

#pcc-edit-cart-btn:hover {
  background: var(--pcc-primary-hover);
}

/* Button Focus States */
.pcc-woo-button:focus-visible,
#pcc-to-cart:focus-visible,
#pcc-edit-conf-btn:focus-visible,
#pcc-edit-cart-btn:focus-visible {
  outline: 2px solid var(--pcc-primary);
  outline-offset: 2px;
}

/* Button Loading State */
.pcc-woo-button.pcc-btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.pcc-woo-button.pcc-btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pcc-btn-spin 0.6s linear infinite;
}

#pcc-to-cart.pcc-btn-loading::after,
#pcc-edit-cart-btn.pcc-btn-loading::after {
  border-top-color: var(--pcc-white);
}

#pcc-edit-conf-btn.pcc-btn-loading::after,
.pcc-woo-button.edit.pcc-btn-loading::after {
  border-top-color: var(--pcc-gray-700);
}

@keyframes pcc-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   STEP PROGRESS INDICATOR
   ========================================================================== */

.pcc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pcc-space-2);
  padding: var(--pcc-space-3) var(--pcc-space-4);
  background: var(--pcc-gray-50);
  border-bottom: 1px solid var(--pcc-gray-200);
}

.pcc-step {
  display: flex;
  align-items: center;
  gap: var(--pcc-space-2);
  font-size: var(--pcc-text-xs);
  color: var(--pcc-gray-400);
  transition: color var(--pcc-transition-fast);
}

.pcc-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: var(--pcc-text-xs);
  font-weight: var(--pcc-font-semibold);
  border-radius: 50%;
  background: var(--pcc-gray-200);
  color: var(--pcc-gray-500);
  transition: all var(--pcc-transition-fast);
}

.pcc-step-label {
  display: none;
}

.pcc-step-connector {
  width: 24px;
  height: 2px;
  background: var(--pcc-gray-200);
  transition: background var(--pcc-transition-fast);
}

/* Active Step */
.pcc-step.pcc-step-active {
  color: var(--pcc-primary);
}

.pcc-step.pcc-step-active .pcc-step-number {
  background: var(--pcc-primary);
  color: var(--pcc-white);
  box-shadow: 0 0 0 4px var(--pcc-primary-light);
}

/* Completed Step */
.pcc-step.pcc-step-completed {
  color: var(--pcc-success);
}

.pcc-step.pcc-step-completed .pcc-step-number {
  background: var(--pcc-success);
  color: var(--pcc-white);
}

.pcc-step.pcc-step-completed .pcc-step-number::before {
  content: '✓';
}

.pcc-step.pcc-step-completed .pcc-step-number span {
  display: none;
}

.pcc-step-connector.pcc-step-completed {
  background: var(--pcc-success);
}

/* Tablet: Show labels */
@media (min-width: 768px) {
  .pcc-steps {
    gap: var(--pcc-space-3);
  }

  .pcc-step-label {
    display: inline;
  }

  .pcc-step-connector {
    width: 40px;
  }
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */

.pcc-loader {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--pcc-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pcc-loader.pcc-loading {
  display: flex;
}

.pcc-spinner {
  position: relative;
  width: 48px;
  height: 48px;
}

.pcc-spinner div {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--pcc-primary);
  border-radius: 50%;
  animation: pcc-spin 1s linear infinite;
}

.pcc-spinner div:nth-child(2) {
  inset: 6px;
  border-top-color: var(--pcc-primary-light);
  animation-duration: 0.8s;
  animation-direction: reverse;
}

@keyframes pcc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading Skeleton */
.pcc-skeleton {
  background: linear-gradient(
    90deg,
    var(--pcc-gray-200) 25%,
    var(--pcc-gray-100) 50%,
    var(--pcc-gray-200) 75%
  );
  background-size: 200% 100%;
  animation: pcc-shimmer 1.5s infinite;
  border-radius: var(--pcc-radius-md);
}

@keyframes pcc-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   SUCCESS/ERROR STATES
   ========================================================================== */

.pcc-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--pcc-space-3);
  padding: var(--pcc-space-4);
  border-radius: var(--pcc-radius-lg);
  margin: var(--pcc-space-3) 0;
}

.pcc-alert-success {
  background: var(--pcc-success-light);
  color: var(--pcc-success-dark);
}

.pcc-alert-error {
  background: var(--pcc-error-light);
  color: var(--pcc-error);
}

.pcc-alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.pcc-alert-text {
  font-size: var(--pcc-text-sm);
  line-height: 1.5;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.pcc-toast-container {
  position: fixed;
  bottom: var(--pcc-space-4);
  left: var(--pcc-space-4);
  right: var(--pcc-space-4);
  z-index: 10200;
  display: flex;
  flex-direction: column;
  gap: var(--pcc-space-2);
  pointer-events: none;
}

.pcc-toast {
  display: flex;
  align-items: center;
  gap: var(--pcc-space-3);
  padding: var(--pcc-space-4);
  background: var(--pcc-gray-900);
  color: var(--pcc-white);
  border-radius: var(--pcc-radius-lg);
  box-shadow: var(--pcc-shadow-xl);
  pointer-events: auto;
  transform: translateY(100%);
  opacity: 0;
  transition: all var(--pcc-transition-modal);
}

.pcc-toast.pcc-toast-visible {
  transform: translateY(0);
  opacity: 1;
}

.pcc-toast-success {
  background: var(--pcc-success);
}

.pcc-toast-error {
  background: var(--pcc-error);
}

/* ==========================================================================
   STICKY BAR VARIANT
   ========================================================================== */

.pccwoo-sticky-bar.pcc-woo-button-ctn {
  position: fixed;
  bottom: var(--pcc-space-4);
  right: var(--pcc-space-4);
  left: auto;
  width: auto;
  max-width: 280px;
  border-radius: var(--pcc-radius-xl);
  padding: var(--pcc-space-4);
  flex-direction: column;
  gap: var(--pcc-space-3);
  box-shadow: var(--pcc-shadow-2xl);
}

.pccwoo-sticky-bar .pccwoo-notice {
  font-size: var(--pcc-text-sm);
  color: var(--pcc-white);
  text-align: center;
}

.pccwoo-sticky-bar .pcc-woo-button {
  width: 100%;
}

/* ==========================================================================
   ACCESSIBILITY - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   TABLET STYLES (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  /* Button Bar */
  .pcc-woo-button-ctn {
    position: relative;
    border-radius: var(--pcc-radius-lg);
    box-shadow: none;
    margin: var(--pcc-space-4) 0;
  }

  /* Configurator Modal */
  #pcc-interface {
    background: var(--pcc-overlay);
    backdrop-filter: blur(4px);
    padding: var(--pcc-space-6);
  }

  .pcc-interface {
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    border-radius: var(--pcc-radius-xl);
    box-shadow: var(--pcc-shadow-2xl);
    overflow: hidden;
  }

  /* Result Modal */
  #pcc-result-box {
    align-items: center;
    padding: var(--pcc-space-6);
  }

  .pcc-modal-dialog {
    max-width: 480px;
    border-radius: var(--pcc-radius-xl);
    transform: scale(0.95);
    opacity: 0;
  }

  .pcc-modal-dialog::before {
    display: none;
  }

  #pcc-result-box.pcc-modal-open .pcc-modal-dialog {
    transform: scale(1);
    opacity: 1;
  }

  .pcc-modal-dialog .pcc-modal-content {
    padding: var(--pcc-space-6);
  }

  /* Product Card */
  .pcc-product-image {
    width: 100px;
    height: 100px;
  }

  .pcc-product-title {
    font-size: var(--pcc-text-base);
  }

  .pcc-product-price {
    font-size: var(--pcc-text-lg);
  }

  /* Header */
  .pcc-modal-header,
  .pcc-interface-header {
    padding: var(--pcc-space-5) var(--pcc-space-6);
  }

  .modal-title,
  .pcc-interface-label {
    font-size: var(--pcc-text-lg);
  }

  /* Toast */
  .pcc-toast-container {
    left: auto;
    right: var(--pcc-space-6);
    bottom: var(--pcc-space-6);
    max-width: 400px;
  }
}

/* ==========================================================================
   DESKTOP STYLES (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Button Bar - Sticky Header Style */
  .pcc-woo-button-ctn {
    position: sticky;
    top: 70px;
    z-index: 100;
    margin: 0 0 var(--pcc-space-4);
    border-radius: var(--pcc-radius-lg);
  }

  /* Configurator Modal */
  .pcc-interface {
    max-width: 1024px;
  }

  /* Result Modal */
  .pcc-modal-dialog {
    max-width: 520px;
  }

  #pcc-product-ctn {
    max-height: 400px;
  }
}

/* ==========================================================================
   LARGE DESKTOP (1280px+)
   ========================================================================== */

@media (min-width: 1280px) {
  .pcc-woo-button-ctn {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .pcc-woo-button-ctn,
  #pcc-interface,
  #pcc-result-box,
  .pcc-loader {
    display: none !important;
  }
}
