.wedding-gift,
.wedding-wishes {
  float: left;
  width: 100%;
}

.wedding-gift {
  background:
    radial-gradient(circle at 85% 15%, rgba(118, 24, 42, 0.32), transparent 40%),
    #0c0c0c;
}

.wedding-gift .wd_heading h4,
.wedding-wishes .wd_heading h4 {
  color: #efbfbf;
}

.wedding-gift__card {
  clear: both;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(239, 191, 191, 0.35);
  background-color: rgba(69, 15, 28, 0.28);
  color: #ffffff;
  text-align: center;
}

.wedding-gift__icon {
  display: block;
  margin-bottom: 20px;
  color: #efbfbf;
  font-size: 38px;
}

.wedding-gift__intro {
  max-width: 580px;
  margin: 0 auto 32px;
  color: #f1e3e3;
  font-size: 18px;
  line-height: 1.7;
}

.wedding-gift__accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.wedding-gift__account {
  padding: 22px;
  border: 1px solid rgba(239, 191, 191, 0.42);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.62);
}

.wedding-gift__account h3 {
  margin: 0 0 20px;
  color: #efbfbf;
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.wedding-gift__account dl {
  margin: 0;
}

.wedding-gift__account dl div + div {
  margin-top: 14px;
}

.wedding-gift__account dt {
  margin-bottom: 4px;
  color: #cba6a8;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wedding-gift__account dd {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.wedding-wishes {
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 24, 42, 0.18), transparent 52%),
    #141414;
}

.wedding-wishes .container {
  width: 100%;
  max-width: none;
}

.wedding-wishes__intro {
  clear: both;
  margin-bottom: 54px;
  color: #e9d5d5;
  text-align: center;
}

.wedding-wishes__intro button,
.wedding-wishes__form button {
  min-width: 190px;
  padding: 14px 28px;
  border: 1px solid #efbfbf;
  border-radius: 100px;
  background-color: #76182a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  transition: background-color 180ms ease, transform 180ms ease;
}

.wedding-wishes__intro button:hover,
.wedding-wishes__form button:hover {
  background-color: #9c686a;
  transform: translateY(-2px);
}

.wedding-wishes__feed {
  clear: both;
  width: 100%;
}

.wedding-wishes__feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wedding-wishes__feed-header[hidden],
.wedding-wishes__list[hidden],
.wedding-wishes__empty[hidden] {
  display: none;
}

.wedding-wishes__empty {
  display: grid;
  min-height: 230px;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 24px;
  place-content: center;
  border: 1px solid rgba(239, 191, 191, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(156, 104, 106, 0.2), transparent 60%),
    linear-gradient(145deg, #301920, #1d1518 80%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: #efbfbf;
  text-align: center;
  animation: wedding-wishes-empty-in 550ms ease-out both;
}

.wedding-wishes__empty-icon {
  font-size: 54px;
  line-height: 1;
}

.wedding-wishes__empty p {
  margin: 18px 0 0;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(20px, 3vw, 26px);
}

@keyframes wedding-wishes-empty-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.wedding-wishes__list-status {
  margin: 0;
  color: #cba6a8;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.wedding-wishes__controls {
  display: flex;
  gap: 10px;
}

.wedding-wishes__controls button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(239, 191, 191, 0.55);
  border-radius: 50%;
  background: transparent;
  color: #efbfbf;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease;
}

.wedding-wishes__controls button:not(:disabled):hover {
  background-color: #efbfbf;
  color: #450f1c;
}

.wedding-wishes__controls button:disabled {
  cursor: default;
  opacity: 0.35;
}

.wedding-wishes__list {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.wedding-wishes__list::-webkit-scrollbar {
  display: none;
}

.wedding-wish {
  display: flex;
  flex: 0 0 calc(25% - 13.5px);
  flex-direction: column;
  height: 290px;
  padding: 26px 28px;
  border: 1px solid rgba(239, 191, 191, 0.4);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(156, 104, 106, 0.25), transparent 48%),
    linear-gradient(145deg, #301920, #1d1518 80%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  scroll-snap-align: start;
}

.wedding-wish::before {
  content: "\201C";
  height: 40px;
  color: #efbfbf;
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 1;
}

.wedding-wish h3 {
  order: 2;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(239, 191, 191, 0.22);
  color: #efbfbf;
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.wedding-wish h3::before {
  content: "\2665";
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  place-items: center;
  border: 1px solid rgba(239, 191, 191, 0.4);
  border-radius: 50%;
  color: #efbfbf;
  font-size: 12px;
  vertical-align: middle;
}

.wedding-wish p {
  flex: 1;
  order: 1;
  margin: 8px 0 0;
  overflow-y: auto;
  padding-right: 6px;
  color: #f1e3e3;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  scrollbar-color: rgba(239, 191, 191, 0.35) transparent;
  scrollbar-width: thin;
  white-space: pre-wrap;
}

.wedding-wish p::-webkit-scrollbar {
  width: 4px;
}

.wedding-wish p::-webkit-scrollbar-track {
  background: transparent;
}

.wedding-wish p::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(239, 191, 191, 0.35);
}

.wedding-wishes__dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: min(90vh, 760px);
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgba(239, 191, 191, 0.5);
  border-radius: 18px;
  background: #21171a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

.wedding-wishes__dialog[open] {
  animation: wedding-wish-open 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wedding-wishes__dialog::backdrop {
  background: rgba(4, 2, 3, 0.8);
  backdrop-filter: blur(5px);
}

.wedding-wishes__dialog[open]::backdrop {
  animation: wedding-wish-backdrop-in 360ms ease both;
}

.wedding-wishes__dialog[open].is-closing {
  animation: wedding-wish-close 300ms ease-in both;
}

.wedding-wishes__dialog[open].is-closing::backdrop {
  animation: wedding-wish-backdrop-out 300ms ease-in both;
}

@keyframes wedding-wish-open {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes wedding-wish-close {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
  }
}

@keyframes wedding-wish-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wedding-wish-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.wedding-wishes__dialog-content {
  position: relative;
  padding: clamp(28px, 5vw, 46px);
  background: radial-gradient(circle at 100% 0%, rgba(118, 24, 42, 0.3), transparent 55%);
}

.wedding-wishes__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(239, 191, 191, 0.5);
  border-radius: 50%;
  background: transparent;
  color: #efbfbf;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.wedding-wishes__dialog h2 {
  margin: 0 0 12px;
  color: #efbfbf;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(27px, 5vw, 34px);
  font-weight: 400;
}

.wedding-wishes__form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.wedding-wishes__form label {
  color: #efbfbf;
  font-size: 15px;
}

.wedding-wishes__form input:not([type="hidden"]),
.wedding-wishes__form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #9c686a;
  border-radius: 4px;
  background-color: #141414;
  color: #ffffff;
  font: inherit;
}

.wedding-wishes__form textarea {
  min-height: 140px;
  resize: vertical;
}

.wedding-wishes__form input:focus-visible,
.wedding-wishes__form textarea:focus-visible,
.wedding-wishes__form button:focus-visible,
.wedding-wishes__intro button:focus-visible,
.wedding-wishes__controls button:focus-visible,
.wedding-wishes__close:focus-visible,
.wedding-wishes__list:focus-visible {
  outline: 2px solid #efbfbf;
  outline-offset: 2px;
}

.wedding-wishes__form .wedding-wishes__honey {
  display: none;
}

.wedding-wishes__form button {
  justify-self: start;
}

.wedding-wishes__form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.wedding-wishes__status {
  min-height: 24px;
  margin: 18px 0 0;
  color: #efbfbf;
}

.wedding-wishes__status.is-error {
  color: #ffb5b5;
}

@media (min-width: 1600px) {
  .wedding-wish {
    flex-basis: calc(20% - 14.4px);
  }
}

@media (min-width: 2200px) {
  .wedding-wish {
    flex-basis: calc(16.6667% - 15px);
  }
}

@media (min-width: 3000px) {
  .wedding-wish {
    flex-basis: calc(12.5% - 15.75px);
  }
}

@media (max-width: 1199px) {
  .wedding-wish {
    flex-basis: calc(33.3333% - 12px);
  }
}

@media (max-width: 991px) {
  .wedding-wish {
    flex-basis: calc(50% - 9px);
  }
}

@media (max-width: 600px) {
  .wedding-gift__accounts {
    grid-template-columns: 1fr;
  }

  .wedding-wishes__intro {
    margin-bottom: 42px;
  }

  .wedding-wish {
    flex-basis: min(82vw, 320px);
  }

  .wedding-wishes__feed-header {
    align-items: flex-end;
  }

  .wedding-wishes__list-status {
    max-width: 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wedding-wishes__empty {
    animation: none;
  }

  .wedding-wishes__dialog[open],
  .wedding-wishes__dialog[open]::backdrop,
  .wedding-wishes__dialog[open].is-closing,
  .wedding-wishes__dialog[open].is-closing::backdrop {
    animation: none;
  }

  .wedding-wishes__list {
    scroll-behavior: auto;
  }

  .wedding-wishes__intro button,
  .wedding-wishes__form button,
  .wedding-wishes__controls button {
    transition: none;
  }
}
