.theme-text-center {
  text-align: center;
}

.theme-flex-1 {
  flex: 1;
}

.theme-box-1>.col-inner {
  padding: 56px 24px;
  background-color: #fff;
}

.theme-box-2>.col-inner {
  padding: 56px 47px;
  background-color: #fff;
}

.theme-box-3>.col-inner {
  padding: 142px 24px;
  background-color: #fff;
}

.theme-center {
  justify-content: center;
}

.theme-header-row {
  align-items: center;
  gap: 1rem;
  margin-bottom: 16px;
  flex-wrap: nowrap;
}

.theme-header-row>label,
.theme-popup-content {
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 0;
  color: #745d3b;
}

.theme-popup-wrapper {
  cursor: help;
}

.theme-popup-wrapper svg {
  overflow: visible;
}

.theme-popup-input {
  display: none !important;
}

.theme-popup-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 479px;
  max-width: calc(100% + 1.3em);
  background-color: #fff;
  border: 1px solid #707070;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0px 3px 10px #00000029;
  user-select: none;
  z-index: 2;
}

.theme-popup-wrapper:hover>.theme-popup-content,
.theme-popup-content:hover,
.theme-popup-wrapper:focus>.theme-popup-content,
.theme-popup-content:focus {
  display: block;
}

.theme-input-wrapper {
  border-radius: 100px;
  padding: 0 32px;
  border: 1px solid #6c734e;
  flex-flow: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.row.theme-input-wrapper {
  flex-wrap: nowrap;
}

.theme-input-wrapper>.col-inner {
  flex: 1;
  min-width: 0;
  width: auto;
}

.theme-input-spacer+.theme-input-spacer {
  margin-top: 32px;
}

select.theme-no-appearance {
  background-image: none;
}

input[type="date"].theme-no-appearance::-webkit-calendar-picker-indicator,
input[type="date"].theme-no-appearance::-webkit-inner-spin-button {
  display: none;
  -webkit-appearance: none;
}

.theme-input-date-wrapper {
  position: relative;
}

.theme-input-date-wrapper::after {
  content: "";
  background-color: var(--input-background, #fff);
  position: absolute;
  width: min(35%, 40px);
  height: 100%;
  top: 0px;
  right: 12px;
  transform: translateX(-100%);
}

.theme-input-wrapper>input,
.theme-input-wrapper>.col-inner>select,
.theme-input-wrapper>.col-inner>input {
  background: transparent;
  border: unset;
  outline: unset;
  box-shadow: unset;
  margin: unset;
  font-family: inherit;
  font-weight: 400;
  font-size: 20px;
  color: #DDB197;
}

.theme-input-wrapper>input:focus,
.theme-input-wrapper>.col-inner>select:focus,
.theme-input-wrapper>.col-inner>input:focus {
  box-shadow: unset;
}

.theme-input-wrapper input[type="date"] {
  position: relative;
  cursor: pointer;
}

.theme-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: calc(-29px + 0.75rem);
  bottom: 0;
  width: auto;
  height: auto;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.theme-input-wrapper input[type="date"]::-webkit-inner-spin-button {
  z-index: 1;
}

.theme-input-wrapper input[type="date"]::-webkit-clear-button {
  z-index: 1;
}

.theme-input-wrapper input[type="date"].--empty::after {
  content: "Pasirinkite datą";
  display: flex;
  align-items: center;
  position: absolute;
  left: 0.375rem;
  top: 0;
  bottom: 0;
  right: 0.375rem;
  padding: 0 0.75rem;
  background-color: #fff;
  pointer-events: none;
  color: #DDB197;
  font-weight: 400;
  font-size: 20px;
}

.theme-arrow-wrapper {
  position: absolute;
  inset: 0px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1em;
  pointer-events: none
}

.theme-arrow-wrapper.--hide-background::before {
  content: "";
  position: absolute;
  width: min(35%, 35px);
  height: calc(100% - 2px);
  top: 1px;
  bottom: 1px;
  background-color: var(--input-background, #fff);
  border-radius: 12px;
}

.theme-arrow {
  position: relative;
  top: -3px;
  border: solid #DDB197;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  height: 9px;
  width: 9px;
  pointer-events: none;
}

.theme-submit-wrapper {
  margin: 24px;
  justify-content: center;
}

.theme-submit-wrapper>.calculate {
  border-radius: 10px;
  padding: 16px 16px 16px 16px;
  width: 100%;
  max-width: 179px;
  justify-content: center;
  margin: unset;
}

.theme-result-wrapper+.theme-result-wrapper {
  margin-top: 32px;
}

.theme-result-wrapper>.col,
.theme-result-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-result-label {
  color: #745D3B;
  margin-bottom: 0;
  font-size: 18px;
}

.theme-button-wrapper {
  display: flex;
  margin-bottom: 0;
  align-items: center;
}

.theme-result {
  display: flex;
  justify-content: center;
  padding: 20px 40px;
  color: #6C734E;
  font-size: 18px;
  border-radius: 34px;
  background-color: #FBF7F6;
}

.theme-result>span {
  white-space: nowrap;
}

.theme-img-off-top {
  position: absolute;
  bottom: 24px;
}

@media (min-width: 851px) {
  .theme-large-6 {
    max-width: calc(50% - 10px);
  }

  .theme-large-8 {
    max-width: calc(66.66% - 10px);
  }

  .theme-large-4 {
    max-width: calc(33.33% - 10px);
  }
}

@media (max-width: 850px) {
  .theme-box-2>.col-inner {
    padding: 56px 24px;
  }

  .theme-box-3>.col-inner {
    padding-top: 56px;
    background-color: #fff;
  }
}

@media (max-width: 550px) {
  .theme-submit-wrapper {
    margin: unset;
    margin-top: 24px;
  }

  .theme-submit-wrapper>.calculate {
    max-width: unset;
    padding: 8px 12px;
  }

  .theme-result-wrapper>.col {
    flex-wrap: wrap;
    justify-content: center;
  }

  .theme-result-wrapper>.col>.theme-result-label {
    text-align: center;
  }

  .theme-result {
    padding: 8px 17px;
  }

  .theme-box-1>.col-inner {
    padding: 24px 1.3em;
    background-color: #fff;
  }

  .theme-box-2>.col-inner {
    padding: 24px 1.3em;
  }

  .theme-header-row>label,
  .theme-popup-content,
  .theme-input-wrapper>input,
  .theme-input-wrapper>.col-inner>select,
  .theme-input-wrapper>.col-inner>input {
    font-size: 18px;
  }

  .theme-text-center.--clear-sm {
    text-align: left;
  }

  .theme-sm-justify-between {
    justify-content: space-between;
  }

  .theme-sm-ml-auto {
    margin-left: auto;
  }
}

@media (max-width: 390px) {
  .theme-input-wrapper {
    flex-flow: wrap;
    justify-content: center;
    border-radius: 0;
    padding: 0;
    border: unset;
    gap: 1rem;
  }

  .theme-input-wrapper>input,
  .theme-input-wrapper>.col-inner>select,
  .theme-input-wrapper>.col-inner>input {
    border: 1px solid #6c734e;
    border-radius: 100px;
  }

  .theme-input-wrapper>input::after,
  .theme-input-wrapper>.col-inner>select::after,
  .theme-input-wrapper>.col-inner>input::after {
    border-radius: 100px;
  }

  .theme-arrow-wrapper {
    padding-right: 1.2em;
  }

  .theme-arrow {
    left: 7px;
  }
}

/* ── Menstrual cycle calculator ─────────────────────────────────── */

.mc-hidden {
  display: none;
}

@keyframes mc-fadein {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mc-fadein {
  animation: mc-fadein 0.35s ease both;
}

.mc-error {
  display: block;
  color: var(--fs-color-alert, #b20000);
  font-size: 13px;
  margin-top: 4px;
  min-height: 1.2em;
}

.mc-prefill-row {
  margin-top: 8px;
  text-align: center;
}

.mc-prefill-btn {
  background: none;
  border: none;
  color: var(--primary-color-dark, #6c734e);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

.mc-prefill-btn:hover {
  color: var(--primary-color, #adb690);
}

.mc-add-more-link {
  color: var(--primary-color-dark, #6c734e);
  font-size: 15px;
  text-decoration: underline;
}

.mc-add-more-link:hover {
  color: var(--primary-color, #adb690);
}