/* Hide sticky buttons */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --success-color: #059669;
}

.calculator-wrapper {
  background: var(--card-bg);
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin: auto;
}

.calculator-wrapper header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

p.subtitle {
  color: var(--text-muted);
  margin: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Form Section */
.calc-grid .form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-grid .input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-grid .input-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-grid select,
.calc-grid input[type="range"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.2s;
}

.calc-grid select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Range Slider Styling */
.calc-grid .range-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-grid .range-value {
  min-width: 80px;
  text-align: center;
  font-weight: bold;
  color: var(--primary-color);
  background: #eff6ff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* Checkbox Grid */
.calc-grid .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  align-content: start;
  grid-auto-rows: min-content;
}

.calc-grid .feature-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  height: fit-content;
}

.calc-grid .feature-card:hover {
  border-color: var(--primary-color);
  background-color: #eff6ff;
}

.calc-grid .feature-card input {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}

/* Summary Section (Sticky Sidebar on Desktop) */
.summary-section {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.total {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--border-color);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  align-items: center;
}

.total-amount {
  color: var(--primary-color);
}

.cta-button {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background-color: var(--primary-hover);
}

.note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Quote Form Layout */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.form-row .input-group {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

.dwk-wrapper {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.dwk-wrapper h1 {
  text-align: center;
}

.dwk-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.dwk-controls {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}
.dwk-controls input {
  padding: initial;
}
.dwk-shadow-group {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 6px;
  position: relative;
  margin-bottom: 15px;
}

.dwk-shadow-group:last-child {
  margin-bottom: 0;
}

.dwk-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dwk-wrapper label {
  display: block;
  margin-top: 8px;
}

.dwk-wrapper input[type="range"] {
  width: 100%;
}

.dwk-switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.dwk-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.dwk-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dwk-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.dwk-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.dwk-wrapper input:checked + .dwk-slider {
  background-color: #007bff;
}

.dwk-wrapper input:checked + .dwk-slider:before {
  transform: translateX(20px);
}

.dwk-preview-wrapper {
  flex: 1;
  min-width: 250px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  align-items: flex-start;
  display: flex;
  align-self: flex-start;
  flex-direction: column;
  gap: 20px;
}
.dwk-preview-wrapper label {
  margin: 0;
  line-height: 1;
}
.dwk-preview-box {
  width: 100%;
  height: 200px;
  background: white;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  box-shadow: none;
}

.dwk-output,
#css-code {
  background: #222;
  color: #0f0;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  resize: none;
  width: 100%;
}

.dwk-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dwk-btn:hover {
  background: #0056b3;
}

/* Text shadow generator */
.app-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  gap: 30px;
}

.input-panel,
.output-panel {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.input-panel {
  flex: 1;
}

.output-panel {
  flex: 1;
}

h2 {
  margin-top: 0;
}

label {
  display: block;
  margin-top: 10px;
}

#text-input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
}

.slider-group {
  margin-top: 15px;
}

.slider-box {
  position: relative;
}

.slider-indicator {
  display: inline-block;
  min-width: 16px;
  text-align: right;
  font-weight: bold;
  color: #007acc;
}

input[type="range"] {
  width: 100%;
}

.live-preview {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  min-height: 80px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  transition: text-shadow 0.3s ease;
}
.preview-text {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  min-height: 80px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  transition: text-shadow 0.3s ease;
  width: 100%;
}

button {
  margin-top: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.shadow-block {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  position: relative;
}

.wdt-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: #1e1e24;
  color: #ffffff;
  padding: 24px;
  border-radius: 12px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wdt-sidebar {
  background: #141419;
  padding: 20px;
  border-radius: 8px;
}

.wdt-sidebar h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: #fff;
}

.wdt-control-group {
  margin-bottom: 20px;
}

.wdt-control-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #a0a0b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wdt-control-group select,
.wdt-control-group input[type="range"] {
  width: 100%;
  padding: 8px;
  background: #25252f;
  border: 1px solid #3a3a4a;
  color: #fff;
  border-radius: 4px;
}

.wdt-color-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  background: #25252f;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #3a3a4a;
}

.wdt-color-stop input[type="color"] {
  border: none;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.wdt-color-pos {
  flex-grow: 1;
}

.wdt-color-pos-val {
  min-width: 42px;
  font-size: 13px;
  color: #a0a0b0;
  text-align: right;
  font-family: monospace;
}

.wdt-delete-stop-btn {
  background: rgba(255, 79, 79, 0.1);
  color: #ff4f4f;
  border: 1px solid rgba(255, 79, 79, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 0;
}

.wdt-delete-stop-btn:hover {
  background: #ff4f4f;
  color: #fff;
  border-color: #ff4f4f;
}

.wdt-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.wdt-btn:hover {
  background: #0091cd;
}

.wdt-btn:active {
  transform: scale(0.98);
}

.wdt-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#wdt-preview {
  flex-grow: 1;
  min-height: 300px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background-image 0.1s ease;
}

.wdt-code-box {
  position: relative;
}

#wdt-css-output {
  width: 100%;
  height: 80px;
  background: #141419;
  border: 1px solid #3a3a4a;
  color: #00ff66;
  font-family: monospace;
  padding: 12px;
  border-radius: 6px;
  resize: none;
  box-sizing: border-box;
}

#wdt-copy-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

#wdt-copy-btn:hover {
  background: #0091cd;
}

.wdm-wrapper {
  background: #0f0f13;
  color: #e2e2e9;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", sans-serif;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
  max-width: 100%;
}

.wdm-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  min-height: 550px;
  background: #0f0f13;
}

/* Panels */
.wdm-panel {
  background: #14141c;
  border-right: 1px solid #23232f;
  display: flex;
  flex-direction: column;
}

.wdm-panel--controls {
  border-right: none;
  border-left: 1px solid #23232f;
  overflow-y: auto;
  max-height: 650px;
}

.wdm-panel__header {
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  border-bottom: 1px solid #23232f;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #191924;
}

/* Workspace */
.wdm-workspace {
  background: #09090c;
  display: flex;
  flex-direction: column;
  padding: 20px;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.wdm-toolbar {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #14141c;
  border-radius: 8px;
  border: 1px solid #23232f;
}

.wdm-tool-group {
  display: flex;
  gap: 8px;
}

/* Buttons */
.wdm-tool-btn,
.wdm-action-btn,
.wdm-copy-btn,
.wdm-tab-btn {
  background: #1f1f2e;
  border: 1px solid #36364d;
  color: #c5c5d3;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wdm-tool-btn:hover,
.wdm-action-btn:hover,
.wdm-copy-btn:hover,
.wdm-tab-btn:hover {
  background: #2b2b3e;
  color: #fff;
  border-color: #494968;
}

.wdm-tool-btn--active,
.wdm-tab-btn--active {
  background: #0073aa !important;
  color: #fff !important;
  border-color: #008cc9 !important;
  box-shadow: 0 0 10px rgba(0, 115, 170, 0.4);
}

.wdm-action-btn--danger {
  color: #ff5252;
  border-color: rgba(255, 82, 82, 0.3);
}

.wdm-action-btn--danger:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: #ff5252;
}

/* Canvas Container */
.wdm-canvas-container {
  position: relative;
  background: #09090c;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #23232f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  width: 600px;
  height: 400px;
}

.wdm-blobs-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.wdm-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0.9;
  filter: blur(15px); /* Ensure soft, feather-like vector blending */
  will-change: left, top;
}

.wdm-noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#wdm-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.wdm-anchors-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 4;
}

/* Anchor points styling */
.wdm-anchor-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  cursor: move;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.8),
    inset 0 0 4px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
  z-index: 10;
}

.wdm-anchor-handle:hover,
.wdm-anchor-handle--active {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(0, 115, 170, 0.6);
  z-index: 11;
}

/* Presets */
.wdm-presets-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 580px;
}

.wdm-presets-list::-webkit-scrollbar,
.wdm-panel--controls::-webkit-scrollbar {
  width: 6px;
}

.wdm-presets-list::-webkit-scrollbar-track,
.wdm-panel--controls::-webkit-scrollbar-track {
  background: #111;
}

.wdm-presets-list::-webkit-scrollbar-thumb,
.wdm-panel--controls::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.wdm-preset-card {
  background: #1a1a26;
  border: 1px solid #2a2a3c;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wdm-preset-card:hover {
  border-color: #0073aa;
  transform: translateY(-2px);
  background: #20202e;
}

.wdm-preset-card--active {
  border-color: #0073aa;
  box-shadow: 0 0 8px rgba(0, 115, 170, 0.4);
  background: #20202e;
}

.wdm-preset-thumb {
  width: 100%;
  height: 90px;
  border-radius: 6px;
  background: #111;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.wdm-preset-name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #b5b5c3;
}

.wdm-preset-card:hover .wdm-preset-name {
  color: #fff;
}

/* Accordion sections */
.wdm-section {
  border-bottom: 1px solid #23232f;
}

.wdm-section__header {
  padding: 12px 16px;
  background: #191924;
  font-size: 13px;
  font-weight: 600;
  color: #b5b5c3;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.wdm-section__header:hover {
  color: #fff;
  background: #1c1c2b;
}

.wdm-section__body {
  padding: 16px;
  background: #14141c;
}

/* Form inputs */
.wdm-field-group {
  margin-bottom: 14px;
}

.wdm-field-group:last-child {
  margin-bottom: 0;
}

.wdm-field-group label {
  display: block;
  font-size: 12px;
  color: #8b8b9c;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wdm-field-row {
  display: flex;
  gap: 12px;
}

.wdm-field {
  flex: 1;
}

.wdm-field-row input[type="number"] {
  width: 100%;
  background: #1c1c2b;
  border: 1px solid #36364d;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.wdm-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #c5c5d3 !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.wdm-checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* Color Picker */
.wdm-color-picker-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wdm-color-picker-wrapper input[type="color"] {
  border: none;
  width: 42px;
  height: 36px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}

.wdm-color-picker-wrapper input[type="text"] {
  flex: 1;
  background: #1c1c2b;
  border: 1px solid #36364d;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.wdm-node-info {
  margin-top: 10px;
  font-size: 12px;
  color: #8b8b9c;
}

.wdm-badge {
  background: #1c1c2b;
  padding: 2px 6px;
  border-radius: 4px;
  color: #00ff66;
  font-family: monospace;
  font-weight: 600;
}

/* Range input styling */
.wdm-field-group input[type="range"] {
  width: 100%;
  background: #232333;
  height: 6px;
  border-radius: 3px;
  outline: none;
}

/* Tab details */
.wdm-export-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.wdm-tab-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.wdm-tab-content {
  display: none;
}

.wdm-tab-content--active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wdm-tab-content textarea {
  width: 100%;
  height: 100px;
  background: #09090c;
  border: 1px solid #23232f;
  border-radius: 6px;
  color: #00ff66;
  font-family: monospace;
  font-size: 11px;
  padding: 8px;
  resize: none;
  box-sizing: border-box;
}

.wdm-copy-btn {
  width: 100%;
  justify-content: center;
}

:where(html.wpc-bgl255) .wdm-noise-overlay{background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url("/wp-content/plugins/webdesign-online-tools/css/%23noiseFilter")' opacity='0.035'/%3E%3C/svg%3E")}