:root {
  --easystore-body-color: #000000;
  --easystore-primary-color: #406deb;
  --easystore-primary-color-rgb: 64, 110, 235;
  --easystore-secondary-color: #48595f;
  --easystore-secondary-light-color: #abb5be;
  --easystore-danger-color: #be1d04;
  --easystore-muted-color: #a4b0b9;
  --easystore-border-color: #e7e6e5;
  --easystore-border-radius: 6px;
  --easystore-cart-drawer-width: 450px;
}

.easystore-visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.easystore-hide {
  display: none !important;
}

/* Thumbnail Skeleton */
.easystore-thumb-skeleton {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  z-index: 1;
  animation: thumbSkeletonLoading 1.5s infinite;
}

@keyframes thumbSkeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Grid */
.easystore-grid {
  display: grid;
  gap: 32px;
}

.easystore-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.easystore-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.easystore-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* SVG Styles */
.easystore-svg {
  line-height: 1;
}

.easystore-svg svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
}

/* Quantity Selector */
.easystore-quantity-selector {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.easystore-button-reset {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

.easystore-quantity-selector .easystore-quantity-selector-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  user-select: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 100%;
}

.easystore-quantity-selector .easystore-quantity-selector-btn:first-child {
  left: 0;
}

.easystore-quantity-selector .easystore-quantity-selector-btn:last-child {
  right: 0;
}

.easystore-quantity-selector .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  text-align: center;
  width: 120px;
  padding-left: 32px;
  padding-right: 32px;
}

.easystore-quantity-selector .form-control:focus,
.easystore-quantity-selector .form-control:active {
  background-color: transparent;
}

.easystore-quantity-selector .form-control::-webkit-outer-spin-button,
.easystore-quantity-selector .form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.easystore-product-quantity-selector .form-control {
  -moz-appearance: textfield;
}

/* Product Variants */
.easystore-product-variants,
.easystore-variant-options {
  display: flex;
  gap: 16px;
}

.easystore-product-variants {
  flex-direction: column;
}

.easystore-variant-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

.easystore-variant-option input {
  display: none;
}

.easystore-variant-option {
  display: inline-flex;
}

.easystore-variant-option-value,
.easystore-variant-option-color {
  color: var(--easystore-secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.easystore-variant-option-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.easystore-variant-option-value {
  min-width: 60px;
  min-height: 40px;
  border: 1px solid var(--easystore-border-color);
  border-radius: var(--easystore-border-radius);
}

.easystore-variant-option.disabled {
  opacity: 0.5;
}

.easystore-variant-option.disabled .easystore-variant-option-color,
.easystore-variant-option.disabled .easystore-variant-option-value {
  background-image: linear-gradient(
    to bottom right,
    #0000 50%,
    currentColor 50% calc(50% + 2px),
    #0000 calc(50% + 2px)
  );
}

.easystore-variant-option .easystore-variant-option-color:after {
  --easystore-variant-border-color: var(--easystore-primary-color);
  content: ' ';
  inset: -3px;
  opacity: 0;
  border-radius: inherit;
  will-change: transform;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  position: absolute;
  transform: scale(0.75);
  box-shadow: 0 0 0 2px var(--easystore-variant-border-color);
}

.easystore-variant-option input[type='radio']:checked + .easystore-variant-option-color:after {
  opacity: 1;
  transform: scale(1);
}

.easystore-variant-option input[type='radio']:checked + .easystore-variant-option-value {
  border-color: var(--easystore-variant-border-color);
  color: #48595f;
}

/* Ratings */
.easystore-ratings-container,
.easystore-rating-stars {
  display: inline-flex;
  align-items: center;
}

.easystore-rating-stars {
  gap: 4px;
}

.easystore-ratings-container {
  gap: 8px;
}

/* Price */
.easystore-product-price {
  display: flex;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  color: var(--easystore-body-color);
}

.easystore-price-current,
.easystore-price-original {
  display: flex;
  position: relative;
}

.easystore-price-original {
  font-weight: 700;
  color: var(--easystore-danger-color);
}

.easystore-price-original:before {
  content: ' ';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  border-bottom: 1.5px solid var(--easystore-danger-color);
}

/* Buttons */
.easystore-btn-addtocart,
.easystore-btn-review-form {
  display: inline-flex;
  justify-content: center;
}

/* Badge */
.easystore-badge {
  display: inline-block;
  padding: 4px 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: currentColor;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

/* List Group */
.easystore-list-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.easystore-list-group {
  display: flex;
  flex-direction: column;
}

.easystore-list-group-header,
.easystore-list-group-footer {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
}

.easystore-list-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}

.easystore-list-item,
.easystore-list-group-header {
  border-bottom: 1px solid var(--easystore-border-color);
}

.easystore-list-group-footer {
  border-top: 1px solid var(--easystore-border-color);
  border-bottom: 1px solid var(--easystore-border-color);
}

.easystore-list-group .easystore-list-item {
  border-bottom: 0;
}

.easystore-list-key {
  color: gray;
}

.easystore-list-value {
  color: #000;
}

/* Meta Data */
.easystore-metadata,
.easystore-metadata-h {
  display: flex;
  gap: 16px;
}

.easystore-metadata {
  flex-direction: column;
}

.easystore-metadata-item,
.easystore-metadata-item-v {
  position: relative;
  font-size: 14px;
  display: flex;
  gap: 4px;
}

.easystore-metadata-item-v {
  flex-direction: column;
}

.easystore-metadata-key {
  color: gray;
  font-weight: 600;
}

.easystore-metadata-value {
  color: #000;
}

.easystore-label,
.easystore-block-label {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #48595f;
}

.easystore-block-label {
  display: block;
  margin-bottom: 8px;
}

/* Card */
.easystore-card {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(2, 11, 83, 0.15);
  border-radius: var(--easystore-border-radius);
}

.easystore-card-border {
  border: 1px solid var(--easystore-border-color);
  box-shadow: none;
}

.easystore-card-header,
.easystore-card-body,
.easystore-card-footer {
  padding: 16px;
  display: flex;
}

.easystore-card-header,
.easystore-card-footer {
  justify-content: space-between;
}

.easystore-card-body {
  flex-direction: column;
}

.easystore-card-header {
  border-bottom: 1px solid var(--easystore-border-color);
}

.easystore-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

/* Widget */
.easystore-widget-title {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Easystore Typography Utilities */
.easystore-h1 {
  font-size: 2.5rem;
}

.easystore-h2 {
  font-size: 2rem;
}

.easystore-h3 {
  font-size: 1.75rem;
}

.easystore-h4 {
  font-size: 1.2rem;
}

.easystore-p {
  font-size: 1rem;
}

.easystore-small {
  font-size: 0.875rem;
}

/* Search */
.easystore-search-container {
  position: relative;
}

.easystore-search-container .easystore-svg {
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
}

.easystore-search-container .form-control {
  padding-left: 36px;
}

/* Compact form */
.easystore-compact-form {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.easystore-compact-form > div {
  width: 100%;
}

.easystore-compact-form .easystore-half-width {
  width: 50%;
}

.easystore-compact-form .easystore-half-width:last-of-type {
  margin-left: -1px;
}

.easystore-compact-form input,
.easystore-compact-form select {
  width: 100%;
  border-radius: 0;
  margin-top: -1px;
}

.easystore-compact-form input:focus,
.easystore-compact-form select:focus {
  position: relative;
  z-index: 1;
}

.easystore-compact-form > div:first-child input {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.easystore-compact-form > div:last-child input {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Rating Stars */
.easystore-rating-stars {
  font-size: 18px;
  color: #ffc046;
}

/* Spinner */
[x-cloak] {
  display: none !important;
}

.easystore-spinner {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.easystore-spinner > * {
  visibility: hidden;
}

.easystore-spinner::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: easyStoreSpin 1s linear infinite;
  visibility: visible;
}

.easystore-spinner.small::before {
  width: 25px;
  height: 25px;
}

.easystore-spinner.dark::before {
  border: 4px solid rgba(0, 0, 0, 0.3);
  border-top-color: #222;
}

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

/* Dropdown */
.easystore-dropdown-wrapper {
  position: relative;
  user-select: none;
  padding: 8px 16px;
  width: 100%;
  border: 1px solid var(--easystore-border-color);
  border-radius: var(--easystore-border-radius);
}

.easystore-dropdown-wrapper summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
}

.easystore-dropdown-wrapper summary .easystore-icon-caret {
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -3px;
  height: 7px;
}

.easystore-dropdown {
  list-style: none;
  position: absolute;
  left: -1px;
  right: -1px;
  top: 100%;
  z-index: 1;
  background-color: #ffffff;
  padding: 10px 0px;
  border: 1px solid var(--easystore-border-color);
  border-radius: var(--easystore-border-radius);
}

.easystore-dropdown-wrapper[open] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.easystore-dropdown-wrapper[open] .easystore-dropdown {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.easystore-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 0 10px 20px;
}

/* Modal */
#easystore-modal {
  position: relative;
}

#easystore-modal .modal-container {
  width: 800px;
  border-radius: 6px;
  background-color: #f0f0f0;
  box-shadow: 0px 30px 72px 0px rgba(17, 18, 19, 0.2), 0px 0px 2px 0px rgba(17, 18, 19, 0.2);
  position: fixed;
  z-index: 9999;
  display: none;
}

#easystore-modal .modal-backdrop {
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: none;
}

#easystore-modal.active .modal-backdrop {
  display: block;
  cursor: url('../images/modal-overlay-cursor.svg') 28 28, auto;
}

#easystore-modal.active .modal-container {
  display: block;
}

#easystore-modal .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

#easystore-modal .modal-container.bottom-right {
  bottom: 24px;
  right: 24px;
}

#easystore-modal .modal-container.bottom-left {
  bottom: 24px;
  left: 24px;
}

#easystore-modal .modal-container.top-left {
  top: 24px;
  left: 24px;
}

#easystore-modal .modal-container.top-right {
  top: 24px;
  right: 24px;
}

#easystore-modal .modal-container.center-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.easystore-modal-open {
  overflow: hidden;
}

/* Quick Cart */
.easystore-quick-cart {
  background-color: #ffffff;
}

.easystore-quick-cart-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 16px;
}

.easystore-quick-cart .easystore-product-category {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.easystore-quick-cart .easystore-product-title {
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
}

.easystore-quick-cart .easystore-product-title a,
.easystore-quick-cart .easystore-product-category a {
  color: inherit;
}

.easystore-quick-cart .easystore-product-price {
  font-size: 14px;
}

.easystore-quick-cart .easystore-quantity-selector {
  width: fit-content;
}

/* Skeleton Loading */
.easystore-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.easystore-skeleton {
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: easyStoreShimmer 1.5s infinite;
}

/* Disable default arrows of input field */
input[type='number'] {
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

@keyframes easyStoreShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media print {
  body {
    visibility: hidden;
  }

  [easystore-invoice-content] {
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
  }

  [easystore-print-invoice] {
    display: none !important;
  }
}

.sppb-productlist-slideshow-arrows {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.sppb-productlist-slideshow-arrows i {
  background: #ced4d8;
  color: #8d989d;
  border-radius: 100px;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
