.dcaw-skeleton {
  min-height: 1em;
  line-height: inherit;
  display: block;
  cursor: progress;
  position: relative;
  overflow: hidden;
  background-color: #f5f5f5;
  max-width: 210px;
}
.dcaw-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
  animation: shimmer 1s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
.dcaw-empty-content {
  padding: 30px 0;
  text-align: center;
}
.dcaw-empty-content svg {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.dcaw-product-tile__compare.is-loading, .dcaw-product-tile__wishlist.is-loading, .dcaw-compare.is-loading,
.dcaw-wishlist.is-loading, .dcaw-compare-btn.is-loading,
.dcaw-wishlist-btn.is-loading {
  pointer-events: none;
  opacity: 0.5;
  position: relative;
}
.dcaw-product-tile__compare.is-loading::before, .dcaw-product-tile__wishlist.is-loading::before, .dcaw-compare.is-loading::before,
.dcaw-wishlist.is-loading::before, .dcaw-compare-btn.is-loading::before,
.dcaw-wishlist-btn.is-loading::before {
  content: "";
  z-index: 1;
  position: absolute;
  display: block;
  width: 1em;
  height: 1em;
  left: 50%;
  top: 50%;
  margin-top: -0.5em;
  margin-left: -0.5em;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M13.75 22a1.75 1.75 0 11-3.5 0 1.75 1.75 0 013.5 0zM12 0a2 2 0 10.001 4.001A2 2 0 0012 0zm10 10.75a1.25 1.25 0 010 2.5 1.249 1.249 0 110-2.5zM0 12a2 2 0 104 0 2 2 0 00-4 0zm19-8a1 1 0 11.002 2.002A1 1 0 0119 4zm0 13.5a1.5 1.5 0 11-.001 3.001A1.5 1.5 0 0119 17.5zM5 3a2 2 0 11-.001 4.001A2 2 0 015 3zm0 14a2 2 0 11-.001 4.001A2 2 0 015 17z'/%3E%3C/svg%3E");
  animation: rotate-center 600ms ease-in-out infinite both;
}

.dcaw-dropdown__toggle, .dcaw-btn-w-icon {
  background-color: #f7f7f7;
  border: 0;
  font-weight: normal;
  font-size: 18px;
  line-height: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 4px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
}
.dcaw-dropdown__toggle:hover, .dcaw-btn-w-icon:hover {
  background-color: #dedede;
}
.is-loading.dcaw-dropdown__toggle, .is-loading.dcaw-btn-w-icon {
  opacity: 0.5;
  pointer-events: none;
}
.dcaw-dropdown__toggle span, .dcaw-btn-w-icon span {
  display: none;
}
.dcaw-dropdown__toggle svg, .dcaw-btn-w-icon svg {
  display: inline-block;
  height: 1em;
  vertical-align: -0.125em;
  width: 1em;
}

.dcaw-btn-w-icon[data-action=delete] {
  color: hsl(355, 86%, 49%);
}
.dcaw-btn-w-icon[data-action=share] {
  color: #2362d5;
}
.is-default .dcaw-btn-w-icon[data-action=default] {
  color: hsl(33, 100%, 50%);
}

[class*=dcaw-] {
  box-sizing: border-box;
}

.dcaw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dcaw-header__title {
  font-size: 26px;
  line-height: 1.25;
  color: #333;
}
.dcaw-header .dcaw-btn-w-icon span {
  font-size: 13px;
  margin-left: 4px;
  display: inline-block;
}

.dcaw-table-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px;
}
.dcaw-table-header__title {
  margin: 0;
  color: #333;
}
.dcaw-table-header__title span {
  font-size: 12px;
  line-height: 16px;
  border-radius: 50%;
  display: inline-block;
  width: 16px;
  text-align: center;
  background-color: #108510;
  color: #fff;
  font-weight: normal;
  pointer-events: none;
}
.dcaw-table-header__title em {
  font-size: 13px;
  opacity: 0.825;
  pointer-events: none;
}
.dcaw-table-header__actions {
  margin-left: auto;
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
}

.dcaw-compare-btn,
.dcaw-wishlist-btn {
  display: inline-block;
  position: relative;
}
.dcaw-compare-btn svg,
.dcaw-wishlist-btn svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}
.dcaw-compare-btn.is-loading,
.dcaw-wishlist-btn.is-loading {
  background: #eee;
  color: #eee;
}
.dcaw-compare-btn.is-active svg,
.dcaw-wishlist-btn.is-active svg {
  display: none;
}
.dcaw-compare-btn.is-active::after,
.dcaw-wishlist-btn.is-active::after {
  content: "";
  display: inline-block;
  height: 1em;
  width: 1em;
  vertical-align: -0.125em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-6 w-6' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dcaw-compare-count,
.dcaw-wishlist-count {
  font-size: 0.875em;
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dcaw-compare-count.is-empty,
.dcaw-wishlist-count.is-empty {
  display: none;
}

.dcaw-wishlist-table .dcaw-wishlist-btn {
  display: none;
}

table.dcaw-compare {
  min-width: 600px;
}

.dcaw-compare-table .dcaw-compare-btn {
  display: none;
}

.dcaw-products-grid {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.dcaw-products-grid li {
  border-bottom: 1px solid #e9e9e9;
  border-right: 1px solid #e9e9e9;
}

.dcaw-product-tile {
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  text-align: center;
  height: 100%;
}
.dcaw-product-tile__link {
  display: block;
  margin-bottom: 16px;
}
.dcaw-product-tile__link img {
  height: 200px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}
.dcaw-product-tile__title {
  font-size: 18px;
  margin-bottom: 16px;
}
.dcaw-product-tile__title a {
  text-decoration: none;
}
.dcaw-product-tile__title a:hover {
  text-decoration: none;
}
.dcaw-product-tile__buy {
  margin-top: auto;
}
.dcaw-product-tile__compare, .dcaw-product-tile__wishlist {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 0;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
.dcaw-product-tile__compare.is-loading, .dcaw-product-tile__wishlist.is-loading {
  background: #eee;
  color: #eee;
  position: absolute;
}
.dcaw-product-tile__select .dcaw-checkbox {
  position: absolute;
  left: 16px;
  top: 16px;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
  padding: 0;
  margin: 0;
}
.dcaw-product-tile__select .dcaw-checkbox input:checked + span::before {
  left: 50%;
  transform: translate(-50%, -55%) rotate(42deg);
}
.dcaw-product-tile__select .dcaw-checkbox span::before {
  left: 50%;
  transform: translate(-50%, -50%);
}

.dcaw-attributes-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.dcaw-attribute__title {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9e9e9;
  cursor: pointer;
  position: relative;
  line-height: 1.5em;
}
.dcaw-attribute__title::after {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  width: 1em;
  height: 1.5em;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-6 w-6' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  transition: transform 250ms ease-in-out;
}
.dcaw-attribute__values {
  padding-right: 8px;
}
.dcaw-attribute dl {
  display: grid;
  grid-row-gap: 16px;
  margin-bottom: 16px;
  padding: 0;
  max-height: 9999px;
  transition: all 250ms ease-in-out;
}
.dcaw-attribute dt {
  font-weight: inherit;
  margin-bottom: 8px;
  font-size: 12px;
  color: #797878;
}
.dcaw-attribute dd {
  display: block;
  margin-bottom: 4px;
}
.dcaw-attribute.is-collapse dl {
  transition: all 250ms ease-in-out;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.dcaw-attribute.is-collapse .dcaw-attribute__title::after {
  transform: scale(-1);
}

.dcaw-messages-wrapper {
  position: fixed;
  top: 32px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.dcaw-messages-wrapper .dcaw-message {
  padding: 8px 16px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  cursor: pointer;
  border-left: 6px solid hsl(120, 77%, 27%);
  animation: slide-left 100ms ease-in-out both;
}
.dcaw-messages-wrapper .dcaw-message.is-warning {
  border-left-color: hsl(355, 86%, 49%);
}
.dcaw-messages-wrapper .dcaw-message.is-info {
  border-left-color: hsl(33, 100%, 50%);
}

.dcaw-dropdown {
  position: relative;
  z-index: 10;
}
.dcaw-dropdown__content {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
}
.dcaw-dropdown.is-active .dcaw-dropdown__content {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.dcaw-form {
  margin: 0;
  padding: 8px;
  border-radius: 4px;
  background-color: #fff;
  display: grid;
  align-items: center;
  gap: 6px;
  grid-auto-flow: column;
  border: 1px solid #f5f5f5;
}
.dcaw-form[data-name=move_products] {
  grid-auto-flow: row;
}
.dcaw-form[data-name=move_products] .dcaw-btn-w-icon {
  justify-content: center;
}
.dcaw-form input {
  font-size: 14px;
  line-height: 1;
  font-weight: normal;
  box-shadow: none;
  border: 0;
  background-color: transparent;
  padding: 6px;
  border-radius: 4px;
  height: 30px;
}
.dcaw-form button {
  background-color: #108510;
  color: #fff;
}

.dcaw-radio,
.dcaw-checkbox {
  margin: 0;
  font-size: 14px;
  padding-left: 24px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}
.dcaw-radio:hover,
.dcaw-checkbox:hover {
  opacity: 0.825;
}
.dcaw-radio input,
.dcaw-checkbox input {
  display: none;
}
.dcaw-radio span::after, .dcaw-radio span::before,
.dcaw-checkbox span::after,
.dcaw-checkbox span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #232425;
  width: 12px;
  height: 12px;
  transition: all 50ms linear;
}

.dcaw-radio input:checked + span::after {
  background-color: hsl(120, 77%, 27%);
  border-color: hsl(120, 77%, 27%);
  width: 4px;
  height: 4px;
  left: 4px;
}
.dcaw-radio span::before, .dcaw-radio span::after {
  border-radius: 50%;
}

.dcaw-checkbox input:checked + span::before {
  left: 6px;
  transform: translateY(-55%) rotate(42deg);
  width: 4px;
  height: 12px;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-bottom: 2px solid hsl(120, 77%, 27%);
  border-right: 2px solid hsl(120, 77%, 27%);
}
.dcaw-checkbox span::before {
  border-radius: 3px;
}
.dcaw-checkbox span::after {
  content: none;
}

@keyframes rotate-center {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes slide-left {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes loading {
  to {
    background-position: 315px 0, 0 0, 0 190px, 50px 195px;
  }
}
.out-of-stock {
  color: red;
}

.in-stock {
  color: green;
}

.dcaw-attribute__value {
  text-align: center !important;
  width: 0px;
}

table.dcaw-compare {
  width: 100%;
  border-collapse: collapse;
}

.dcaw-compare th,
.dcaw-compare td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.dcaw-compare td:first-child,
.dcaw-compare th:first-child {
  width: 1%;
  white-space: nowrap;
  flex-shrink: 0;
}

.dcaw-compare thead th {
  position: sticky;
  top: 0;
  background-color: #f9f9f9;
  z-index: 2;
}

.dcaw-attribute__title {
  position: sticky;
  left: -1px;
  background-color: #f9f9f9 !important;
  z-index: 1;
}

.dcaw-product-tile__header {
  text-align: center;
}

.dcaw-product-tile__link img {
  max-width: 100px;
  height: auto;
}

.out-of-stock {
  color: red;
  font-weight: bold;
}
.dcaw-popup-content .dcaw-table-header {
  position: fixed;
  top: 30px;
  right: 10px;
}

.dcaw-attribute__title:after {
  display: none !important;
}

.bold {
  font-weight: 800;
}

.dcaw-table-header__title.bold {
  align-self: start;
}
.dcaw-compare > .nice-select.dcaw-select {
  float: unset !important;
  margin-top: 10px;
}

.dcaw-popup-content .dcaw-table-header__title.bold {
  align-self: unset !important;
  margin-right: 10px;
}

.dcaw-select.wide {
  margin-bottom: 20px;
}

.dcaw-compare-wrapper {
  width: 100%;
  overflow: auto;
}

.dcaw-popup-body > .dcaw-compare-table > .dcaw-compare-wrapper {
  overflow: visible;
}

/* === Compare Modal Styles === */
.compare-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  font-family: inherit;
  overflow-y: auto;
  padding: 40px 0;
}

.compare-modal.is-active {
  display: flex;
}

/* Overlay */
.compare-modal__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* Content */
.compare-modal__content {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 32px;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.25);
  z-index: 2;
  animation: modal-fade-in 0.25s ease-out;
}

/* Close Button */
.compare-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #444;
  cursor: pointer;
  transition: color 0.2s ease-in;
}

.compare-modal__close:hover {
  color: #000;
}

/* Body */
.compare-modal__body {
  margin-top: 16px;
  text-align: center;
}

.compare-modal__body h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
}

/* Animation */
@keyframes modal-fade-in {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 375px) {
  .dcaw-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  }
  .dcaw-attribute dl {
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  }
}
@media (min-width: 768px) {
  .dcaw-compare th,
  .dcaw-compare td {
    padding: 16px;
  }
  .dcaw-product-tile__header img {
    max-width: 150px;
  }
}
@media (max-width: 768px) {
  .dcaw-table-header__title.bold {
    display: none;
  }
}