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

html {
  margin-top: 0;
}

.wpd_row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}

.wpd_sidebar {
  width: 300px;
  background: #222222;
  position: sticky;
  top: 0;
  height: 100vh;
}

.wpd_maincontent {
  width: calc(100% - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wpd_header a {
  display: block;
  height: 80px;
  line-height: 80px;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-family: inherit;
  color: #fff;
  background: #000;
  text-align: center;
  text-decoration: none;
}

.wpd_product-title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 0 0 15px;
  border-bottom: 1px solid #525252;
}

.wpd_selection_label {
  color: #fff;
  display: block;
  margin: 15px 0;
  font-size: 15px;
  font-weight: 500;
}

.wpd_attribute {
  color: #fff;
  width: 100%;
  font-size: 15px;
  font-weight: 400;
  background: #333 !important;
  border: none;
  padding: 10px;
  border-radius: 5px;
  outline: none !important;
  cursor: pointer;
}

.wpd_attribute option {
  background: #333;
  color: #fff;
}

.wpd_action_area {
  position: absolute;
  width: 100%;
  bottom: 0;
  background: #333;
  padding: 15px;
}

.wpd_sidebar_inner {
  padding: 15px;
  overflow-y: scroll;
  height: calc(100vh - 175px);
}

/* width */
.wpd_sidebar_inner::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.wpd_sidebar_inner::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.wpd_sidebar_inner::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
.wpd_sidebar_inner::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.wpd_price {
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wpd_button {
  background: lightsalmon;
  border-radius: 5px;
  padding: 15px;
  font-size: 15px;
  color: #fff;
  display: block;
  margin-top: 15px;
  width: 100%;
  text-align: center;
}

.wpd_design_container {
  text-align: center;
}

a.wpd_customize_item {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 35px;
  display: inline-block;
  width: auto;
  align-self: flex-start;
  font-weight: 500;
}

.wpd_single_design_element {
  cursor: pointer;
  position: relative;
  display: block;
}

.wpd_single_design_element input {
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 5px;
}

.wpd_single_design_element input:checked + .wpd_design_ele_data {
  background: lightsalmon;
}

.wpd_design_ele_data {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #333;
  padding: 10px 10px;
  border-radius: 5px;
  margin: 5px 0;
}

.wpd_design_ele_data img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wpd_design_ele_data h3 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5em;
  color: #fff;
}

.wpd_design_ele_data > div > span {
  display: block;
  font-size: 11px;
  color: #b9b9b9;
  line-height: 1.3em;
}

.wpd_single_design_element input:checked + .wpd_design_ele_data > div > span,
.wpd_single_design_element input:checked + .wpd_design_ele_data h3 {
  color: #000;
}

/* Canvas Styling */

.wpd_drawing_area {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 500px;
  height: 500px;
}

.canvas-container {
  width: 500px;
  height: 500px;
  position: relative;
  user-select: none;
}

#wpd_image_area {
  width: 500px;
  height: 500px;
  position: relative;
  background-color: #fff;
}

#wpd_image_area img {
  width: 100%;
  object-fit: contain;
}

#wpd_canvas {
  position: absolute;
  width: 500px;
  height: 500px;
  left: 0;
  top: 0;
  user-select: none;
  cursor: default;
}

/* Button CSS Loader */

#wpd_add_to_cart {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.wpd_btn_loader {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: none;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#wpd_preview_popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

dd.variation-DesignElement img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
}

.wpd_design_el_prev {
  display: inline-block;
  margin-right: 10px;
}

.wpd_price_container {
  display: flex;
  align-items: center;
  gap: 0px;
}

.wpd_customizer_image {
  width: 500px;
  height: 500px;
  object-fit: contain;
  display: none;
}

.wpd_customizer_image:first-child {
  display: block;
}

a.wpd_design_el_prev {
  width: 50px;
  margin: 0 5px;
}

.wpd_content_header {
  position: absolute;
  top: 0;
  padding: 25px;
  width: 100%;
  background: #222;
  color: #fff;
  text-align: center;
  z-index: 999999;
}

.wpd_footer_buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

#wpd_download_image,
.wpd_enlist {
  width: calc(50% - 10px);
}

#wpd_add_to_cart {
  width: 100%;
}

.wpd_button.wpd_disable {
  background: #888;
  cursor: none;
  pointer-events: none;
  user-select: none;
}

.wpd_designed {
  position: absolute;
  right: 10px;
  width: 80px;
  top: 90px;
}

.wpd_designed img {
  width: 100%;
  margin-bottom: 20px;
}

.wpd_cart_thumbnail {
  display: flex;
  flex-wrap: wrap;
  width: 160px;
  justify-content: space-between;
}

.wpd_cart_thumbnail img {
  width: calc(50% - 10px);
  object-fit: contain;
  margin: 5px;
}

.wpd_updated_image {
  background: lightsalmon;
  font-size: 13px;
  color: #fff;
  border-radius: 3px;
  padding: 10px 15px;
  margin-right: 5px;
}

.wpd_hamburger {
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.wpd_sidebar_inner {
  position: relative;
}

.wpd_close_sidebar {
  color: #fff;
  font-size: 16px;
  position: absolute;
  right: 15px;
  top: 15px;
  display: none;
}



@media (max-width: 767px) {
	
	.wpd_content_header {
    position: absolute;
    top: 0;
    padding: 15px 35px 15px 15px;
    width: 100%;
    background: #222;
    color: #fff;
    text-align: left;
    z-index: 999999;
}
	
	.wpd_action_area {
    z-index: 30;
}
	
	.wpd_sidebar_inner {
    padding: 15px;
    overflow-y: scroll;
    height: calc(100vh - 191px);
}
	
  .wpd_hamburger {
    display: block;
  }

  .wpd_close_sidebar {
    display: inline-block;
  }

  .wpd_sidebar {
    position: fixed;
    right: 0;
    width: 330px;
    z-index: 9999999;
    transform: translateX(100%);
    transition: all 0.4s ease;
	height: 100% ;
	  max-height: 100% ;
	  overflow-y: scroll ;
  }

  .wpd_sidebar.active {
    transform: translateX(0%);
  }

  .wpd_maincontent {
    width: 100%;
    padding-top: 200px;
  }

  #wpd_image_area {
    width: 500px;
    height: 500px;
    position: relative;
    background-color: #fff;
  }

  .wpd_designed {
    position: absolute;
    right: unset;
    left: 0;
    width: 100%;
    top: 80px;
    display: flex;
    height: 50px;
    padding: 0 10px;
}

  .wpd_designed img {
    width: 50px;
    margin-bottom: 0;
    margin-right: 10px;
    object-fit: contain;
  }
}

@media (max-width: 550px) {
  #wpd_image_area {
    width: 320px;
    height: 320px;
  }

  .wpd_drawing_area {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 320px !important;
    height: 320px !important;
  }

  .canvas-container canvas {
    width: 320px !important;
    height: 320px !important;
  }

  .canvas-container {
    width: 320px !important;
    height: 320px !important;
  }

  .wpd_customizer_image {
    width: 320px;
    height: 320px;
    object-fit: contain;
    display: none;
}
}
