:root {
  --primary-shade: #0E2157;
  --primary-base: #11329A;
  --primary-tint-2: #DCE9FD;
  --gray-shade: #252B37;
  --gray-base: #454E5E;
  --gray-tint-2: #E9EAEB;
  --success-shade: #47A818;
  --black: #000000;
  --white: #FFFFFF;
  --primary-font: "Poppins", sans-serif;
  --rainbow-gradient: linear-gradient(to right, #0e3d8b, #2ea64f, #ffd000, #ff5e14, #e61a27, #7a3194, #0e3d8b);
  --header-height: 76px;
  --base-margin: 1.5rem;
  --section-gap: 4.25rem;
  --radius-button: 999px;
  --radius-card: 8px;
  --radius-input: 8px;
  --border-subtle: color-mix(in srgb, var(--primary-base) 12%, var(--gray-tint-2));
  --text-muted: color-mix(in srgb, var(--gray-base) 70%, var(--white));
  --surface-muted: #F9F8F4;
  --bg: #F9F8F4;
  --panel: #ffffff;
  --border: #D6DCE8;
  --text: #252B37;
  --muted: #6B7686;
  --primary: #11329A;
  --primary-hover: #0E2157;
  --primary-soft: #DCE9FD;
  --danger: #c62828;
  --danger-soft: #fdecec;
  --success: #47A818;
  --success-soft: #e8f5e0;
  --warn-soft: #fff8d6;
  --brand-yellow: #FFD12A;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body,
input,
button,
select,
textarea,
optgroup {
  font-family: var(--primary-font);
}

body {
  font-family: var(--primary-font);
  background: var(--surface-muted);
  color: var(--gray-shade);
}

.container {
  width: min(1150px, 100%);
  margin: auto;
  padding: 0 var(--base-margin);
}

/* HEADER */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 8px;
  z-index: 1000;
  padding: 10px 0;
  width: 100%;
}

.topbar-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.header-logo-img {
  height: auto;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  transition: max-width 0.2s ease;
}

.header-vsep {
  width: 1px;
  height: 22px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: var(--primary-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-shade);
  white-space: nowrap;
}

/* HERO */
.hero {
  padding: calc(var(--section-gap) + var(--base-margin)) 0 var(--base-margin);
  text-align: center;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  animation: rainbowText 20s linear infinite;
  font-weight: 700;
}

@keyframes rainbowText {
  0% {
    color: #0e3d8b;
  }

  14% {
    color: #ff5e14;
  }

  28% {
    color: #ffd000;
  }

  42% {
    color: #2ea64f;
  }

  57% {
    color: #0e3d8b;
  }

  71% {
    color: #7a3194;
  }

  85% {
    color: #e61a27;
  }

  100% {
    color: #0e3d8b;
  }
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--gray-base);
}


/* CALCULATOR SECTION */
.calculator-section {
  padding-bottom: var(--section-gap);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--base-margin);
  min-width: 0;
  align-items: start;
}

.pro-painter-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: var(--base-margin);
  padding: var(--base-margin) calc(var(--base-margin) + 0.5rem);
  background: var(--gray-tint-2);
  border-radius: var(--radius-card);
}

.pro-painter-banner__icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-shade);
}

.pro-painter-banner__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-shade);
}

.pro-painter-banner__text strong {
  color: var(--primary-shade);
  font-weight: 700;
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 35px;
  box-shadow: 0 1px 2px rgba(14, 33, 87, 0.06), 0 1px 6px rgba(14, 33, 87, 0.08);
  min-width: 0;
  border: 1px solid #D6DCE8;
}

.results-card {
  position: sticky;
  top: calc(var(--header-height) + var(--base-margin));
  align-self: start;
  height: fit-content;
}

.card-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.card-sub {
  color: var(--gray-base);
  margin-bottom: var(--base-margin);
  line-height: 1.7;
}

/* TOGGLES */
.toggle-group {
  margin-bottom: 25px;
}

.toggle-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-base);
}

.field label.toggle-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.unit-toggle {
  display: flex;
  border: 1px solid var(--gray-tint-2);
  border-radius: var(--radius-input);
  overflow: hidden;
  width: fit-content;
  width: 100%;
}

.unit-btn {
  border: none;
  background: var(--white);
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
  width: 50%;
}

.unit-btn.active {
  background: var(--primary-shade);
  color: var(--white);
}

/* INPUT FIELDS */
.field {
  margin-bottom: 22px;
}

.field-row {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.walls-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wall-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wall-entry-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-base);
}

.wall-remove-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.wall-remove-btn:hover {
  color: #e61a27;
  /* rainbow gradient stop */
}

.add-wall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  border: 2px dashed rgba(17, 50, 154, 0.35);
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--primary-base);
  font-family: var(--primary-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.add-wall-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-base);
}

.add-wall-btn .icon-Add_round_bold {
  font-size: 16px;
}

.field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 14px;
}

.input-wrap {
  position: relative;
}

.input-wrap input[type="number"] {
  padding-right: 54px;
}

.input-wrap input[type="number"]#totalArea {
  padding-right: 62px;
}

.input-wrap .unit-label {
  right: 32px;
  pointer-events: none;
}

#areaInputs .input-wrap .unit-label {
  right: 15px;
  pointer-events: none;
}

input,
select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--gray-tint-2);
  border-radius: var(--radius-input);
  padding: 0 18px;
  font-size: 15px;
  font-family: var(--primary-font);
  outline: none;
  background: var(--white);
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: var(--primary-base);
}

input.is-invalid {
  border-color: #e61a27;
}

input.is-invalid:focus {
  border-color: #e61a27;
}

select.is-invalid,
.select2-container.is-invalid .select2-selection--single {
  border-color: #e61a27 !important;
}

.select2-container.is-invalid .select2-selection--single:focus {
  border-color: #e61a27 !important;
}

.field-error {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #e61a27;
}

#dimsError.field-error {
  margin-top: 0;
  margin-bottom: 12px;
}

.unit-label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.hidden {
  display: none;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  background: var(--primary-soft);
  color: var(--text);
  transition: background 0.12s, opacity 0.12s;
}

.btn:hover {
  background: #e3e7ed;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Pill button label helpers ---- */
.button-label {
  flex: 0 1 auto;
  min-width: 0;
}

.button-label.grow {
  flex: 1 1 auto;
  text-align: center;
}

/* --- Brand pill-style primary button --- */
.btn-primary {
  display: inline-flex;
  font-family: var(--primary-font);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  background-color: var(--primary-shade);
  color: var(--white);
  padding: 4px 4px 4px 16px;
  border-radius: 50px;
  gap: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  text-decoration: none;
}



.btn-primary[aria-disabled="true"],
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Circle icon slot inside btn-primary */
.btn-primary-circle {
  width: 32px;
  height: 32px;
  background: var(--white);
  color: var(--primary-shade);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.btn-primary-circle svg {
  display: block;
}

/* Continue modal button arrow fill */
#unitChangeConfirmBtn .btn-primary-circle svg path {
  fill: var(--primary-shade);
}

/* Arrow / icon fly animation on hover */
.btn-primary--fly:hover .btn-primary-circle svg,
#unitChangeConfirmBtn:hover .btn-primary-circle svg {
  animation: arrow-fly 0.4s ease forwards;
}

@keyframes arrow-fly {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  49% {
    transform: translateX(20px);
    opacity: 0;
  }

  50% {
    transform: translateX(-20px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Rotate animation on hover for other buttons */
.btn-primary:not(.btn-primary--fly):not(#unitChangeConfirmBtn):hover .btn-primary-circle svg,
.btn-primary--rotate:hover .btn-primary-circle svg {
  animation: icon-spin 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes icon-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Inverse variant */
.btn-primary-inverse {
  background-color: var(--white);
  color: var(--gray-shade);
  border: 1px solid rgba(17, 50, 154, 0.2);
}

.btn-primary-inverse:hover {
  /* background-color: var(--white); */
  color: var(--primary-base);
  /* border-color: var(--primary-base); */
}

.btn-primary-inverse .btn-primary-circle {
  background: var(--primary-base);
  color: var(--white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--primary-font);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  background-color: var(--white);
  color: var(--primary-base);
  border-color: var(--primary-base);
}


.btn-link {
  background: transparent;
  color: var(--muted);
}

.btn-link:hover {
  background: transparent;
  color: var(--text);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.btn-danger {
  background: transparent;
  color: var(--muted);
}

.btn-danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Calculator specific action row */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: var(--base-margin);
  align-items: center;
}

.calculate-btn {
  flex: 1;
}

.reset-btn {
  flex-shrink: 0;
}

/* RESULT SUMMARY CARD */
.results-summary-card {
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  overflow: hidden;
  padding: 16px;
  color: var(--gray-shade);
}

.results-summary-card__label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-base);
  margin-bottom: 8px;
}

.results-summary-card__label-row .icon-Full_Screen_Corner_bold {
  font-size: 14px;
  line-height: 1;
  color: var(--gray-base);
}

.results-summary-card__value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--gray-shade);
}

.results-summary-card__divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.results-summary-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.results-summary-card__detail-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-base);
  margin-bottom: 4px;
}

.results-summary-card__detail-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-shade);
}

.results-summary-card__value.is-skeleton,
.results-summary-card__detail-value.is-skeleton {
  position: relative;
  display: inline-block;
  color: transparent !important;
  border-radius: var(--radius-input);
  overflow: hidden;
  vertical-align: middle;
}

.results-summary-card__value.is-skeleton {
  min-width: 120px;
  min-height: 32px;
}

.results-summary-card__detail-value.is-skeleton {
  min-width: 72px;
  min-height: 18px;
}

.results-summary-card__value.is-skeleton::before,
.results-summary-card__detail-value.is-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-input);
  background: linear-gradient(90deg, var(--gray-tint-2) 0, var(--surface-muted) 40px, var(--gray-tint-2) 80px);
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.results-product-card {
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  overflow: hidden;
}

.results-product-card__skeleton {
  display: none;
}

.results-product-card__content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.results-product-card__image-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-input);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.results-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.results-product-card__image-placeholder {
  font-size: 36px;
  color: var(--text-muted);
}

.results-product-card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.results-product-card__category {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-base);
}

.results-product-card__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-shade);
  margin: 0;
  width: 100%;
}

.results-product-card__category--placeholder {
  color: var(--text-muted);
}

.results-product-card__name--placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.results-product-card__buy-link {
  margin: 0 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.results-product-card__buy-link.is-disabled,
.results-product-card__buy-link.is-disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* FOOTER */
.app-footer {
  background: var(--primary-shade);
  color: #ffffff;
  font-size: 14px;
  padding: 16px 0;
  width: 100%;
  box-sizing: border-box;
}

.app-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.app-footer-copy {
  color: #ffffff;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.app-footer-credit {
  color: #ffffff;
  margin: 0;
  font-size: 14px;
}

.app-footer a {
  color: #ffffff;
  text-decoration: none;
}

.app-footer-credit span {
  transition: opacity 0.3s ease;
}

.app-footer-credit:has(a:hover) span {
  opacity: 0.4;
}

/* Mobile optimizations (<= 640px) */
@media (max-width: 640px) {
  .topbar {
    padding: 8px 0;
  }

  .topbar-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-left {
    gap: 8px;
  }

  .header-logo-img {
    max-width: 75px;
  }

  .header-vsep {
    height: 18px;
  }

  .brand {
    gap: 6px;
  }

  .brand-name {
    font-size: 13px;
  }

  .app-footer {
    padding: 12px 0;
  }

  .app-footer-inner {
    padding: 0 12px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* RESPONSIVENESS */
@media(max-width:900px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .results-card {
    position: static;
  }

  .hero h1 {
    font-size: 38px;
  }
}

.rainbow-top-bar {
  height: 8px;
  width: 100%;
  background: var(--rainbow-gradient);
  background-size: 200% 100%;
  animation: rainbow-flow 8s linear infinite;
  position: fixed;
  z-index: 1050;
}

@keyframes rainbow-flow {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: -200% 0%;
  }
}

.wraning {
  padding: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}

.wraning p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-base);
  line-height: 1.5;
}

.wraning strong {
  color: var(--gray-shade);
  font-weight: 600;
}

.result-item strong {
  font-size: 14px;
}

/* Select2 */
.select2-container {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  font-family: var(--primary-font);
}

.select2-container--default .select2-selection--single {
  height: 40px;
  border: 1px solid var(--gray-tint-2);
  border-radius: var(--radius-input);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  outline: none;
  box-shadow: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  padding-left: 12px;
  padding-right: 36px;
  font-size: 15px;
  color: var(--gray-shade);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 38px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  outline: none;
  box-shadow: none;
}

.select2-container--default .select2-selection--single:has(.product-option--selected) .select2-selection__rendered {
  padding-left: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered .product-option--selected {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.select2-container--default .select2-selection--single .select2-selection__rendered .product-option--selected .product-option__image--sm {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-input);
  background: var(--surface-muted);
  border: 1px solid var(--gray-tint-2);
  display: block;
}

.select2-container--default .select2-selection--single .select2-selection__rendered .product-option--selected .product-option__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 14px;
}

.select2-container--default .select2-selection--single:has(.select2-selection__clear) .select2-selection__rendered {
  padding-right: 56px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted);
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  right: 28px;
  top: 0;
  height: 38px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--gray-shade);
}

.select2-container--default .select2-selection--single .select2-selection__clear:focus,
.select2-container--default .select2-selection--single .select2-selection__clear:focus-visible {
  outline: -webkit-focus-ring-color auto 1px;
  border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;
  top: 0;
  right: 8px;
  width: 20px;
  height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--text-muted) transparent transparent transparent;
  border-width: 6px 5px 0 5px;
  margin-left: -5px;
  margin-top: -3px;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--gray-tint-2);
  outline: -webkit-focus-ring-color auto 1px;
  box-shadow: none;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:focus-visible,
.select2-container--default .select2-selection--single .select2-selection__rendered:focus {
  outline: -webkit-focus-ring-color auto 1px;
  box-shadow: none;
}

.select2-dropdown {
  border: 1px solid var(--gray-tint-2);
  border-radius: var(--radius-input);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--black) 8%, transparent);
  font-family: var(--primary-font);
  z-index: 1100;
}

.select2-search--dropdown {
  position: relative;
  padding: 8px;
}

.select2-search--dropdown::before {
  content: "\e9a9";
  font-family: 'icomoon' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--gray-tint-2);
  border-radius: var(--radius-input);
  padding: 8px 12px 8px 42px;
  height: 40px;
  font-family: var(--primary-font);
  font-size: 14px;
  outline: none;
  box-shadow: none;
  width: 100%;
}

.select2-search--dropdown .select2-search__field::placeholder {
  color: var(--text-muted);
}

.select2-search--dropdown .select2-search__field:focus,
.select2-search--dropdown .select2-search__field:focus-visible {
  border-color: var(--gray-tint-2);
  outline: none;
  box-shadow: none;
}

.select2-results__group {
  font-weight: 600;
  color: var(--primary-base);
  font-size: 13px;
  padding: 8px 12px 4px;
}

.select2-results__option {
  font-size: 14px;
  padding: 6px 10px;
}

.product-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-option__image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-input);
  background: var(--surface-muted);
  border: 1px solid var(--gray-tint-2);
}

.product-option__image--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
}

.product-option__image--sm {
  width: 24px;
  height: 24px;
}

.product-option__text {
  flex: 1;
  line-height: 1.35;
}

.product-option--selected {
  min-width: 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered>.product-option--selected .product-option__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-container--default .select2-results__option--highlighted .product-option__image {
  background: var(--white);
  border-color: color-mix(in srgb, var(--white) 35%, transparent);
}

.select2-container--default .select2-results__option--highlighted .product-option__image--placeholder {
  color: color-mix(in srgb, var(--white) 85%, transparent);
  border-color: color-mix(in srgb, var(--white) 35%, transparent);
  background: color-mix(in srgb, var(--white) 12%, transparent);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--primary-base);
}

/* Skeleton loading */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, var(--gray-tint-2) 0, var(--surface-muted) 40px, var(--gray-tint-2) 80px);
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-input);
}

.field-control {
  position: relative;
  min-height: 40px;
  min-width: 0;
  max-width: 100%;
}

.skeleton-product-select {
  height: 40px;
  width: 100%;
}

.card.is-loading-products .calculate-btn {
  opacity: 0.55;
  pointer-events: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--base-margin);
}

.confirm-modal.hidden {
  display: none;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--gray-shade) 45%, transparent);
}

.confirm-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--base-margin);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--black) 18%, transparent);
}

.confirm-modal__dialog h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--gray-shade);
}

.confirm-modal__dialog p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-base);
}

.confirm-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.confirm-modal__dialog:focus {
  outline: none;
}

.confirm-modal__actions button:focus,
.confirm-modal__actions button:focus-visible {
  outline: -webkit-focus-ring-color auto 1px;
  outline-offset: 2px;
}


/* modal actions use btn-primary / btn-ghost directly */

/* COATINGS STEPPER IN ESTIMATE CARD */
.results-summary-card__detail .stepper-wrap {
  margin-top: 2px;
}

.stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #EBF2FE;
  color: var(--gray-shade);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--primary-font);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.stepper-btn:hover:not(:disabled) {
  background-color: #e3e7ed;
  color: var(--primary-base);
}

.stepper-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.stepper-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stepper-input {
  width: 72px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--primary-font);
  font-size: 14px;
  color: var(--gray-shade);
  text-align: center;
  padding: 0;
  outline: none;
  cursor: default;
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Product Coverage Hint */
.product-coverage-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.product-coverage-hint.hidden {
  display: none !important;
}