.rug-creator-new {
  float: left;
  width: 100%;
  position: relative;
}

.rug-creator-new #loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #fff;
  background-image: url(images/loading8c1d2d85c9ffc0534592.gif);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 30px auto;
  z-index: 5;
}

.rug-creator-new * {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  outline: none;
}

.sticky-part {
  position: fixed;
  bottom: 0;
  height: 100px;
  width: 100vw;
  background-color: lightcoral;
  z-index: 10000;
}

:disabled {
  opacity: 0.7;
}

.rug-creator-new .left {
  float: left;
  width: 48%;
  margin: 0 2% 0 0;
}

.rug-creator-new .rug-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rug-creator-new .selection {
  display: flex;
}

.rug-creator-new .right {
  float: left;
  width: 48%;
  margin: 0 0 0 2%;
}

.rug-creator-new h3,
.post-content .rug-creator-new h3 {
  margin: 0 0 30px 0;
  font-size: 22px !important;
}

.rug-creator-new ul {
  float: left;
  width: 100%;
  margin: 0 0 0 0;
  padding: 0;
}

.rug-creator-new ul li {
  float: left;
  width: 100%;
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
  background-color: #fff;
  cursor: pointer;
}

.rug-creator-new ul li:nth-of-type(3n + 3) {
  margin-right: 0;
}

.rug-creator-new ul li img {
  width: 100%;
  height: auto;
  margin: 0 0 10px 0;
  transition: 300ms ease all;
  -moz-transition: 300ms ease all;
  -webkit-transition: 300ms ease all;
}

.rug-creator-new ul li.active > img,
.rug-creator-new ul li:hover > img {
  border: 2px solid #a89b93;
  padding: 2px;
}

.rug-creator-new ul li h6 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  padding: 0 10px;
  margin: 0 0 20px 0;
  transition: 300ms ease all;
  -moz-transition: 300ms ease all;
  -webkit-transition: 300ms ease all;
}

.rug-creator-new ul li.active > h6,
.rug-creator-new ul li:hover > h6 {
  color: #a89b93;
}

.rug-creator-new .layers {
  float: left;
  width: 50%;
  position: relative;
}

.rug-creator-new .layers img {
  float: left;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  border: 2px solid #a89b93;
  padding: 2px;
}

.rug-creator-new .layer-0 {
  position: relative;
  z-index: 1;
}

.rug-creator-new .layer-1 {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.rug-creator-new .layer-2 {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.rug-creator-new .layer-3 {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.rug-creator-new form {
  float: left;
  width: 100%;
  position: relative;
  z-index: 1;
  margin: 0 0 30px 0;
}

.rug-creator-new form:not(#rug-creator-new-form) div {
  float: left;
  width: 49%;
  margin: 0 2% 0 0;
}

.rug-creator-new form div:nth-of-type(2) {
  margin: 0 0 0 0;
}

.rug-creator-new form input[type='number'] {
  float: left;
  width: 100%;
  margin: 0 0 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
}

.rug-creator-new form label {
  float: left;
  width: 100%;
  margin: 0 0 10px 0;
}

.rug-creator-new .spacer {
  display: block;
  clear: both;
  width: 100%;
  height: 1px;
}

.rug-creator-new .owl-nav {
  position: absolute;
  top: -55px;
  right: 0;
}

.rug-creator-new .owl-carousel .owl-nav button.owl-next,
.rug-creator-new .owl-carousel .owl-nav button.owl-prev {
  height: 25px;
  width: 25px;
}

.rug-creator-new .owl-carousel .owl-nav button.owl-next span,
.rug-creator-new .owl-carousel .owl-nav button.owl-prev span {
  font-size: 25px;
  line-height: 25px;
  width: 25px;
  display: block;
}

#rug-creator-new {
  max-width: 600px;
  margin: 0 auto;
}

#preview-area {
  margin-bottom: 80px;
}

#preview {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

#main-menu,
#order-summary {
  margin: 20px 0;
}

/* Menu Option Buttons with Icons */
.menu-option {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px;
  width: 110px;
  padding: 10px;
  transition: color 0.2s;
}

.menu-option i,
.menu-option span {
  color: #000000;
  transition: color 0.2s;
  font-size: 16px;
}

.menu-option i {
  font-size: 32px;
  margin-bottom: 8px;
}

/* Hover state: changes icon and text color */
.menu-option:hover i,
.menu-option:hover span {
  color: #6b6b3c;
}

/* Active (selected) state: changes icon and text color */
.menu-option.active i,
.menu-option.active span {
  color: #a89b93;
}

/* Main Menu Section Background */
#main-menu {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* Submenu Section Background */
#submenu {
  background-color: #414143;
  padding: 20px;
  color: #ffffff;
  display: none;
  margin-top: 10px;
  /* max-width: 600px; */
  margin: 0 auto;
  position: relative;
}
#submenu button {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 32px;
}
#submenu button:hover {
  color: #a8a5a5;
}
#submenu button:disabled {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  font-size: 32px;
  opacity: 0.6;
}

/* Submenu Header */
#submenu h2 {
  font-size: 20px;
  color: #bbb;
  margin-top: 3px;
  margin-bottom: 0;
  text-align: center;
}

#submenu-options-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
}

/* Submenu Options with Icons */

#submenu-options {
  display: flex;
  gap: 20px;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
}

#submenu-options.size {
  justify-content: center;
  width: 100%;
}

#submenu-options .input-group {
  flex: 1;
  min-width: 0;
}

.submenu-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

@-moz-document url-prefix() {
  #submenu-options-container {
    scrollbar-color: grey transparent;
    scrollbar-width: thin;
  }
}

#submenu-options-container::-webkit-scrollbar {
  height: 8px;
}

#preview-title {
  text-align: center;
}

#submenu-options-container::-webkit-scrollbar-track {
  background: transparent;
}

#submenu-options-container::-webkit-scrollbar-thumb {
  background-color: rgba(136, 136, 136, 0.7); /* normal */
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

#submenu-options-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(234, 234, 234, 0.7); /* lighter on hover */
}

.intec-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35.5px;
}

.intec-checkbox input[type='checkbox'] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #8c8a52;
  border-radius: 4px;
  background-color: #1a1a1a; /* keep background unchanged */
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checkmark base (invisible by default) */
.intec-checkbox input[type='checkbox']::after {
  content: '';
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s, background-image 0.2s;
}

/* Show checkmark when checked */
.intec-checkbox input[type='checkbox']:checked::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238c8a52%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E");
}

/* Hover effect — only border and checkmark change to white */
.intec-checkbox input[type='checkbox']:hover {
  border-color: white;
}

.intec-checkbox input[type='checkbox']:hover:checked::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27/%3E%3C/svg%3E");
}

#submenu-options button {
  background: none;
  border: none;
  padding: 10px;
  margin: 5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  transition: color 0.2s;
  width: 150px;
}

/* Increase icon size for submenu options */
#submenu-options button span {
  font-size: 20px;
}

/* Hover effect for submenu buttons */
#submenu-options button:hover rect,
#submenu-options button:hover span {
  color: #6b6b3c;
  stroke: #6b6b3c;
}

/* Options Display (material, design, weave, color) */
#options-display {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Fixing structure to separate text and box */
.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.option-box {
  position: relative;
  width: 120px;
  height: 120px;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: background-color 0.2s;
  overflow: hidden; /* important to prevent overlay spill */
  z-index: 0;
  flex: 0 0 auto; /* prevent flexbox from shrinking/wrapping */
  scroll-snap-align: start;
  text-align: center;
  position: relative;
}

.option-box.active {
  outline: 3px solid #fff;
  outline-offset: -3px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.option-box * {
  position: relative;
  z-index: 1;
}

.option-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* no darkness by default */
  transition: background 0.3s;
  z-index: 0;
}

.option-box:hover::before {
  background: rgba(0, 0, 0, 0.5); /* dark overlay on hover */
}

.option-box span,
.option-box p,
.option-box div {
  z-index: 1;
  position: relative;
}

/* Correct positioning of text below box */
.option-text {
  margin-top: 8px; /* Space between the box and text */
  font-size: 14px; /* Adjust text size */
}

/* Color Slider */
#color-slider {
  display: none;
}

.color-slider-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.color-box {
  width: 40px;
  height: 40px;
  background-color: #ccc;
  cursor: pointer;
  border-radius: 4px;
}

.hoverable-icon {
  width: 77%;
  height: auto;
}

.color-box:hover {
  opacity: 0.8;
}

/* Order Summary Section */
#order-summary {
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 20px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-end;
  text-align: left;
}

#order-summary .order-details {
  flex-grow: 1;
}

#order-summary .order-details p {
  margin: 8px 0;
  font-size: 1.2em;
}

#order-summary .total-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: center;
}

#order-summary .total {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

#order-summary .total-price {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px auto;
}

#order-summary .btn-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
}

#order-summary button {
  background-color: #6b6b3c;
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  width: 200px;
}

#order-summary button:hover {
  background-color: #a89b93;
}

@media all and (max-width: 1000px) {
  .rug-creator-new .btn.btn-primary {
    clear: none !important;
    display: inline-block !important;
    float: none !important;
    margin: 0 0 3px 0 !important;
    min-width: 200px !important;
  }
}

@media all and (max-width: 900px) {
  .rug-creator-new .left {
    float: left;
    width: 100%;
    margin: 0 0 30px 0;
  }

  .rug-creator-new .right {
    float: left;
    width: 100%;
    margin: 0 0 0 0;
  }
}

@media only screen and (max-width: 767px) {
  #submenu-options {
    gap: 12px;
    padding: 8px;
  }

  .option-box {
    width: 100px !important;
    height: 100px !important;
    font-size: 0.6rem !important;
  }

  #submenu {
    padding: 10px !important;
  }
  .rug-creator-new .layers {
    width: 80%;
  }

  #main-menu {
    gap: 5px !important;
  }

  #main-menu .menu-option {
    padding: 0 !important;
  }
  #main-menu button span {
    font-size: 0.8rem;
  }

  .rug-creator-new {
    width: unset;
    float: unset;
    margin-left: -20px;
    margin-right: -20px;
  }
  .order-details {
    font-size: 0.8rem;
  }
  #main-menu {
    padding: 10px !important;
  }

  #order-summary .btn-container {
    align-items: center !important;
  }

  #preview-title {
    font-size: 20px;
  }
}

