/* ============================================================
   BUILD YOUR RING — 3-step wizard ([enchriso_build_your_ring])
   ============================================================ */

.page-id-45338 .page-header-wrapper{
    max-width: 1890px;
    padding: 30px 13px;
    margin: auto;
}
.enchriso-byr .enchriso-byr__steps{
	max-width: 1890px;
    padding: 40px 13px;
    margin: auto;
}
.enchriso-byr {
  margin-bottom: 40px;
}

.enchriso-byr__notice {
  background: #f8d7da;
  color: #58151c;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* --- Step progress header --- */
.enchriso-byr__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.enchriso-byr__stone-main.is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}


.enchriso-byr__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.4;
}

.enchriso-byr__step.is-active,
.enchriso-byr__step.is-done {
  opacity: 1;
}

.enchriso-byr__step-num {
  font-size: 30px;
  letter-spacing: 0.05em;
}

.enchriso-byr__step-label {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000;
  margin-top: 4px;
}

.enchriso-byr__step-line {
  width: 90px;
  max-width: 12vw;
  height: 1px;
  background: #d6d2cc;
  margin: 0 16px;
  position: relative;
  top: -10px;
}

.enchriso-byr__step-line.is-done {
  background: #1a1a1a;
}
.enchriso-byr__step-line.is-done::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;

    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-weight: 600;
}
/* --- Step 2: results/sort toolbar + always-visible filters sidebar --- */
.enchriso-byr__filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  align-content: center;
  justify-content: flex-end;
}

.enchriso-byr__results-count {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #000000;
  text-transform: uppercase;
}

.enchriso-byr__sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom:0px;
  position: relative;
}
.enchriso-byr__sort-box{
    position: relative;	
}
.enchriso-byr__sort-label {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 0 6px;
    background: #efece4;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.enchriso-byr__sort-select {
    border: 1px solid #d6d2cc;
    background: #f7f6f2;
    padding: 15px;
    font-size: 13px;
    height: unset;
	margin-bottom:0;
}

/* Step 2's two-column layout: filters sidebar (always visible) + results/toolbar. */
.enchriso-byr__body {
    background: #f7f6f2;
    border-top: 1px solid #000;
}
.row.enchriso-byr__grid{
	padding: 30px 0;	
}
.enchriso-byr__stone-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 30px 13px;
  max-width: 1890px;
  margin:auto;
}

.enchriso-byr__stone-main {
  flex: 1 1 auto;
  min-width: 0;
}

.enchriso-byr__filters-sidebar {
  flex: 0 0 30%;
  max-width: 400px;
  background: #f7f6f2;
  padding: 15px;
  border: 1px solid #000;
}

.enchriso-byr__filters-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0ddd8;
}

.enchriso-byr__filters-section-title {
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.enchriso-byr__range-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.enchriso-byr__range-inputs input[type="number"] {
  width: 0;
  flex: 1 1 auto;
  border: 1px solid #d6d2cc;
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
}

.enchriso-byr__range-sep {
  color: #979797;
}

.enchriso-byr__toggle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enchriso-byr__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6d2cc;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}

/* Driven entirely by the checkbox's real checked state (via :has()), not a server-rendered
   class — otherwise re-clicking a chip after a page reload couldn't visually un-highlight it,
   since a static class doesn't know the checkbox was just unchecked. */
.enchriso-byr__toggle:has(.enchriso-byr__toggle-input:checked) {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.enchriso-byr__toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.enchriso-byr__filters-apply {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .5s;
  border: 1px solid #000;
  font-weight: 500;
}
.enchriso-byr__filters-apply:hover {
    background: transparent;
    color: #000;	
}
.enchriso-byr__filters-reset {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.enchriso-byr__reset-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  text-decoration: underline;
}

.enchriso-byr__empty {
  padding: 40px 0;
  text-align: center;
  color: #6b6b6b;
}

/* --- Step 1: ring grid --- */
.enchriso-byr__card {
  margin-bottom: 30px;
}

.enchriso-byr__card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.enchriso-byr__card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f7f6f2;
}

.enchriso-byr__card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.enchriso-byr__select-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.enchriso-byr__card-link:hover .enchriso-byr__select-overlay,
.enchriso-byr__stone-row:hover .enchriso-byr__select-overlay {
  transform: translateY(0);
}

.enchriso-byr__card-info {
  display: block;
  padding-top: 12px;
}

.enchriso-byr__card-code {
  display: block;
  font-size: 12px;
  color: #979797;
  margin-bottom: 4px;
}

.enchriso-byr__card-title {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.enchriso-byr__card-price {
  display: block;
  font-size: 18px;
}

/* --- Step 2: stone list --- */
.enchriso-byr__stone-list {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow: auto;
}

.enchriso-byr__stone-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid #e0ddd8;
    margin-bottom: 10px;
    margin-right: 10px;
    color: inherit;
    text-decoration: none;
    flex-wrap: wrap;
    background: #f6f4f0;
	transition: .5s;
}

.enchriso-byr__stone-row:hover {
  border-color: #000;
}

.enchriso-byr__stone-thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #f7f6f2;
}

.enchriso-byr__stone-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.enchriso-byr__stone-thumb .enchriso-byr__select-overlay {
  font-size: 10px;
  padding: 6px 0;
}

.enchriso-byr__stone-attr {
  display: flex;
  flex-direction: column;
  min-width: 70px;
}

.enchriso-byr__stone-attr-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #979797;
}

.enchriso-byr__stone-attr-value {
  font-size: 14px;
}

.enchriso-byr__stone-price {
  margin-left: auto;
  font-size: 18px;
}

/* --- Pagination --- */
.enchriso-byr__pagination ul {
  display: flex;
  list-style: none;
  gap: 6px;
  margin: 30px 0 0;
  padding: 0;
  justify-content: center;
}

.enchriso-byr__pagination a,
.enchriso-byr__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.enchriso-byr__pagination .current {
  color: #000;
  font-weight: 600;
}
.enchriso-byr__pagination .arrow-icon {
	font-size: 1.2em;
    top: -1px;
    vertical-align: middle;
}
.enchriso-byr__pagination .arrow-icon:before {
    font-size: 30px !important;
}
/* --- Bottom bar --- */
.enchriso-byr__bottom-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 10px 30px;
  border-top: 1px solid #000;
  width: 100%;
  background: #efece4;
}
.enchriso-byr__bottom-bar.sticky{
	position: sticky;
    bottom: 0;
}
.enchriso-byr__back-btn {
	flex: 0 0 auto;
    padding: 12px 30px;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: #000;
	transition: .5s all;
	border: 1px solid #000;
}
.enchriso-byr__back-btn:hover {
    background: transparent;
    color: #000;
}
.enchriso-byr__back-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.enchriso-byr__progress {
  flex: 1 1 auto;
  height: 2px;
  background: #e0ddd8;
}

.enchriso-byr__progress span {
  display: block;
  height: 100%;
  background: #000;
}

/* --- Step 3: result overview --- */
.enchriso-byr__result-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.enchriso-byr__result-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.enchriso-byr__result-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #979797;
  margin-bottom: 8px;
}

.enchriso-byr__result-title {
  font-size: 24px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.enchriso-byr__result-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.enchriso-byr__result-price {
  font-size: 28px;
}

.enchriso-byr__result-perks {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  font-size: 13px;
}

.enchriso-byr__result-perks .icon-box-text {
    font-size: 16px;
}
.enchriso-byr__result-perks .icon-box{
	align-items: center;
    align-content: center;
}
.enchriso-byr__result-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #e0ddd8;
}

.enchriso-byr__result-line:last-of-type {
  border-bottom: 1px solid #e0ddd8;
}

.enchriso-byr__result-line img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.enchriso-byr__result-line-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.enchriso-byr__result-line-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #979797;
}

.enchriso-byr__result-line-name {
  font-size: 14px;
}

.enchriso-byr__result-line-price {
  flex: 0 0 auto;
  font-size: 14px;
}

.enchriso-byr__edit-step {
  flex: 0 0 auto;
  border: 1px solid #1a1a1a;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  transition: .5s;
}

.enchriso-byr__edit-step:hover {
  background: #1a1a1a;
  color: #fff;
}

.enchriso-byr__size-field {
  margin-top: 20px;
  max-width: 300px;
}

.enchriso-byr__size-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.enchriso-byr__size-field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d6d2cc;
  background-color: #f7f6f2;
  font-size: 14px;
  margin-bottom: 0;
}
/* Size + ring (gold) color dropdowns side by side; they wrap onto two lines on very narrow screens. */
.enchriso-byr__options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-bottom: 8px;
}

.enchriso-byr__options-row .enchriso-byr__size-field {
  flex: 1 1 150px;
  min-width: 0;
  max-width: 300px;
}

.enchriso-byr__size-guide {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- Step 3: optional engraving ---
   Checkbox "I want an engraving" that reveals a max-30-char text field + counter
   (markup: enchriso_byr_render_engraving_field() in byr-frontend.php). The text field
   reuses the size dropdown's look (same border, background, height, label style). */
.enchriso-byr__engraving {
  max-width: 300px;
  margin-bottom: 20px;
}

.enchriso-byr__engraving-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}

.enchriso-byr__engraving-toggle input[type="checkbox"] {
  margin: 0;
  accent-color: #000;
}

.enchriso-byr__engraving-field {
  margin-top: 12px;
}

/* Hidden until the box is ticked — set explicitly so no theme display rule can override [hidden]. */
.enchriso-byr__engraving-field[hidden] {
  display: none;
}

.enchriso-byr__engraving-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.enchriso-byr__engraving-field input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d6d2cc;
  background-color: #f7f6f2;
  font-size: 14px;
  margin-bottom: 0;
  box-shadow: none;
}

/* Live "12/30" character counter under the field. */
.enchriso-byr__engraving-count {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 12px;
  color: #979797;
}

.enchriso-byr__add-to-cart-form {
  margin-top: 20px;
  margin-bottom: 0;
}

.enchriso-byr__result-panel .enchriso-byr__add-to-cart-btn {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding-top: 8px;
  padding-bottom: 8px;
}

.enchriso-byr__result-panel .enchriso-byr__contact-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  background:transparent;
  border:1px solid #000;
  color:#000;
}
.enchriso-byr__shipping-accordion {
  margin-top: 10px;
  border-top: 1px solid #e0ddd8;
  border-bottom: 1px solid #e0ddd8;
}

.enchriso-byr__result-panel {
    padding: 30px !important;
}
/* --- Responsive --- */
@media (max-width: 850px) {
  .enchriso-byr__result-image {
    margin-bottom: 24px;
  }

  .enchriso-byr__step-label {
    display: none;
  }

  .enchriso-byr__stone-row {
    gap: 14px;
  }

  .enchriso-byr__stone-attr {
    min-width: 60px;
  }

  .enchriso-byr__stone-layout {
    flex-direction: column;
  }

  .enchriso-byr__filters-sidebar, .enchriso-byr__stone-main {
    width: 100%;
	  max-width:unset;
  }
  .enchriso-byr__step-line{
		top: 0 !important;
  }
  .enchriso-byr__step-num {
    font-size: 25px;
  }
}

@media (max-width: 549px) {
  .enchriso-byr__stone-attr:first-of-type {
    display: none;
  }

  .enchriso-byr__sort-form {
    margin-left: 0;
    justify-content: space-between;
  }
  .enchriso-byr__step-num {
    font-size: 14px;
  }
  .enchriso-byr__step-line{
	width: 3vw !important;
  	top: 0px!important;
	margin: 0 2vw !important;
  }
  .enchriso-byr__step-line.is-done{
	width: 0px !important;
  	top: 0px!important;
	margin: 0 5vw !important;
  }
  .enchriso-byr__step-line.is-done::after{
	width: 15px!important;
    height: 15px!important;
	font-size: 8px!important;
	line-height: 15px!important;
  }

  /* Step 3 summary rows (RING / DIAMOND): on phones the four items (thumb, name, price,
     EDIT STEP) didn't fit on one line — the long, non-wrapping "EDIT STEP" button (esp. the
     Greek "ΕΠΕΞΕΡΓΑΣΙΑ ΒΗΜΑΤΟΣ", ~166px) squeezed the name column down to ~20px, so the
     product name broke one letter per line. Fix: let the row wrap into two lines —
     thumb + name on the first, price + EDIT STEP on the second. */
  .enchriso-byr__result-line {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  /* Name takes all the space next to the thumbnail (56px img + 14px gap = 70px),
     which pushes price + button down to the second line. */
  .enchriso-byr__result-line-info {
    flex: 1 1 calc(100% - 70px);
  }

  /* Second line: price lined up under the name, EDIT STEP pushed to the right edge. */
  .enchriso-byr__result-line-price {
    margin-left: 70px;
  }

  .enchriso-byr__edit-step {
    margin-left: auto;
  }
}

/* --- Intro text above the steps + step 2 filter (i) explanations (2026-11-16) --- */
.enchriso-byr__intro {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 0 13px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}
.enchriso-byr__intro p {
  margin-bottom: 12px;
}
.enchriso-byr__intro p:last-child {
  margin-bottom: 0;
}

.enchriso-byr__filters-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.enchriso-byr .enchriso-byr__info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 0;
  line-height: 16px !important;
  margin: 0;
  padding: 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: transparent;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
}
.enchriso-byr .enchriso-byr__info-btn:hover,
.enchriso-byr .enchriso-byr__info-btn[aria-expanded="true"] {
  background: #000;
  color: #fff;
}
.enchriso-byr__info-panel {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e0ddd8;
  font-size: 13px;
  line-height: 1.6;
}
.enchriso-byr__info-panel[hidden] {
  display: none;
}
.enchriso-byr__info-panel-title {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.enchriso-byr__info-panel p {
  margin: 0;
}
