body {
  font-family: Raleway,Helvetica,sans-serif;
  text-align: center;
  line-height: 3;
  margin:0;
}

div.spacer {
    height: 120px;
}
div.stage {
  display: inline-block;
  vertical-align: top;

}

div.getting-started-box {
   padding: 1.8em;
   text-align: left;
   background-color: white;
   color: black;
   line-height:1.8;
   font-style: Raleway,sans-serif;
}

div#appContainer {
  background-color: #fafafa;
  /* width: 100%; */
  margin: auto;
  position: relative;
  display: flex;
  background: #fff;
  border : 1px solid #ccc;
}

div#uploadStage {
  height: 52vh;
  border: 2px dashed #ccc;
  border-radius: 10px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

div#uploadSpacer {
  height: 1em;
}

div#userCropStage {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  top: 10px;
  width: 570px;
  height: 570px;
  z-index: 1;
}

div#instructions {
  color: red;
  font-weight: bold;
  font-size: 1.8em;
  line-height: 1;
}

div#imgcontainer {
  width: inherit;
  height: inherit;
}

img#preview {
  object-fit: contain;
  width: 400px;
  height: 400px;
}

img#uploadedImg {
  object-fit: contain;
  width: 600px;
  height: 600px;
}

div#previewCanvas {
  aspect-ratio : 1 / 1;
  width: 90%;
  margin: auto;
}

/* canvas.p5Canvas {
  box-shadow: 7px 7px 3px #777;
} */

div#previewStage {
  width: 95%;
}

/* Hide p5js loading div */
div#p5_loading { display:none; }

div#frameSticks {
}

div.hrdiv {
  width: 80%;
  margin: auto;
}

img.stick {
  width: 34px;
  height: 40px;
  border: 10px solid rgba(255, 255, 255, 0);
  margin: 3px;
}

img.stick.selected {
    /* border: 3px solid #d32f28; */
    background-color: #f5f5f5;
    border: 3px solid #ef3a32;
    transform: scale(1.07);
    color: #ef3a32;
    margin-top: 10px;
}
.carousel-outer {
  display: flex;
  justify-content: center;
}

.carousel-inner {
  display: flex
;
  flex-wrap: wrap;
  align-content: flex-start;
}

.button {
  background-color: rgba(255,255,255,0);
  border-style: solid;
  border-width: 1px;
  border-color: black;

  color: #000;
  padding: 9px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: lighter;
  cursor: pointer;
  margin:4px;
}

.next, .upload-btn,#finalize {
  background-color: #EF3931;
  color:#fff;
  line-height: 1.7em;
  padding:10px;
  cursor:pointer;
}
.next b, .upload-btn b{
    font-size: 1.4em;

}
.upload-btn{
  max-width: 300px;
  margin:auto;
}
.button.back {
  border: 1px solid #ccc;
  margin-top: 1em;
  padding: 0.6em 1em;
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  background: #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.button.back:hover {
  background: #e0e0e0;
}

.button.back svg.icon {
  margin-right: 0.5em;
  width: 1em;
  height: 1em;
  display: block;
}


.button:hover {
  background-color: #f2baba;
  color: #555;
}

.button.im {
  padding: 5px;
}

.button.selected {
  background-color: #f5f5f5;
border: 2px solid #ef3a32;
transform: scale(1.07);
color: #ef3a32;
}

.button>img {
    width: 84px;
    margin: 0;
    padding: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.info {
  width: 14px;
  height: 14px;
  background-image: url(assets/info.png);
  background-size: contain;
  cursor: pointer;
  display: inline-block;
  margin-right: 1em;
}

.option-selection,#sizeslistbuttons,#orientationbuttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 1em 0;
  /* border: 1px solid #ccc; */
  padding:5px;
  border-radius: 0;
      /* background: #ffffff; */
      flex-wrap:wrap;
}

.info:hover {
    background-image: url(assets/info-hover.png);
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
}
#right-container{
  background-color: #fafafa;
}
#left-container, #right-container {
  width: 48%;
  vertical-align: top;
  float: left;
  height: 100%;
  overflow-y: scroll;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  /* BORDER-LEFT: 1PX SOLID #CCC; */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#left-container::-webkit-scrollbar, #right-container::-webkit-scrollbar {
  display: none;
}


#left-container {
  justify-content: center;
  align-items: center;
  background-color: #ffff;
  min-height: 1vh !important;
  BORDER-LEFT: 1PX SOLID #CCC;

}

h1 {
  font-size: 3em;
  letter-spacing: 0.07em;
  line-height: 1.3em;
  margin:0;
}

span.startspan {
  font-weight: bold;
  color: red;
}

#getStartedStage {
  background-color: red;
  color: white;
  line-height: 4em;
  width: 100%;
}

#uploadStage img {
  width: 9vw;
}

#uploadStage>input {
  display: none;
}

#uploadStage>label {
  cursor: pointer;
}

#cropAndSizeStage {
  font-weight: bold;
  padding:0 5%;
  text-align: left;
}

#priceInfo {
  border: solid #000 1px;
  border-radius: 0;
  font-weight: bold;
  font-size: 1.2em;
  border-style: solid;
  margin:10px 0;
  cursor: pointer;
      text-align: center;
}

#priceInfo:hover {
  background-color: #f2efef;
  cursor: default;
}

#printDpi {
  font-weight: bold;
  font-style: italic;
  text-align: left;
  line-height: 1.4;
  color: #000 !important;
  margin: 1em 0;
}

input[type=button] {
  padding: 0.6em;
}

#finalize {
  /* padding: 1em 2em; */
  font-size: 1.4em;
  margin:0;
  border: 1px solid #ccc;

}

#modalShade {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.33);
  z-index: 19;
}

.modal {
  display: none;
  background-color: white;
  border-style: solid;
  padding: 3em;
  text-align: left;
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 20;
}

.lScrollIcon, .rScrollIcon {
  display: none;
}
@media screen and (min-width: 320px) and (max-width: 767px) {

  .mobileFinalButtonsTarget{
    display:block !important;
  }
  .desktop-add-to-cart{
    display:none;
  }
  .mobiletoCropAndOption{
    display: block !important;
  }
  .desktoptoCropAndOption{
    display: none;
  }
  #sizeStage {
      padding: 0px 5% !important;
  }
  .option-selection {
      flex-direction: column !important;
      align-items: flex-start !important;
  }
  div.spacer {
      height: 0px !important;
  }
  form input[type="range"] {
      width: 240px;
  }
  #frameInfo {

      height: 302px !important;
  }
  #frameInfo {
        display: grid;
        /* text-align: -webkit-center; */
        grid-template-columns: 50% auto;
        align-items: baseline;
        justify-content: space-evenly;
        grid: 36px 38px / 49fr 25fr;
        align-content: space-evenly;
        justify-items: start;
        margin-left: 31px;
        line-height: 40px;
        font-size: 14px !important;
    }

    .both-btn-cointainer {
        display: flex;
        align-items: baseline;
        justify-content: space-evenly;
        width: 100%;
        align-content: center;
        flex-wrap: wrap;
        flex-direction: row-reverse;
    }
    .top-image {
          position: absolute;
          top: 91px;
          left: 186px !important;
          width: 100px;
          cursor: grab;
          user-select: none;
          text-align: center !important;
      }
      div#uploadStage {
        height: 59vh !important;
        border: 2px dashed #ccc;
        border-radius: 10px;
        margin: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
  .both-btn-cointainer {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      width: 40% !important;
  }
    div#canvasContainer {
      display: grid;
      grid-template-columns: repeat(1, 1fr) !important;
      justify-items: center;
      align-items: center;
      justify-content: center;
  }

  #left-container, #right-container {
    width: 100%;
    height: 50%;
    flex: 0 0 100%;
  }

  button.back-to-step-2 {
    background-color: #EF3931;
    color: #fff;
    line-height: 1.4em;
    padding: 6px;
    cursor: pointer;
    font-size: 20px;
    width: 117px;
    border: #EF3931;
    /* margin: -73px; */
    margin-left: -145px !important;
    margin-top: 8px;
  }
  div#appContainer {
    background-color: #fafafa;
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    align-content: center;
}
}
@media screen and (max-width: 900px) {
  #left-container, #right-container {
      width: 100% !important;
  }
  body.step-2 #left-container, body.step-3 #left-container {
        wffffidth: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 1em;
    }

    button.back-to-step-2 {
          background-color: #EF3931;
          color: #fff;
          line-height: 1.4em;
          padding: 6px;
          cursor: pointer;
          font-size: 20px;
          width: 117px;
          border: #EF3931;
          /* margin: -73px; */
          margin-left: -67px;
          margin-top: 8px;
      }
    div#canvasContainer {
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        justify-items: center;
        align-items: center;
        justify-content: center;
    }

  /* div#appContainer {
    flex-wrap: wrap;
    width: 100%;
    overflow-x: hidden;
  } */


      .carousel-inner.matcolor {
          display: flex;
          justify-content: space-between;
          align-content: center;
          align-items: center;
          gap: 0px !important;
      }

      .carousel-inner.accessmatbutton {
          gap: 0px !important;
          display: flex;
          justify-content: center;
          align-items: center;
      }

      input[type="range"] {
          margin: auto;
          -webkit-appearance: none;
          position: relative;
          overflow: hidden;
          height: 30px;
          width: 355px !important;
          cursor: pointer;
          border-radius: 0;
          accent-color: red;
      }

      #matWidthRange_output{
        font-size: 14px !important;
      }

      img.stick {
        width: 29px !important;
        height: 40px;
        border: 10px solid rgba(255, 255, 255, 0);
        margin: 3px;
      }
          div#appContainer {
        flex-wrap: wrap;
        width: 100%;
        overflow-x: hidden;
        display: flex;
        flex-direction: column-reverse;
    }


  #left-container, #right-container {
    width: 100%;
    height: 50%;
    flex: 0 0 100%;
  }

  div#uploadSpacer {
    display: none;
  }
  #uploadStage img {
    width: 30vw;
  }
  div#userCropStage {
    width: 95%;
    height: unset;
    aspect-ratio: 3 / 4;
  }

  .lScrollIcon, .rScrollIcon {
    opacity: 0;
    transition: opacity 0.5s;
    display: block;
    position: absolute;
    height: 100%;
    width: 2em;
    top: 0;
    background-size: cover;
  }

  .lScrollIcon {
    left: -2em;
    background-image: url('assets/scroll-l.png');
  }

  .rScrollIcon {
    right: -2em;
    background-image: url('assets/scroll-r.png');
  }

  .on {
    opacity: 0.7;
    transition: opacity 1s;
  }

  .lScrollWatcher, .rScrollWatcher {
    display: inline-block;
    height: 3px;
    width: 3px;
  }

  .modal {
    font-size: 0.8em;
    line-height: 1.8;
    padding: 2em;
  }
}

.right-container h1{

}
.right-container h1,.right-container  h2{
  line-height: 1.3em;
  margin:0;
}

.final-buttons{
  display:flex;
  flex-direction: column;
}
#sizeStage {
    padding: 131px 5%;
}
.warn {
  margin: 3em 0;
  border:1px solid #ccc;
  padding: 1em;
}

input[type="range"] {
    margin: auto;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    height: 30px;
    width: 380px !important;
    cursor: pointer;
    border-radius: 0; /* iOS */
    accent-color: red;
}

::-webkit-slider-runnable-track {
    background: #ddd;
}

/*
 * 1. Set to 0 width and remove border for a slider without a thumb
 * 2. Shadow is negative the full width of the input and has a spread
 *    of the width of the input.
 */
::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px; /* 1 */
    height: 30px;
    background: #fff;
    box-shadow: -200px 0 0 200px dodgerblue; /* 2 */
    border: 2px solid #999; /* 1 */
}

::-moz-range-track {
    height: 40px;
    background: #ddd;
}

::-moz-range-thumb {
    background: #fff;
    height: 40px;
    width: 20px; /* 1 */
    border: 3px solid #999; /* 1 */
    border-radius: 0 !important;
    box-shadow: -200px 0 0 200px dodgerblue;
    box-sizing: border-box;
}

::-ms-fill-lower {
    background: dodgerblue;
}

::-ms-thumb {
    background: #fff;
    border: 2px solid #999; /* 1 */
    height: 40px;
    width: 20px; /* 1 */
    box-sizing: border-box;
}

::-ms-ticks-after {
    display: none;
}

::-ms-ticks-before {
    display: none;
}

::-ms-track {
    background: #ddd;
    color: transparent;
    height: 40px;
    border: none;
}

::-ms-tooltip {
    display: none;
}
#frameInfo {
    display: grid;
    /* text-align: -webkit-center; */
    grid-template-columns: 50% auto;
    align-items: baseline;
    justify-content: space-evenly;
    grid: 36px 38px / 49fr 25fr;
    align-content: space-evenly;
    justify-items: start;
    margin-left: 31px;
    line-height: 40px;
    font-size: 17px;
}
.edit-image-container{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap:16px;
  margin-bottom: 20px;
}
.button.add-to-cart {
  border: none;
  background-color: #EF3931; /* Your brand red */
  color: #fff;
  font-weight: bold;
  padding: 0.6em 1.2em;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 4px;
}

.button.add-to-cart:hover {
  background-color: #c92d27; /* darker red on hover */
}

.button.add-to-cart svg.icon {
  margin-right: 0.5em;
  width: 1em;
  height: 1em;
  display: block;
}
.edit-image-container {
  display: flex;
  gap: 1em;
  margin-top: 1em;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;

}

.button.edit-button {
  display: inline-flex;
  align-items: center;
  padding: 0.6em 1.2em;
  color: #000;
  border-radius: 0;
  border: 1px solid #000;
  cursor: pointer;
  transition: background 0.2s;
}

.button.edit-button:hover {
  background-color: #f2baba;
}

.button.edit-button svg.icon {
  margin-right: 0.5em;
  width: 1em;
  height: 1em;
  display: block;
}
.step-number-label{
  font-size:0.85em;
  font-weight: 300;
  line-height: 1em;
  margin:0 0 10px 0;
  color:#8a8a8a;
}

/*...............................................tbi..................................................................... */
.frame-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.frame-item {
    text-align: center;
    cursor: pointer;
}

.frame-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 6px 34px 12px;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.frame-item input[type="radio"]:checked + .frame-img {
    border: 2px solid #ef3931; /* Blue border when selected */
     box-shadow: 0 0 12px #ef3931;
      transform: scale(1.05);
      position: relative;
      z-index: 3;
}

.frame-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #aaa;
    z-index: 2;
    position: relative;
}
div#toSizeOptions {
    background-color: #EF3931;
    color: #fff;
    line-height: 1.7em;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    width: 234px;
    border: #EF3931;
}
img.inner-photo.horizontal {
    position: absolute;
    top: 142px;
    width: 102px;
    left: 88px;
}
img.inner-photo.vertical {
    position: absolute;
    top: 167px;
    width: 133px;
    left: 359px;
}
img.inner-photo.square {
    position: absolute;
    height: 121px;
    top: 147px;
    right: 358px;
}

.frame-preview-box {
    width: 93%;
    max-width: 404px;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    /* overflow: ; */
    /* margin: 10px; */
}
.inner-photo {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
  z-index: 1;
}
.frame-preview-box .inner-photo {
    width: 52%;
    margin-right: 18px;
    height: 92%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
#canvasContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    align-items: start;
    text-align: center;
    width: 100%;
    justify-items: center;
}
.canvas-wrapper {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.canvas-wrapper:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.canvas-wrapper.selected {
  outline: 3px solid #ef3931;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(239 57 49);
}
.step-4-visible{
  background-color: #fafafa;
  width: 100%;
  margin: auto;
  position: relative;
  display: flex;
  flex-wrap: nowrap !important;
}
div.step-4-left {
    width: 505px !important;
}
/* canvas.frame-preview {
    width: 340px !important;
    height: 200px !important;
} */
 .spinner {
  border: 4px solid #eee;
  border-top: 4px solid #ef3931;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Wrapper for each frame + canvas + label */
.frame-wrapper {
  display: inline-block;
  text-align: center;
  margin: 10px;
  position: relative;  /* Needed for tooltip positioning */
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fafafa;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Highlight border when selected */

.selected p.frame-label {
    font-size: 21px !important;
}
/* Frame image label below each canvas */
.frame-label {
  margin-top: 8px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  text-transform: capitalize;
  user-select: none;
}

/* Tooltip style */
.frame-wrapper > div.tooltip {
  position: absolute;
  bottom: 100%;  /* above the frame wrapper */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;

  padding: 6px 14px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none; /* ignore mouse events */

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10;
  user-select: none;
}

/* Show tooltip on hover or when selected */
.frame-wrapper:hover > div.tooltip,
.frame-wrapper.selected > div.tooltip {
  opacity: 1;
  visibility: visible;
}

/* Optional: tooltip arrow */
.frame-wrapper > div.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
}
/* div#frameSticks {
    display: none;
} */

/* div#framecategorybuttons {
    display: none;
} */
.stage1 {
    width: 100%;
}
b {
    font-weight: bold;
}
button.back-to-step-3 {
    background-color: #EF3931;
    color: #fff;
    line-height: 1.7em;
    padding: 6px;
    cursor: pointer;
    font-size: 20px;
    width: 117px;
    border: #EF3931;
    margin-top: 12px;
    margin-left: 6px;
}
.back-btn1 {
    display: flex;
    text-align: left;
    margin-left: 33px;
    justify-content: space-between;
}
button.back-to-step-2 {
    background-color: #EF3931;
    color: #fff;
    line-height: 1.4em;
    padding: 6px;
    cursor: pointer;
    font-size: 20px;
    width: 117px;
    border: #EF3931;
    /* margin: -73px; */
    margin-left: -75px;
    margin-top: 8px;
}

button.next-btn-wall-frame{
  background-color: #EF3931;
    color: #fff;
    line-height: 1.7em;
    padding: 6px;
    cursor: pointer;
    font-size: 20px;
    width: 185px;
    border: #EF3931;
    margin-top: 12px;
    margin-right: 50px;
    }
.back-btn2 {
    text-align: left;
    margin-left: 118px;
}

 .new-class {
    width: 40% !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1em;
}
#pageLoader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  display: flex;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.both-btn-cointainer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}
div#toSizeOptions1 {
    background-color: #EF3931;
    color: #fff;
    line-height: 1.4em;
    padding: 6px;
    cursor: pointer;
    font-size: 20px;
    width: 117px;
    border: #EF3931;
    /* margin: -73px; */
    /* margin-left: -74px; */
    /* margin-top: 8px; */
    margin-right: 45px;
}
.switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 34px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0;
      right: 0; bottom: 0;
      background-color: #ccc;
      transition: 0.4s;
      border-radius: 34px;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 26px; width: 26px;
      left: 4px; bottom: 4px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
    }

    input:checked + .slider {
      background-color: #ef3931;
    }

    input:checked + .slider:before {
      transform: translateX(26px);
    }
    label.toggle-title {
        margin-bottom: 52px;
        font-weight: bold;
    }
    p.frame-label {
        line-height: 23px;
        font-family: Raleway, Helvetica, sans-serif !important;    font-family: Raleway, Helvetica, sans-serif !important;
    }
    img.selected {
        border-radius: unset !important;
        /* box-shadow: 0px 0px 4px 4px #d32f28; */
    }
    .step-4-left {
        margin-top: 131px;
    }
    .step-header1 {
        font-size: 1.5em;
        margin: 1em auto;
        color: #333;
        text-align: center;
        font-family: 'Raleway', sans-serif;
        line-height: 1.3em;
    }

    .frame-wrapper.selected {
        box-shadow: 0 1px 14px 4px rgba(4, 4, 4, 1.1);
    }

    .carousel-inner.matcolor {
        display: flex;
        justify-content: space-between;
        align-content: center;
        align-items: center;
        gap: 35px;
    }
    .carousel-inner.accessmatbutton {
        gap: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .carousel-outer {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-left: 3px;
    }
    iframe.iframe-test.iframe-horizontal-square {
        height: 1380px !important;
    }
    iframe.iframe-test.vertical-iframe {
        height: 1640px !important;
    }

    img.img-step-5 {
        width: 195px;
        /* margin-right: 230px; */
    }
    div#display-wall 
    {
        text-align: center !important;
        width: 100%;
    }
    h3.wall-text {
        font-size: 1.5em;
        margin: 1em auto;
        color: #333;
        text-align: center;
        font-family: 'Raleway', sans-serif;
        line-height: 1.3em;
    }
    .crop-image-container {
        position: relative;
        max-height: 1000px;
        display: block;
        overflow: hidden;
    }
    .bottom-image {
        display: block;
        max-height: 1000px;
        width: auto; /* keep aspect ratio */
        height: auto; /* keep aspect ratio */
        margin: 0 auto; /* center horizontally */
    }

    .top-image {
        position: absolute;
        top: 126px;
        left: 460px;
        cursor: grab;
    }



    button.back-to-step-4 {
      background-color: #EF3931;
      color: #fff;
      line-height: 1.7em;
      padding: 6px;
      cursor: pointer;
      font-size: 20px;
      width: 117px;
      border: #EF3931;
      margin-top: 12px;
  }
  .container-step-5 {
      width: 100%;
  }
  .back-step-div {
      text-align: left;
      margin-left: 83px;
  }
  .final-buttons.step5-final {
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: space-around;
      margin-top: 20px;
  }
  .step5-Finalize{
    padding: 15px 100px;
    font-size: 1.4em;
    margin: 0;
    border: 1px solid #ccc;
    width: 330px !important;
  }
  canvas#defaultCanvas0 {
      box-shadow: 7px 7px 3px #777;
  }
    span.price-value {
        font-weight: bold;
        font-size: 18px;
    }
    b.price-field {
      font-size: 21px;
  }


.glasstype .button {
    width: 127px;
    line-height: 17px;
    display: flex;
    align-content: flex-start;
    justify-content: space-evenly;
    align-items: center;
}
.info.back-type-info {
    cursor: pointer;
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 6px;
}

.back-type-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    line-height: 25px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    padding: 35px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.back-type-popup a {
    color: #0073aa;
    text-decoration: underline;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

button.close-backtype-popup {
    border: #fff;
    color: #fff;
    background: #d72532;
    padding: 10px;
    margin-top: 20px;
}

/* ================================ */

.info.glass-type-info {
    cursor: pointer;
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 6px;
}

.back-type-popup-glass {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    line-height: 25px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    padding: 35px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


.popup-overlay-glass {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

button.close-backtype-popup-glass {
    border: #fff;
    color: #fff;
    background: #d72532;
    padding: 10px;
    margin-top: 20px;
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


.info.access-mat-info {
    cursor: pointer;
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 6px;
}

.back-type-popup-acess-mat {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    line-height: 25px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    padding: 35px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


.popup-overlay-access-mat {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

button.close-backtype-popup-access-mat {
    border: #fff;
    color: #fff;
    background: #d72532;
    padding: 10px;
    margin-top: 20px;
}

/* +_+++++++++++++++++++++_++_+_______++++++++++++++ */

.info.mat-color-info {
    cursor: pointer;
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 6px;
}

.back-type-popup-mat-color {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    line-height: 25px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    padding: 35px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}


.popup-overlay-mat-color {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

button.close-backtype-popup-mat-color {
    border: #fff;
    color: #fff;
    background: #d72532;
    padding: 10px;
    margin-top: 20px;
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


.info.mat-width-info {
    cursor: pointer;
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 6px;
}

.back-type-popup-mat-width {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    line-height: 25px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    padding: 35px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


.popup-overlay-mat-width {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

button.close-backtype-popup-mat-width {
    border: #fff;
    color: #fff;
    background: #d72532;
    padding: 10px;
    margin-top: 20px;
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


.info.print-size-info {
    cursor: pointer;
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 6px;
}

.back-type-popup-print-size {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    line-height: 25px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    padding: 35px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


.popup-overlay-print-size {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

button.close-backtype-popup-print-size {
    border: #fff;
    color: #fff;
    background: #d72532;
    padding: 10px;
    margin-top: 20px;
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

.info.frame-category-info {
    cursor: pointer;
    display: inline-block;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 6px;
}

.back-type-popup-frame-category {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    line-height: 25px;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    padding: 35px;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


.popup-overlay-frame-category {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

button.close-backtype-popup-frame-category {
    border: #fff;
    color: #fff;
    background: #d72532;
    padding: 10px;
    margin-top: 20px;
}
.frame-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    border: white;
}
.button-bg {
  border-radius: 4px;
}
.button-label {
  margin-top: 4px;
  font-size: 14px;
  text-align: center;
}

.carousel-inner.matcolor .button:nth-child(3) {
  background-color: white;
  color: white; /* for visibility */
  /* border: 1px solid #ccc; */
}

.carousel-inner.matcolor .button:nth-child(4) {
  background-color: #fffdd0; /* Cream */
  color: #fffdd0;
}

.carousel-inner.matcolor .button:nth-child(5) {
  background-color: gray;
  color: gray;
}

.carousel-inner.matcolor .button:nth-child(6) {
  background-color: black;
  color: black;
}

.matcolor .button {
      width: 34px !important;
}

.accentmatcolor .button {
      width: 42px !important;
}

.accentmatcolor{
      gap: 18px;
}

/* 🎨 Accent Mat Color Buttons */
.carousel-inner.accentmatcolor .button:nth-child(3) {
  background-color: white;
  color: white;
  /* border: 1px solid #ccc; */
}

.carousel-inner.accentmatcolor .button:nth-child(4) {
  background-color: #40538d;
  color: #40538d;
}

.carousel-inner.accentmatcolor .button:nth-child(5) {
  background-color: #406254;
  color: #406254;
}

.carousel-inner.accentmatcolor .button:nth-child(6) {
  background-color: #b94345;
  color: #b94345
}

.carousel-inner.accentmatcolor .button:nth-child(7) {
  background-color: #c4b156;
  color: #c4b156;
}

.carousel-inner.accentmatcolor .button:nth-child(8) {
  background-color: black;
  color: black;
}
