.photorecept-recipe-actions {
  margin: 26px 0 10px;
  text-align: center;
}

.photorecept-recipe-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.photorecept-recipe-actions__buttons > .photorecept-action-button {
  flex: 1 1 190px;
}

.photorecept-action-button {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 190px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid #2a5e5f;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: #2a5e5f !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.photorecept-action-button--save,
.photorecept-action-button--print {
  gap: 9px;
}

.photorecept-action-button--save::before,
.photorecept-action-button--print::before {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  content: "";
}

.photorecept-action-button--save::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.photorecept-action-button--print::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3Cpath d='M18 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3Cpath d='M18 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.photorecept-action-button--save,
.photorecept-action-button--save:hover,
.photorecept-action-button--save:focus-visible,
.photorecept-action-button--save.is-saved {
  border-color: #2a5e5f;
  background: #2a5e5f;
  color: #fff !important;
}

.photorecept-action-button--print:hover,
.photorecept-action-button--print:focus-visible {
  background: #ecf6f6;
}

.photorecept-action-button--cooked {
  gap: 9px;
  border-color: #2a5e5f;
  background: #fff;
  color: #2a5e5f !important;
}

.photorecept-action-button--cooked:hover,
.photorecept-action-button--cooked:focus-visible,
.photorecept-action-button--cooked.is-cooked {
  border-color: #2a5e5f;
  background: #ecf6f6;
  color: #2a5e5f !important;
}

.photorecept-cooked-icon {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  align-items: center;
  justify-content: center;
  border: 2px solid #2a5e5f;
  border-radius: 50%;
  background: transparent;
}

.photorecept-cooked-icon::after {
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.photorecept-action-button--cooked.is-cooked .photorecept-cooked-icon {
  border-color: #2a5e5f;
  background: #2a5e5f;
  color: #fff;
}

.photorecept-action-button:focus-visible {
  outline: 3px solid rgba(42, 94, 95, 0.25);
  outline-offset: 2px;
}

.photorecept-action-button:disabled,
.photorecept-action-button.is-loading {
  opacity: 0.65;
  cursor: wait;
}

.photorecept-favorite-status,
.photorecept-favorites-feedback {
  min-height: 22px;
  margin: 7px 0 0;
  color: #2a5e5f;
  font-size: 13px;
  line-height: 1.35;
}

.photorecept-favorite-status.is-error,
.photorecept-favorites-feedback.is-error {
  color: #a12424;
}

body.photorecept-modal-open {
  overflow: hidden;
}

.photorecept-save-modal[hidden] {
  display: none !important;
}

.photorecept-save-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 27, 28, 0.68);
}

.photorecept-save-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 590px);
  padding: 48px 38px 34px;
  border-top: 5px solid #2a5e5f;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.photorecept-save-modal__dialog:focus {
  outline: 0;
}

.photorecept-save-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0 !important;
  border-radius: 3px;
  background: transparent !important;
  box-shadow: none !important;
  color: #263031;
  cursor: pointer;
}

.photorecept-save-modal__close span::before,
.photorecept-save-modal__close span::after {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.photorecept-save-modal__close span::before {
  transform: rotate(45deg);
}

.photorecept-save-modal__close span::after {
  transform: rotate(-45deg);
}

.photorecept-save-modal__close:hover,
.photorecept-save-modal__close:focus-visible {
  background: transparent !important;
  color: #2a5e5f;
}

.photorecept-save-modal__close:focus-visible,
.photorecept-save-modal__register:focus-visible,
.photorecept-save-modal__login:focus-visible {
  outline: 3px solid rgba(42, 94, 95, 0.25);
  outline-offset: 2px;
}

.photorecept-save-modal h2 {
  margin: 0 42px 14px;
  color: #171b1c;
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.2;
}

.photorecept-save-modal p {
  max-width: 465px;
  margin: 0 auto 24px;
  color: #4b5354;
  font-size: 17px;
  line-height: 1.5;
}

.photorecept-save-modal__register,
.photorecept-save-modal__login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
}

.photorecept-save-modal__register {
  border: 1px solid #2a5e5f;
  border-radius: 5px;
  background: #2a5e5f;
  color: #fff !important;
  text-transform: uppercase;
}

.photorecept-save-modal__register:hover {
  border-color: #1e494a;
  background: #1e494a;
}

.photorecept-save-modal__login {
  width: max-content;
  min-height: 42px;
  margin: 8px auto 0;
  color: #2a5e5f !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.photorecept-favorites-page-content {
  width: min(calc(100% - 32px), 1180px);
  margin: 34px auto 60px;
}

.photorecept-favorites-header {
  margin-bottom: 24px;
  text-align: center;
}

.photorecept-favorites-header h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.photorecept-favorites-header p {
  margin: 0;
  color: #626869;
}

.photorecept-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.photorecept-favorites-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e5e3;
  border-radius: 10px;
  background: #fff;
}

.photorecept-favorites-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf1ef;
}

.photorecept-favorites-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photorecept-favorites-card__image:hover img {
  transform: scale(1.025);
}

.photorecept-favorites-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.photorecept-favorites-card h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.photorecept-favorites-card h2 a {
  color: #243031;
  text-decoration: none;
}

.photorecept-favorites-card h2 a:hover {
  color: #2a5e5f;
}

.photorecept-favorites-card__excerpt {
  flex: 1 1 auto;
  margin: 0 0 15px;
  color: #596061;
  font-size: 14px;
  line-height: 1.55;
}

.photorecept-favorites-card .photorecept-action-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  font-size: 14px;
}

.photorecept-favorites-empty,
.photorecept-favorites-login {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 10px;
  background: #ecf6f6;
  text-align: center;
}

.photorecept-favorites-login .photorecept-action-button {
  margin-top: 12px;
}

.photorecept-favorites-pagination {
  margin-top: 32px;
  text-align: center;
}

.photorecept-favorites-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 3px;
  padding: 5px 10px;
  border: 1px solid #dce3e1;
  border-radius: 6px;
  text-decoration: none;
}

.photorecept-favorites-pagination .current {
  border-color: #2a5e5f;
  background: #2a5e5f;
  color: #fff;
}

.photorecept-cooked-profile {
  box-sizing: border-box;
  width: min(100%, 1120px);
  margin: 44px auto 20px;
  padding-top: 30px;
  border-top: 1px solid #dfe7e5;
}

.photorecept-cooked-profile__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.photorecept-cooked-profile__header h2 {
  margin: 0 0 5px;
  font-size: clamp(25px, 3vw, 34px);
}

.photorecept-cooked-profile__header p {
  margin: 0;
  color: #626869;
}

.photorecept-cooked-profile__count {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: #e6f4f4;
  color: #24595a;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.photorecept-cooked-profile__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.photorecept-cooked-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e5e3;
  border-radius: 9px;
  background: #fff;
}

.photorecept-cooked-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf1ef;
}

.photorecept-cooked-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photorecept-cooked-card__image:hover img {
  transform: scale(1.025);
}

.photorecept-cooked-card__body {
  padding: 15px;
}

.photorecept-cooked-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.photorecept-cooked-card h3 a {
  color: #243031;
  text-decoration: none;
}

.photorecept-cooked-card h3 a:hover {
  color: #2a5e5f;
}

.photorecept-cooked-profile__empty {
  padding: 28px;
  border-radius: 8px;
  background: #ecf6f6;
  color: #4f5b5c;
  text-align: center;
}

@media (max-width: 900px) {
  .photorecept-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photorecept-cooked-profile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .photorecept-recipe-actions__buttons {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 9px;
  }

  .photorecept-action-button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }

  .photorecept-favorites-page-content {
    margin-top: 24px;
  }

  .photorecept-favorites-grid {
    grid-template-columns: 1fr;
  }

  .photorecept-cooked-profile {
    margin-top: 32px;
  }

  .photorecept-cooked-profile__header {
    flex-direction: column;
    gap: 12px;
  }

  .photorecept-cooked-profile__grid {
    grid-template-columns: 1fr;
  }

  .photorecept-save-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .photorecept-save-modal__dialog {
    padding: 48px 20px 24px;
  }

  .photorecept-save-modal h2 {
    margin-right: 28px;
    margin-left: 28px;
  }

  .photorecept-save-modal p {
    font-size: 15px;
  }
}

@media print {
  .photorecept-recipe-actions,
  .photorecept-favorites-page-content {
    display: none !important;
  }
}
