.nuancier {
  width: 100%;
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  font-family: var(--font-family-sans);
}

/* Set default font size for all elements within .nuancier */
/* .nuancier * {
  font-size: 1rem;
} */

.nuancier__header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

.nuancier__title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.nuancier__tabs {
  display: flex;
  position: relative;
  background-color: var(--color-black);
  border-radius: 1rem; /* 16px */
  overflow: hidden;
  border: none;
  padding: 0.125rem; /* 2px */
  margin-top: 1rem;
  border: 0.16875rem solid black; /* 2.7px */
}

.nuancier__highlighter {
  position: absolute;
  top: 0.125rem; /* 2px */
  bottom: 0.125rem; /* 2px */
  left: 0.125rem; /* 2px */
  background-color: var(--color-white);
  border-radius: 0.6875rem; /* 11px */
  z-index: 1;
  transition:
    left 0.15s ease-in-out,
    width 0.15s ease-in-out;
}

.nuancier__tab {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  flex-grow: 1;
  color: var(--color-white);
  background-color: transparent;
  border: none;
  transition: color 0.15s ease-in-out;
  mix-blend-mode: difference;
}

.nuancier__tab--active {
  color: white;
  background-color: transparent !important;
  border-right: none !important;
  border-left: none !important;
}

.nuancier__tab:last-child.nuancier__tab--active {
  border-right: none !important;
}

.nuancier__tab:not(.nuancier__tab--active) + .nuancier__tab--active {
  border-left: none !important;
}

.nuancier__subtitle {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: normal;
  color: var(--color-text-grey);
}

.nuancier__content {
  position: relative;
}

.nuancier__tab-content {
  display: none;
}

.nuancier__tab-content--active {
  display: block;
}

/* Notice Form */
.notice-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem; /* 10px */
}

.notice-form__section {
  margin-bottom: 0;
  padding: 1rem;
  background-color: var(--color-light);
  border-radius: 0.9375rem; /* 15px */
  box-sizing: border-box;
}

.notice-form__section--half {
  width: calc(50% - 0.3125rem); /* 5px */
}

.notice-form__column--right {
  width: calc(50% - 0.3125rem); /* 5px */
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* 10px */
}

.notice-form__section--right {
  width: 100%;
}

.notice-form__section--comment {
  padding: 0.3rem 0.3rem;
}

.notice-form__section--comment .notice-form__field--comment {
  margin-bottom: 0;
}
.notice-form__section--comment
  .notice-form__field--comment
  .notice-form__input {
  border-radius: 0.725rem; /* 11.6px */
}

.notice-form__section--full {
  width: 100%;
}

.notice-form__section--characteristics {
  padding: 0;
  background-color: transparent;
}

/* New group for furniture button and drawer */
.notice-form__furniture-group {
  background-color: var(--color-black);
  border-radius: 0.9375rem; /* 15px */
  padding: 0; /* Internal padding will be on button/drawer content */
  overflow: hidden; /* Ensure children rounding works */
  margin-top: 0.58125rem; /* 9.3px */
}

.notice-form__heading {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.notice-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.notice-form__grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.notice-form__field {
  margin-bottom: 0.55rem;
}

.notice-form__field:last-child {
  margin-bottom: 0;
}

.notice-form__field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-grey);
}

.notice-form__input,
.notice-form__textarea {
  width: 100%;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 2rem; /* 32px */
  font-size: 1rem;
  background-color: var(--color-white);
  box-sizing: border-box;
  font-family: "Circular Std", Helvetica, Arial, sans-serif;
}

.notice-form__input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.1875rem rgba(0, 123, 255, 0.1); /* 3px */
}

.notice-form__textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.1875rem rgba(0, 123, 255, 0.1); /* 3px */
}

.notice-form__reference-files {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.notice-form__reference-add {
  width: 5rem; /* 80px */
  height: 5rem; /* 80px */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.0625rem dashed #ccc; /* 1px */
  border-radius: 0.25rem; /* 4px */
  cursor: pointer;
  transition: background-color 0.2s;
}

.notice-form__reference-add:hover {
  background-color: #f0f0f0;
}

.notice-form__add-button {
  background: none;
  border: none;
  font-size: 1rem;
  color: #777;
  cursor: pointer;
}

.notice-form__furniture-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  color: var(--color-white);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.notice-form__button-icon {
  margin-left: 0.75rem;
  font-size: 1rem;
  line-height: 1;
  background-color: var(--color-white);
  color: var(--color-black);
  width: 2.125rem; /* 34px */
  height: 2.125rem; /* 34px */
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  transition: transform 0.3s ease-in-out;
}

.notice-form__button-icon.icon-rotated {
  transform: rotate(45deg);
}

.notice-form__button-icon::before,
.notice-form__button-icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-black);
  transition: background-color 0.2s;
}

.notice-form__button-icon::before {
  width: 1.125rem; /* 18px */
  height: 0.125rem; /* 2px */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-in-out;
}

.notice-form__button-icon::after {
  width: 0.125rem; /* 2px */
  height: 1.125rem; /* 18px */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-in-out;
}

.notice-form__button-icon.icon-rotated::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.notice-form__button-icon.icon-rotated::after {
  transform: translate(-50%, -50%);
}

.notice-form__submit {
  width: 100%;
  margin-top: 0;
}

/* Default (Enabled) State */
.notice-form__submit-button {
  padding: 0.85rem 0.9rem;
  background-color: var(--color-black); /* Black background */
  color: var(--color-white); /* White text */
  border: none; /* Black border */
  border-radius: 0.9375rem; /* 15px */
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

/* Hover state for enabled button */
.notice-form__submit-button:hover {
  background-color: #333; /* Darker grey on hover */
  border-color: #333;
  color: var(--color-white);
}

/* Disabled state */
.notice-form__submit-button--disabled {
  background-color: #f0f0f0; /* Lighter grey */
  color: #b0b0b0; /* Lighter text */
  border-color: #e0e0e0;
  cursor: not-allowed;
  pointer-events: none; /* Prevent clicks */
}

/* Remove hover effect for disabled state */
.notice-form__submit-button--disabled:hover {
  background-color: #f0f0f0;
  border-color: #e0e0e0;
}

/* Furniture Modal */
.furniture-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.furniture-modal__content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  width: 90%;
  max-width: 43.75rem; /* 700px */
  border-radius: 0.9375rem; /* 15px */
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15); /* 4px 12px */
}

.furniture-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 0.0625rem solid #eee; /* 1px */
}

.furniture-modal__title {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.furniture-modal__close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.furniture-modal__close:hover {
  color: #000;
  background-color: rgba(0, 0, 0, 0.05);
}

.furniture-modal__body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); /* 200px */
  gap: 1rem;
  padding: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.furniture-modal__item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.25rem; /* 4px */
  transition: background-color 0.2s;
}

.furniture-modal__item:hover {
  background-color: #f5f5f5;
}

.furniture-modal__checkbox {
  margin-right: 0.75rem;
  width: 1.125rem; /* 18px */
  height: 1.125rem; /* 18px */
  accent-color: #007bff;
}

.furniture-modal__label {
  font-size: 1rem;
  cursor: pointer;
}

/* Selected Furniture */
.selected-furniture {
  margin-top: 1.5rem;
}

.notice-form__furniture-select {
  border-radius: 0.9375rem; /* 15px */
}

.selected-furniture__item {
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.9375rem; /* 15px */
  overflow: hidden;
  transition:
    max-height 0.35s ease-in-out,
    opacity 0.3s ease-in-out,
    margin-bottom 0.35s ease-in-out;
  opacity: 0;
  max-height: 0;
}

.selected-furniture__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background-color: var(--color-black);
  color: var(--color-white);
  border-bottom: none;
  cursor: pointer;
}

.selected-furniture__name {
  font-size: 2rem;
  letter-spacing: -0.03rem;
  margin: 0;
  font-weight: 500;
  color: var(--color-white);
}

.selected-furniture__toggle {
  background-color: var(--color-white);
  border: none;
  cursor: pointer;
  width: 2.125rem; /* 34px */
  height: 2.125rem; /* 34px */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
  position: relative;
}

.selected-furniture__toggle.icon-rotated {
  transform: rotate(45deg);
}

.selected-furniture__toggle::before,
.selected-furniture__toggle::after {
  content: "";
  position: absolute;
  background-color: var(--color-black);
  transition: background-color 0.2s;
}

.selected-furniture__toggle::before {
  width: 1.125rem; /* 18px */
  height: 0.125rem; /* 2px */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.selected-furniture__toggle::after {
  width: 0.125rem; /* 2px */
  height: 1.125rem; /* 18px */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.selected-furniture__characteristics {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-in-out,
    padding 0.3s ease-in-out,
    background-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
  background-color: var(--color-black) !important;
  color: var(--color-black);
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  display: grid;
  padding: 0.85rem;
}

.selected-furniture__characteristics.characteristics-open {
  max-height: 31.25rem; /* 500px */
  background-color: var(--color-black) !important;
  color: var(--color-white) !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Styles for the new column wrappers */
.characteristics-column {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.selected-furniture__characteristic {
  margin-bottom: 0;
  padding: 0.2rem;
  background: #efefef2b;
  border-radius: 0.9375rem; /* 15px */
}

.selected-furniture__characteristic-title {
  font-size: 1rem;
  margin: 0.7rem 0.15rem 0.15rem;
  font-weight: 500;
  padding: 0 0 0 0.65rem;
}

.selected-furniture__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.selected-furniture__options label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  padding: 0.4rem 0.4rem 0.4rem 2.2rem;
  border-radius: 0.7875rem; /* 12.6px */
  transition: background-color 0.2s;
  margin: 0 0 0 0.2rem;
  cursor: pointer;
}

.selected-furniture__options label:hover {
  background-color: #333;
}

.selected-furniture__options input {
  margin-right: 0.75rem;
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  accent-color: var(--color-white);
}

/* Notice Cards */
.notices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); /* 300px */
  gap: 1.5rem;
}

.notice-card {
  background-color: #f0f0f0;
  border: 0px solid #000000;
  border-radius: 0.75rem; /* 12px */
  overflow: hidden;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Removed shadow */
  transition: none; /* Removed hover shadow transition */
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
}

.notice-card--highlighted {
  border: 0.125rem solid #000000; /* 2px */
  animation: pulse-highlight 1.6s infinite;
  transition: border 0.2s;
}

.notice-card:hover {
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Removed hover shadow */
}

.notice-card__header {
  display: flex;
  justify-content: space-between;
  /* padding: 0.75rem 1rem; /* Removed padding, will be handled by card padding */
  background-color: transparent; /* Header is transparent */
  font-size: 0.875rem; /* 14px */
  color: var(--color-text-grey);
  margin-bottom: 0.25rem;
}

.notice-card__name {
  /* padding: 1rem; /* Removed padding */
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.05rem;
  border-bottom: none;
  color: var(--color-black);
  margin-bottom: 0.75rem;
  line-height: 1.7rem;
}

.notice-card__tags {
  /* padding: 1rem; /* Removed padding */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* Gap between tags */
  margin-bottom: 0.3rem;
}

.notice-card__tag {
  background-color: #f0f0f0;
  padding: 0.15rem 0.5rem;
  border-radius: 1.3125rem; /* 21px */
  font-size: 0.875rem; /* 14px */
  color: #555;
  border: 0.09375rem solid #4a4a4a; /* 1.5px */
  letter-spacing: -0.04rem;
}

.notice-card__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
}

/* General style for icon + text actions */
.notice-card__action--icon-text {
  background-color: transparent;
  color: var(--color-text-grey);
  border: none;
  padding: 0.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-grow: 0;
}

.notice-card__action--icon-text:hover .notice-card__action-text {
  color: var(--color-black);
}
.notice-card__action--icon-text:hover .notice-card__action-icon {
  background-color: #333;
}

.notice-card__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; /* 32px */
  height: 2rem; /* 32px */
  border-radius: 50%;
  background-color: #4a4a4a;
  transition: background-color 0.2s;
}

.notice-card__action-icon img {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
}

.notice-card__action-text {
  font-size: 0.9rem; /* Changed from 14px/0.875rem */
  color: var(--color-text-grey);
  transition: color 0.2s;
}

/* Delete button as an X */
.notice-card__action--delete {
  background-color: transparent;
  color: var(--color-text-grey);
  border: 0.09375rem solid var(--color-text-grey); /* 1.5px */
  border-radius: 50%;
  width: 2rem; /* 32px */
  height: 2rem; /* 32px */
  padding: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  position: relative;
}

.notice-card__action--delete::before,
.notice-card__action--delete::after {
  content: "";
  position: absolute;
  width: 0.875rem; /* 14px */
  height: 0.09375rem; /* 1.5px */
  background-color: var(--color-text-grey);
  transition: background-color 0.2s;
}

.notice-card__action--delete::before {
  transform: rotate(45deg);
}

.notice-card__action--delete::after {
  transform: rotate(-45deg);
}

.notice-card__action--delete:hover {
  border-color: var(--color-black);
}

.notice-card__action--delete:hover::before,
.notice-card__action--delete:hover::after {
  background-color: var(--color-black);
}

.notices__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #777;
  font-style: italic;
}

.furniture-modal__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid #eee; /* 1px */
}

.furniture-modal__button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem; /* 4px */
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.furniture-modal__button--confirm {
  background-color: #007bff;
  color: #fff;
}

.furniture-modal__button--confirm:hover {
  background-color: #0069d9;
}

.selected-furniture__empty {
  padding: 1.5rem;
  color: #777;
  font-style: italic;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 0.9375rem; /* 15px */
}

/* Styles for the new Fichiers de référence section */
.notice-form__section--reference-files .notice-form__heading {
  margin-bottom: 0.75rem;
}

.notice-form__reference-files-container {
  background-color: var(--color-white);
  padding: 1rem;
  border-radius: 0.375rem; /* 6px */
  border: none;
}

.notice-form__reference-files-dropzone {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border: none;
  padding: 0;
  background-color: transparent;
  border-radius: 0.375rem; /* 6px */
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.notice-form__reference-files-dropzone.dragover {
  border-color: var(--color-black);
  background-color: #f0f0f0;
}

.notice-form__add-button--plus {
  width: 5rem; /* 80px */
  height: 5rem; /* 80px */
  background-color: var(--color-white);
  border: 0.0625rem solid #eeeeee; /* 1px */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem; /* 12px */
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
  order: 1;
}

/* Create the plus sign using pseudo-elements */
.notice-form__add-button--plus::before,
.notice-form__add-button--plus::after {
  content: "";
  position: absolute;
  background-color: var(--color-black);
  transition: background-color 0.2s;
}

.notice-form__add-button--plus::before {
  width: 1.125rem; /* 18px */
  height: 0.125rem; /* 2px */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.notice-form__add-button--plus::after {
  width: 0.125rem; /* 2px */
  height: 1.125rem; /* 18px */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.notice-form__add-button--plus:hover {
  background-color: #f8f8f8;
  border-color: #e0e0e0;
}

/* New Thumbnail Styles */
.notice-form__thumbnail-wrapper {
  position: relative;
  width: 5rem; /* 80px */
  height: 5rem; /* 80px */
  border-radius: 0.375rem; /* 6px */
  overflow: hidden;
  order: 2;
}

.notice-form__thumbnail-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-form__remove-thumbnail-button {
  position: absolute;
  top: 0.25rem; /* 4px */
  right: 0.25rem; /* 4px */
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
}

.notice-form__remove-thumbnail-button:hover {
  background-color: rgba(220, 53, 69, 0.8);
}

.notice-form__field--comment {
  margin-bottom: 0;
}

.notice-form__field--comment .notice-form__input {
  width: 100%;
}

/* Visually hidden class for labels if not needed but good for accessibility */
.visually-hidden {
  position: absolute;
  width: 0.0625rem; /* 1px */
  height: 0.0625rem; /* 1px */
  margin: -0.0625rem; /* -1px */
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* New Furniture Drawer Styles */
.furniture-drawer__content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-in-out,
    padding 0.4s ease-in-out;
  color: white;
  background-color: #000000;
  padding: 0 0.3rem;
}

.furniture-drawer__content.drawer-open {
  max-height: 37.5rem; /* 600px */
}
.furniture-drawer__body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); /* 200px */
  gap: 0;
  padding: 0 0 0.5rem 0;
}

.furniture-drawer__item {
  display: flex;
  align-items: center;
  padding: 0.55rem;
  border-radius: 0.25rem; /* 4px */
  transition: background-color 0.2s;
}

.furniture-drawer__item:hover {
  background-color: #f5f5f5;
  color: black;
}

/* Ensure custom checkbox styles apply correctly within the drawer */
.furniture-drawer__item .custom-checkbox-label {
  color: var(--color-white); /* Default text color on black drawer */
  /* padding-left, position, etc., are handled by .custom-checkbox-label */
}

.furniture-drawer__item:hover .custom-checkbox-label {
  color: var(--color-black); /* Text color on item hover */
}

/* Box border color for drawer items */
.furniture-drawer__item .custom-checkbox-label::before {
  border-color: var(--color-white);
}

.furniture-drawer__item:hover .custom-checkbox-label::before {
  border-color: var(--color-black); /* Box border on item hover */
}

/* Checkmark color for drawer items */
.furniture-drawer__item
  .custom-checkbox-input:checked
  + .custom-checkbox-label::after {
  background-color: var(--color-white);
}

.furniture-drawer__item:hover
  .custom-checkbox-input:checked
  + .custom-checkbox-label::after {
  background-color: var(--color-black); /* Checkmark on item hover */
}

/* Selected Furniture custom checkboxes are already handled by generic rules + specific overrides */

/* Generic custom checkbox style that can be applied to both areas */
.custom-checkbox-label {
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  padding-left: 1.875rem; /* 30px */
  line-height: 1.25rem; /* 20px */
  user-select: none;
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
}

.custom-checkbox-input {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.custom-checkbox-label::before {
  /* The box */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.0625rem; /* 17px */
  height: 1.0625rem; /* 17px */
  border: 0.125rem solid var(--color-white); /* 2px */
  border-radius: 0.3125rem; /* 5px */
  background-color: transparent;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

/* Hide checkmark by default by scaling to 0 */
.custom-checkbox-label::after {
  content: "";
  position: absolute;
  left: 0.25rem; /* 4px */
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 0.8125rem; /* 13px */
  height: 0.8125rem; /* 13px */
  border-radius: 50%;
  background-color: var(--color-white); /* Default checkmark color */
  transition: transform 0.1s ease-in-out;
  mix-blend-mode: difference; /* This was added by user */
}

/* --- Show checkmark for generic case --- */
.custom-checkbox-input:checked + .custom-checkbox-label::after {
  transform: translateY(-50%) scale(1);
}

/* --- Specific overrides for .furniture-drawer__item (black background drawer) --- */
.furniture-drawer__item .custom-checkbox-label {
  color: var(--color-white);
}
.furniture-drawer__item:hover .custom-checkbox-label {
  color: var(--color-black);
}
.furniture-drawer__item .custom-checkbox-label::before {
  border-color: var(--color-white);
}
.furniture-drawer__item:hover .custom-checkbox-label::before {
  border-color: var(--color-black);
}
.furniture-drawer__item
  .custom-checkbox-input:checked
  + .custom-checkbox-label::after {
  background-color: var(--color-white); /* Checkmark on black background */
  transform: translateY(-50%) scale(1); /* Ensure it shows */
}
.furniture-drawer__item:hover
  .custom-checkbox-input:checked
  + .custom-checkbox-label::after {
  background-color: var(
    --color-white
  ); /* Checkmark on item hover (light background) */
}

/* --- Specific overrides for .selected-furniture__options (black background characteristics section) --- */
.selected-furniture__options .custom-checkbox-label {
  color: var(--color-white);
  margin: 0 0 0.2rem 0.2rem;
  transition: color 0.2s;
}
.selected-furniture__options .custom-checkbox-label::after {
  left: 0.875rem; /* 14px */
}
.selected-furniture__options .custom-checkbox-label::before {
  left: 0.625rem; /* 10px */
}
.selected-furniture__options .custom-checkbox-label:hover {
  color: #ccc;
}
.selected-furniture__options .custom-checkbox-label::before {
  /* Box border */
  border-color: var(--color-white);
}
.selected-furniture__options .custom-checkbox-label:hover::before {
  border-color: #aaa;
}
.selected-furniture__options
  .custom-checkbox-input:checked
  + .custom-checkbox-label::after {
  background-color: var(--color-white); /* Checkmark on black background */
  transform: translateY(-50%) scale(1) !important; /* Force scale to ensure visibility */
}

.selected-furniture__characteristic:last-child {
  margin-bottom: 0;
}

@keyframes pulse-highlight {
  0% {
    border-color: #ffffff; /* White */
  }
  50% {
    border-color: #000000; /* Black */
  }
  100% {
    border-color: #ffffff; /* White */
  }
}

@media (max-width: 768px) {
  body,
  html {
    font-size: 13px; /* 14px */
  }
  .notice-form__section--half,
  .notice-form__column--right {
    width: 100%;
  }

  .selected-furniture__characteristics.characteristics-open,
  .selected-furniture__characteristics {
    grid-template-columns: 1fr;
  }
  .selected-furniture__options label {
    font-size: 0.9rem;
    line-height: 1rem;
  }
  .custom-checkbox-label::before {
    width: 0.8625rem;
    height: 0.8625rem;
  }
  .custom-checkbox-label::after {
    width: 0.7125rem;
    height: 0.7125rem;
  }
  .selected-furniture__options .custom-checkbox-label::after {
    left: 0.805rem;
  }
  .custom-checkbox-label::after {
    left: 0.2rem;
  }
  .custom-checkbox-label {
    padding-left: 1.875rem;
    line-height: 0.95rem;
  }
}
