.opt-icon img {
  width: 27px;   
  height: 25px;
  display: inline-block;
}
.pv-widget * {
  margin: 0; padding: 0; box-sizing: border-box;
}
.pv-widget {
  font-family: 'Roboto', sans-serif;
  background: #F7F5F0;
  color: #0D2B2B;
  width: 100%;
  overflow-x: visible;
  overflow-y: visible;
}
.pv-body {
  display: grid;
  grid-template-columns:1.4fr 1.2fr; 
  gap: 0;
  min-height: 600px;
  width: 100%;
}

.pv-config {
  background: #ffffff;
  padding: 40px 20px 48px; /* Reduced side padding even more */
  border-right: 1px solid #E0DDD6;
  overflow: visible;
}
/* ===== LEFT SECTION HEADING ===== */
.pv-section-heading {
  margin-bottom: 28px;
}

.pv-section-heading h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #012F2F;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
  padding: 0;
  line-height: 1.2;
  text-transform: none;
}

.heading-underline {
  width: 50px;
  height: 4px;
  background: #FFE01B;
  border-radius: 2px;
}
.pv-section-label {
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced gap */
  margin: 22px 0 16px; /* Reduced margins */
}
.pv-section-label:first-child { margin-top: 0; }
.pv-section-dot {
  width: 8px; height: 8px; /* Smaller dot */
  background: #FFE01B;
  border-radius: 50%;
  border: 2px solid #012F2F;
  flex-shrink: 0;
}
.pv-section-label span {
  font-size: 15px; /* Slightly smaller */
  font-weight: 800;
  letter-spacing: 2px; /* Reduced letter spacing */
  text-transform: uppercase;
  color: #012F2F;
  white-space: nowrap; /* Prevent wrapping */
}
.pv-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #012F2F30, transparent);
}
.pv-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px; 
  margin-bottom: 10px!important;
  margin-top:10px;
}
.pv-opt {
  flex: 1 1 auto;
  min-width: 100px; /* Reduced from 120px */
  border: 2px solid #E0DDD6;
  border-radius: 14px; /* Slightly smaller radius */
  padding: 10px 12px; /* Reduced padding */
  cursor: pointer;
  transition: all 0.18s ease;
  background: #fff;
  position: relative;
}
.pv-opt:hover { border-color: #012F2F; background: #fff; }
.pv-opt.active {
  border-color: #012F2F;
  background: #012F2F;
  color: #FFE01B;
}
.pv-opt .opt-icon {
  font-size: 1.3rem; /* Smaller icon */
  display: block;
  margin-bottom: 2px;
}
.pv-opt .opt-name {
  font-size: 14px; /* Smaller font */
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.pv-opt .opt-detail {
  font-size: 12px; /* Smaller font */
  margin-top: 2px;
  opacity: 0.65;
  display: block;
  white-space: nowrap; /* Prevent wrapping */
}
.pv-opt.active .opt-detail { opacity: 0.8; }
.pv-opt .opt-check {
  position: absolute;
  top: 6px; right: 6px; /* Adjusted position */
  width: 16px; height: 16px; /* Smaller check */
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem;
  opacity: 0.3;
  transition: opacity 0.15s;
}
.pv-opt.active .opt-check { opacity: 1; background: #FFE01B; color: #012F2F; border-color: #FFE01B; }

.pv-slider-wrap {
  margin-bottom: 16px; /* Reduced margin */
}
.pv-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.pv-slider-label {
  font-size: 15px; /* Slightly smaller */
  font-weight: 600;
  color: #0D2B2B;
}
.pv-slider-val {
  font-family: 'Roboto', serif;
  font-size: 1.5rem; /* Smaller */
  color: #012F2F;
  font-weight: 400;
}
.pv-slider-val span {
  font-family: 'Roboto', sans-serif;
  font-size: 14px; /* Smaller */
  font-weight: 500;
  color: #7A9999;
}
input[type="range"].pv-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px; /* Slightly thinner */
  background: #E0DDD6;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
}
input[type="range"].pv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; /* Smaller thumb */
  border-radius: 50%;
  background: #012F2F;
  border: 3px solid #FFE01B;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(1,47,47,0.3);
  transition: transform 0.15s;
}
input[type="range"].pv-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.pv-slider-stats {
  display: flex;
  gap: 12px; /* Reduced gap */
  margin-top: 16px;
}
.pv-stat-pill {
  background: #F2F5F5;
  border: 1px solid #012F2F20;
  border-radius: 20px;
  padding: 4px 12px; /* Reduced padding */
  font-size: 13px; /* Smaller font */
  font-weight: 600;
  color: #012F2F;
  white-space: nowrap;
}
.pv-stat-pill b { color: #012F2F; }
.pv-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; /* Reduced gap */
  margin-bottom: 10px;
}

.pv-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid #E0DDD6;
  border-radius: 14px; /* Slightly smaller */
  padding: 10px 12px; /* Reduced padding */
  cursor: pointer;
  transition: border-color 0.18s;
  gap: 8px;
}
.pv-switch-wrap:hover { border-color: #012F2F; }
.pv-switch-wrap.active { border-color: #012F2F; }
.pv-switch-info { flex: 1; }
.pv-switch-info .sw-name {
  font-size: 14px; /* Smaller */
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.pv-switch-info .sw-price {
  font-size: 12px; /* Smaller */
  color: #7A9999;
  margin-top: 2px;
  display: block;
}
.pv-switch-toggle {
  width: 34px; height: 20px; /* Smaller toggle */
  background: #D8D5CC;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.pv-switch-wrap.active .pv-switch-toggle { background: #012F2F; }
.pv-switch-toggle::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px; /* Smaller knob */
  border-radius: 50%;
  background: white;
  top: 3px; left: 3px;
  transition: left 0.2s;
}
.pv-switch-wrap.active .pv-switch-toggle::after { left: 17px; }

/* ===== DROPDOWN STYLED - WITH GREEN HOVER AND BORDER RADIUS ===== */
.pv-select-group { 
  margin-bottom: 16px; /* Reduced margin */
  position: relative;
  z-index: auto;
  overflow: visible !important;
}

.pv-select-label {
  font-size: 13px; /* Smaller */
  font-weight: 700;
  letter-spacing: 1.2px; /* Reduced */
  text-transform: uppercase;
  color: #7A9999;
  margin-bottom: 6px; /* Reduced */
  display: block;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.pv-select {
  width: 100%;
  padding: 12px 16px; /* Reduced padding */
  border: 2px solid #E0DDD6;
  border-radius: 12px; /* Slightly smaller */
  background: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px; /* Smaller */
  font-weight: 500;
  color: #012F2F;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 0;
  
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23012F2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.pv-select:focus {
  border-color: #012F2F;
  box-shadow: 0 0 0 3px rgba(255, 224, 27, 0.25);
}

/* Style for the dropdown options container */
.pv-select[size], 
.pv-select:focus option,
.pv-select option {
  border-radius: 6px !important;
}

/* Individual option styling with green hover */
.pv-select option {
  background: white;
  color: #012F2F;
  padding: 10px 12px !important; /* Reduced padding */
  font-size: 14px; /* Smaller */
  font-weight: 500;
  min-height: 40px; /* Reduced */
  border-bottom: 1px solid #E0DDD6;
  border-radius: 4px !important;
  margin: 2px 0;
}

.pv-select option:last-child {
  border-bottom: none;
}

/* For Firefox - green hover */
@-moz-document url-prefix() {
  .pv-select {
    padding: 11px 16px;
    text-indent: 0;
    border-radius: 12px;
  }
  
  .pv-select option {
    background-color: white;
    color: #012F2F;
    padding: 8px;
    border-radius: 4px;
    margin: 2px 3px;
  }
  
  .pv-select option:checked,
  .pv-select option:hover {
    background-color: #012F2F !important;
    color: #FFE01B !important;
    border-radius: 4px;
  }
}

/* Chrome/Safari specific improvements with green hover */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .pv-select {
    padding: 12px 16px;
  }
  
  .pv-select:focus {
    outline: none;
  }
  
  /* Style the dropdown list that appears */
  .pv-select:focus option:hover,
  .pv-select option:hover {
    background: #012F2F !important;
    color: #FFE01B !important;
    border-radius: 4px;
  }
}

/* Custom styling for the dropdown popup */
select::-webkit-scrollbar {
  width: 6px; /* Thinner scrollbar */
}

select::-webkit-scrollbar-track {
  background: #F2F5F5;
  border-radius: 4px;
}

select::-webkit-scrollbar-thumb {
  background: #012F2F;
  border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
  background: #FFE01B;
}

/* Ensure the dropdown list (popup) has rounded corners */
select:focus {
  border-radius: 12px;
}

/* Additional styling for the options container */
.pv-select option {
  border-radius: 4px !important;
}
/* ===== NUMBER INPUT ===== */
.pv-num-input {
  width: 100%;
  padding: 12px 16px; /* Reduced padding */
  border: 2px solid #E0DDD6;
  border-radius: 12px; /* Slightly smaller */
  background: #FAFAF8;
  font-family: 'Roboto', sans-serif;
  font-size: 14px; /* Smaller */
  font-weight: 500;
  color: #012F2F;
  outline: none;
  transition: border-color 0.18s;
}
.pv-num-input:focus { border-color: #012F2F; }

/* ===== COLLAPSIBLE ===== */
.pv-collapse {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.pv-collapse.open {
  max-height: 600px;
  opacity: 1;
  overflow: visible;
}

/* ===== RIGHT PANEL (RESULTS) ===== */
.pv-results {
  background: #012F2F;
  padding: 40px 48px 48px; 
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  overflow: visible;
  height: fit-content;
}
.pv-results-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px; 
  text-transform: uppercase;
  color: #8ABCBC;
  margin-bottom: 6px;
}
.pv-total-block {
  margin-bottom: 24px; 
}
.pv-total-num {
  font-family: 'Roboto', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem); 
  color: #FFE01B;
  line-height: 1;
    display: inline-block; 
  white-space: nowrap; 

}
.pv-total-sub {
  font-size: 15px; /* Smaller */
  color: #8ABCBC;
  margin-top: 4px;
}

/* ===== LINE ITEMS ===== */
.pv-line-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px; 
}
.pv-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0; /* Reduced padding */
  border-bottom: 1px solid #ffffff10;
  gap: 10px; /* Reduced */
}
.pv-line:last-child { border-bottom: none; }
.pv-line-name {
  font-size: 16px; 
  color: #B0CCCC;
  flex: 1;
  line-height: 1.3;
}
.pv-line-name .sub { font-size: 14px; color: #7A9999; display: block; margin-top: 1px; } /* Smaller */
.pv-line-val {
  font-size: 16px; 
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}
.pv-line.highlight .pv-line-name { color: #FFE01B; }
.pv-line.highlight .pv-line-val { color: #FFE01B; }
.pv-line.dim { opacity: 0.45; }
.pv-line.dim .pv-line-val { font-weight: 400; font-style: italic; }

/* ===== DIVIDER IN RESULTS ===== */
.pv-res-divider {
  height: 1px;
  background: linear-gradient(90deg, #FFE01B50, transparent);
  margin: 6px 0; /* Reduced */
}

/* ===== PRINT BUTTON - NOW BELOW CONTENT ===== */
.pv-print-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* Reduced */
  background: #FFE01B;
  color: #012F2F;
  font-family: 'Roboto', sans-serif;
  font-size: 14px; /* Smaller */
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 12px 20px; /* Reduced padding */
  border-radius: 40px; /* Slightly smaller */
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: auto;
}
.pv-print-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.pv-print-btn svg { 
  flex-shrink: 0;
  width: 14px; /* Smaller icon */
  height: 14px;
}

/* ===== KWP BADGE ===== */
.pv-kwp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFE01B20;
  border: 1px solid #FFE01B40;
  border-radius: 30px;
  padding: 4px 12px 4px 6px; 
  margin-bottom: 16px; 
  width: fit-content; 
  max-width: 100%; 
  white-space: nowrap;
}
.pv-kwp-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFE01B;
  animation: pulse 2s infinite;
}
.pv-kwp-badge span {
  font-size: 17px; 
  font-weight: 600;
  color: #FFE01B;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== FIX FOR THE TWO INPUT BOXES ALIGNMENT ===== */
.pv-config .pv-toggle-row:last-of-type { 
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important; /* Reduced gap */
  margin-top: 12px !important; /* Reduced */
  width: 100% !important;
}

.pv-config .pv-toggle-row:last-of-type .pv-select-group {
  flex: 1 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.pv-config .pv-toggle-row:last-of-type .pv-select-label {
  margin-bottom: 6px !important;
  white-space: nowrap !important;
  font-size: 13px !important; /* Smaller */
  letter-spacing: 1.2px !important; /* Reduced */
  color: #7A9999 !important;
}

.pv-config .pv-toggle-row:last-of-type .pv-num-input {
  width: 100% !important;
  height: 48px !important; /* Slightly shorter */
  border-radius: 12px !important; /* Slightly smaller */
  border: 2px solid #E0DDD6 !important;
  background: #fff !important;
  padding: 12px 16px !important; /* Reduced padding */
  font-size: 14px !important; /* Smaller */
}

.pv-config .pv-toggle-row:last-of-type .pv-num-input:focus {
  border-color: #012F2F !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 224, 27, 0.25) !important;
}

/* Ensure the parent container doesn't override our styles */
.pv-config .pv-toggle-row:last-of-type {
  grid-template-columns: none !important;
  display: flex !important;
}
#scaffold-opts .pv-opt {
  min-width: 0;
  flex: 1 1 0;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .pv-body {
    grid-template-columns: 1.05fr 0.95fr;
  }
  
  .pv-config {
    padding: 36px 18px 42px;
  }
  
  .pv-results {
    padding: 36px 20px 42px;
  }
  
  .pv-opt {
    min-width: 90px;
    padding: 10px 10px;
  }
  
  .pv-slider-val {
    font-size: 1.4rem;
  }
}

@media (max-width: 992px) {
  .pv-body {
    grid-template-columns: 1fr;
  }
  
  .pv-config {
    padding: 32px 20px 40px;
    border-right: none;
    border-bottom: 1px solid #E0DDD6;
  }
  
  .pv-results {
    padding: 32px 20px 40px;
    position: static;
  }
  
  .pv-opt {
    min-width: 110px;
  }
}

@media (max-width: 820px) {
  .pv-body { grid-template-columns: 1fr; }
  .pv-results { position: static; }
  .pv-config { padding: 28px 18px 36px; }
  .pv-results { padding: 28px 18px 36px; }
  .pv-toggle-row { grid-template-columns: 1fr; }
  .pv-options { flex-direction: column; }
  .pv-opt { min-width: auto; }
}

@media (max-width: 768px) {
  .pv-config {
    padding: 28px 16px 36px;
  }
  
  .pv-results {
    padding: 28px 16px 36px;
  }
  
  .pv-section-label span {
    font-size: 14px;
    letter-spacing: 1.5px;
  }
  
  .pv-opt {
    min-width: 100%;
    padding: 10px 14px;
  }
  
  .pv-config .pv-toggle-row:last-of-type {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .pv-config {
    padding: 24px 14px 32px;
  }
  
  .pv-results {
    padding: 24px 14px 32px;
  }
  
  .pv-section-label span {
    font-size: 13px;
    letter-spacing: 1.2px;
  }
  
  .pv-slider-val {
    font-size: 1.3rem;
  }
  
  .pv-slider-stats {
    flex-direction: column;
    gap: 6px;
  }
  
  .pv-stat-pill {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .pv-config {
    padding: 20px 12px 28px;
  }
  
  .pv-results {
    padding: 20px 12px 28px;
  }
  
  .pv-slider-val {
    font-size: 1.2rem;
  }
  
  .pv-total-num {
    font-size: 2rem;
  }
}

/* Responsive fix for mobile - keep this at the end */
@media (max-width: 600px) {
  .pv-config .pv-toggle-row:last-of-type {
    flex-direction: column !important;
  }
}