/* Overlay */
.rr-modal {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(0,0,0,0.6) !important;
  overflow-y: auto !important;
}

/* Panel */
.rr-modal-content {
  background: #fff !important;
  width: 92% !important;
  max-width: 780px !important;
  margin: 4vh auto !important;
  border-radius: 14px !important;
  padding: 24px !important;
  position: relative !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
  box-sizing: border-box !important;
}

.rr-close {
  position: absolute !important;
  right: 12px !important;
  top: 10px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

#rr-modal-body .rr-loading {
  text-align: center;
  padding: 40px 0;
}

/* Header block */
.rr-product-head {
  display: grid !important;
  grid-template-columns: 190px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  margin-bottom: 34px !important;
}
.rr-product-image img {
  border-radius: 8px !important;
  display: block !important;
  height: 250px !important;
  margin-top: 18px !important;
  max-height: 250px !important;
  max-width: 190px !important;
  object-fit: contain !important;
  width: 190px !important;
}
.rr-product-meta {
  padding-top: 8px !important;
}
.rr-product-meta h3 {
  color: #6b6b6b !important;
  font-family: 'Playfair Display', Cambria, Georgia, serif !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  margin: 0 28px 8px 0 !important;
}

.rr-rating {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rr-rating .star-rating {
  color: #6b6b6b;
  float: none;
  font-size: 15px;
  height: 1em;
  line-height: 1;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 5.4em;
}

.rr-rating .star-rating::before,
.rr-rating .star-rating span::before {
  content: "\2605\2605\2605\2605\2605";
  left: 0;
  letter-spacing: 1px;
  position: absolute;
  top: 0;
}

.rr-rating .star-rating::before {
  opacity: 0.35;
}

.rr-rating .star-rating span {
  left: 0;
  overflow: hidden;
  padding-top: 1.5em;
  position: absolute;
  top: 0;
}

.rr-rating a {
  color: #35BCFB;
  font-size: 0.9em;
  text-decoration: none;
}

.rr-price {
  color: #958e09 !important;
  font-size: 1.35em !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  margin-bottom: 16px !important;
}

.rr-short-description {
  color: #6b6b6b !important;
  font-size: 0.92em !important;
  line-height: 1.45 !important;
  margin: 0 0 14px !important;
  max-width: 36em !important;
  overflow: hidden !important;
  max-height: calc(1.45em * 8);
}

.rr-short-description img.emoji,
.rr-short-description img.wp-smiley {
  display: inline !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 0.08em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  object-fit: contain !important;
  vertical-align: -0.12em !important;
}

.rr-short-description > *:first-child {
  margin-top: 0 !important;
}

.rr-short-description > *:last-child {
  margin-bottom: 0 !important;
}

.rr-short-description p,
.rr-short-description ul,
.rr-short-description ol {
  margin: 0 0 0.55em !important;
}

.rr-short-description ul,
.rr-short-description ol {
  padding-left: 1.25em !important;
}

.rr-short-description li {
  margin-bottom: 0.18em !important;
}

.rr-short-description strong,
.rr-short-description em {
  color: inherit;
}

.rr-short-description a,
.rr-short-description a:visited {
  color: #35BCFB !important;
  text-decoration: none;
}

.rr-short-description a:hover,
.rr-short-description a:focus {
  text-decoration: underline;
}

.rr-stock-state {
  color: #6b6b6b;
  margin-top: 8px;
}

.rr-stock-badge {
  margin-bottom: 10px;
}

.rr-stock-message {
  font-size: 0.95em;
  line-height: 1.45;
  margin: 0 0 14px;
}

.rr-free-pattern-signup {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 22px;
  padding-top: 18px;
}

.rr-free-pattern-intro,
.rr-free-pattern-note,
.rr-free-pattern-privacy,
.rr-free-pattern-missing {
  color: #6b6b6b;
  font-size: 0.95em;
  line-height: 1.45;
  margin: 0 0 14px;
}

.rr-free-pattern-intro {
  font-size: 1.02em;
}

.rr-free-pattern-note {
  font-style: italic;
}

.rr-free-pattern-privacy {
  font-size: 0.88em;
  margin-bottom: 0;
}

#rr-modal-body .rr-free-pattern-form {
  margin: 0 0 16px !important;
  text-align: center;
}

#rr-modal-body .rr-free-pattern-form form,
#rr-modal-body .rr-free-pattern-form .mailerlite-form,
#rr-modal-body .rr-free-pattern-form .mailerlite-wrapper {
  margin: 0 auto !important;
  max-width: 520px !important;
}

.rr-free-pattern-template {
  height: 1px;
  left: -99999px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.rr-free-pattern-template-slot {
  height: 1px;
  overflow: hidden;
  width: 1px;
}

#rr-modal-body.rr-free-pattern-modal .rr-product-head {
  margin-bottom: 20px !important;
}

.rr-read-more,
.rr-read-more:visited {
  background: #e7e2eb !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #555 !important;
  cursor: pointer !important;
  display: inline-block !important;
  font-family: 'Josefin Sans', Helmet, Freesans, sans-serif !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  padding: 11px 22px !important;
  text-decoration: none !important;
  width: auto !important;
}

#rr-modal-body .single_add_to_cart_button {
  background: #3E687C !important;
  border: 0 !important;
  border-radius: 20px !important;
  color: #fff !important;
  cursor: pointer !important;
  font-family: 'Josefin Sans', Helmet, Freesans, sans-serif !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  padding: 8px 14px !important;
  text-decoration: none !important;
}

.rr-product-meta .rr-read-more-wrap {
  display: flex !important;
  justify-content: flex-start !important;
}

.rr-read-more:hover,
.rr-read-more:focus,
#rr-modal-body .single_add_to_cart_button:hover,
#rr-modal-body .single_add_to_cart_button:focus {
  background: #35BCFB;
  color: #fff;
  text-decoration: none;
}

/* Confirmation */
.rr-confirm {
  color: #6b6b6b !important;
  text-align: center !important;
  padding: 30px 10px !important;
}

.rr-confirm p {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.rr-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-top: 10px !important;
}

#rr-modal-body .rr-actions .button,
#rr-modal-body .rr-actions .button:visited,
#rr-modal-body .rr-actions button.button {
  appearance: none;
  background: #3E687C;
  border: 0;
  border-radius: 20px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: 'Josefin Sans', Helmet, Freesans, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  padding: 10px 16px;
  text-decoration: none;
}

#rr-modal-body .rr-actions .button:hover,
#rr-modal-body .rr-actions .button:focus,
#rr-modal-body .rr-actions button.button:hover,
#rr-modal-body .rr-actions button.button:focus {
  background: #35BCFB;
  color: #fff;
  text-decoration: none;
}

#rr-modal-body .rr-actions .rr-checkout {
  background: #35BCFB;
  color: #fff;
}

#rr-modal-body .rr-actions .rr-checkout:hover,
#rr-modal-body .rr-actions .rr-checkout:focus {
  background: #249fda;
}

/* Variable product layout */
#rr-modal-body form.cart {
  clear: both !important;
  display: block !important;
  margin: 0 auto !important;
  max-width: 560px !important;
  text-align: center !important;
  width: 100% !important;
}

#rr-modal-body .variations {
  display: block !important;
  margin: 0 auto 4px !important;
  max-width: 420px !important;
  width: 100% !important;
}

#rr-modal-body .variations tbody,
#rr-modal-body .variations tr {
  display: block !important;
  width: 100% !important;
}

#rr-modal-body .variations th,
#rr-modal-body .variations td {
  display: block !important;
  padding: 0 0 8px !important;
  text-align: center !important;
}

#rr-modal-body .variations label {
  color: #6b6b6b !important;
  font-weight: 700 !important;
}

#rr-modal-body .variations select {
  display: block !important;
  margin: 0 auto !important;
  max-width: 280px !important;
  padding: 6px !important;
  width: 100% !important;
}

#rr-modal-body .single_variation_wrap {
  display: block !important;
  margin-top: 0 !important;
  text-align: center !important;
}

#rr-modal-body .woocommerce-variation-add-to-cart {
  align-items: center !important;
  display: flex !important;
  gap: 14px !important;
  justify-content: center !important;
}

#rr-modal-body .quantity {
  display: inline-block !important;
  margin-right: 8px !important;
}

#rr-modal-body .quantity .qty {
  box-sizing: border-box !important;
  padding: 6px !important;
  width: 64px !important;
}

@media (max-width: 480px) {
  .rr-modal-content {
    margin: 18px auto;
    padding: 18px;
  }

  .rr-product-head {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .rr-product-image img {
    height: auto !important;
    margin: 0 auto;
    max-height: 260px !important;
    max-width: 100% !important;
    width: auto !important;
  }

  .rr-product-meta {
    padding-top: 0;
  }

  .rr-product-meta h3 {
    margin-right: 0;
  }

  .rr-actions {
    flex-direction: column;
  }

  .rr-actions .button {
    box-sizing: border-box;
    text-align: center;
    width: 100%;
  }
}