/* Clean Professional Builder CSS - builder.css */

/* ===== NOTIFICATIONS ===== */
#csb-notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 400px;
}

.csb-notification {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid #dc3545;
}

.csb-notification-success {
  border-left-color: #28a745;
}

.csb-notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  background: #dc3545;
  color: white;
}

.csb-notification-success .csb-notification-icon {
  background: #28a745;
}

.csb-notification-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.csb-notification-content strong {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-size: 15px;
}

.csb-notification-content div {
  color: #666;
  margin-top: 4px;
  font-size: 13px;
}

.csb-notification-close {
  background: none !important;
  border: none !important;
  font-size: 24px !important;
  color: #999 !important;
  cursor: pointer !important;
  padding: 0 !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.csb-notification-close:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== VALIDATION STYLES ===== */
.csb-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.csb-error-message {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.csb-has-error {
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 12px;
  background: #fff5f5;
}

.required {
  color: #dc3545;
  font-weight: bold;
  margin-left: 2px;
}

/* ===== EDITING MODE ===== */
.csb-editing-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-size: 14px;
  color: #856404;
}

.csb-editing-notice strong {
  color: #856404;
  font-size: 15px;
}

.csb-update-mode {
  background: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #000 !important;
}

.csb-update-mode:hover {
  background: #e0a800 !important;
  border-color: #e0a800 !important;
}

/* ===== MAIN CONTAINER ===== */
.csb-builder-wrapper {
  max-width: 900px;
  margin: 0 auto;
  /*padding: 20px;*/
}

.csb-main-title {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 24px;
  text-align: center;
}

.csb-info-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-size: 14px;
  color: #1976d2;
}

.csb-info-box a {
  color: #1976d2;
  text-decoration: underline;
  font-weight: 600;
}

/* ===== DOOR/WINDOW SECTIONS ===== */
.csb-doors-wrapper {
  margin-bottom: 24px;
}

.csb-door-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.csb-door-section:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.csb-door-header {
  background: #f8f9fa;
  border: 0px 1px 0px 1px solid black;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.csb-door-header:hover {
  background: #f0f1f2;
}

.csb-door-header.collapsed .csb-toggle-icon {
  transform: rotate(-90deg);
}

.csb-door-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.csb-door-icon {
  font-size: 22px;
}

.csb-door-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.csb-door-total-price {
  background: #2c3e50;
  color: black !important;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 600;
}

.csb-remove-door {
  background: #dc3545;
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csb-remove-door:hover {
  background: #c82333;
  transform: scale(1.1);
}

.csb-toggle-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: #666;
}

.csb-door-content {
  padding: 20px;
}

/* ===== FORM ELEMENTS ===== */
.csb-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.csb-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.csb-label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.csb-tooltip {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #6c757d;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  cursor: help;
  font-weight: bold;
}

.csb-input {
  padding: 10px 14px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.csb-input:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* ===== RADIO GROUPS ===== */
.csb-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.csb-radio-label {
  cursor: pointer;
  margin: 0;
}

.csb-radio-label input[type="radio"] {
  display: none;
}

.csb-radio-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.csb-radio-label input:checked + .csb-radio-custom {
  border-color: #2c3e50;
  background: #f8f9fa;
  color: #2c3e50;
}

.csb-radio-custom:hover {
  border-color: #2c3e50;
}

.csb-color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.csb-bead-option .csb-radio-custom {
  min-width: 70px;
  justify-content: center;
}

/* ===== PANE SECTIONS ===== */
.csb-panes-wrapper {
  /*margin-top: 20px;*/
}
.merraki-page-containerr h4{
    color: black !important;
}
.csb-section-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: black !important;
  margin-bottom: 12px;
}
.csb-section-subtitle-box {
  font-size: 16px;
  font-weight: 600;
  color: black !important;
  margin:0px;
}
.csb-panes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.csb-pane {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.csb-pane-header {
  background: white;
  border-bottom: 1px solid #dee2e6;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.csb-pane-header:hover {
  background: #f8f9fa;
}

.csb-pane-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.csb-pane-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.csb-pane-price {
  font-size: 14px;
  font-weight: 600;
  color: #28a745;
}

.csb-remove-pane {
  background: #dc3545;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csb-remove-pane:hover {
  background: #c82333;
}

.csb-pane-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.csb-help-text {
  color: #6c757d;
  font-size: 13px;
  margin: 0;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #2196f3;
}

.csb-dimensions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.csb-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.csb-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
}

.csb-input-group input,
.csb-input-group select {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.csb-input-group input:focus,
.csb-input-group select:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.csb-input-group input:disabled,
.csb-input-group select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

.csb-field-note {
  color: #6c757d;
  font-size: 12px;
  font-style: italic;
  margin-top: 4px;
}

.csb-panels-info {
  color: #28a745;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  background: #d4edda;
  border-radius: 6px;
}

.csb-split-tilt-group {
  opacity: 0.5;
  pointer-events: none;
}

.csb-split-tilt-group.enabled {
  opacity: 1;
  pointer-events: auto;
}

.csb-handle-measurement-group {
  background: #fff3cd;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid #ffc107;
}

/* ===== PANEL SELECTION DROPDOWN (NEW) ===== */
.csb-panel-selection-group {
  background: #e3f2fd;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid #2196f3;
}

.csb-panel-selection-group label {
  font-size: 13px;
  font-weight: 600;
  color: #1976d2;
}

.csb-panel-selection-group select {
  background: white;
  border: 2px solid #2196f3;
}

.csb-panel-selection-group select:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.csb-panel-selection-group .csb-field-note {
  color: #1976d2;
  font-size: 12px;
  margin-top: 4px;
}

.csb-pane-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #dee2e6;
}

.csb-pane-total {
  font-size: 14px;
  color: #495057;
}

.csb-pane-price-display {
  font-size: 16px;
  font-weight: 700;
  color: #28a745;
}

.csb-savings {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #ff9800;
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.csb-pane-complete-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.csb-pane-complete-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.csb-pane-complete-check label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  margin: 0;
}

/* ===== BUTTONS ===== */
.csb-btn {
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.csb-btn-primary {
  background: #2c3e50;
  color: white;
}

.csb-btn-primary:hover {
  background: #1a252f;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.csb-btn-secondary {
  background: white;
  color: #2c3e50;
  border: 2px solid #2c3e50;
}

.csb-btn-secondary:hover {
  background: #2c3e50;
  color: white;
}

.csb-btn-success {
  background: #28a745;
  color: white;
  font-size: 16px;
  padding: 16px 40px;
}

.csb-btn-success:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

/* ===== TOTALS ===== */
.csb-total-wrapper {
  margin-top: 20px;
  padding: 16px;
  background: white;
  border: 2px solid #2c3e50;
  border-radius: 8px;
}

.csb-total-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.csb-total-label {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.csb-total-price {
  font-size: 22px;
  font-weight: 700;
  color: #28a745;
}

.csb-grand-total-wrapper {
  background: #2c3e50;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.csb-grand-total-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
}

.csb-grand-total-label {
  font-size: 20px;
  font-weight: 600;
}

.csb-grand-total-price {
  font-size: 28px;
  font-weight: 800;
}

.csb-add-window-section {
  text-align: center;
  margin: 24px 0;
}

.csb-complete-section {
  text-align: center;
  margin-top: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .csb-builder-wrapper {
    padding: 10px;
  }

  .csb-main-title {
    font-size: 22px;
  }

  .csb-dimensions-row {
    grid-template-columns: 1fr;
  }

  .csb-door-header {
    padding: 12px 16px;
  }

  .csb-door-title {
    font-size: 16px;
  }

  .csb-door-total-price {
    font-size: 14px;
    padding: 4px 10px;
  }

  .csb-grand-total-label {
    font-size: 16px;
  }

  .csb-grand-total-price {
    font-size: 16px;
  }

  .csb-radio-group {
    flex-direction: column;
  }

  .csb-radio-custom {
    width: 100%;
  }

  #csb-notifications {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* ===== HIDE DEFAULT WOOCOMMERCE BUTTON ===== */
.single_add_to_cart_button {
  display: none !important;
}