/* Birthday card only. Does not restyle other landings. */
.sw-bday { max-width: 100%; min-width: 0; }
.sw-bday__path {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.sw-bday__path li {
  margin: 0;
  padding: 6px 10px;
  border: 2px solid #ff7a18;
  border-radius: 999px;
  background: #fff;
  color: #3b1408;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
#sozdat-otkrytku .sw-sale__check input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 22px;
  border: 2px solid #c2410c !important;
  border-radius: 6px;
  background: #fff !important;
  position: relative;
  opacity: 1 !important;
  cursor: pointer;
}
#sozdat-otkrytku .sw-sale__check input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #c2410c;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.sw-bday__h { margin: 14px 0 8px; font-size: 18px; }
.sw-bday__file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; max-width: 100%; }
.sw-bday__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.sw-bday__file-btn {
  display: inline-flex;
  align-items: center;
  border: 2px solid #f3d7c4;
  border-radius: 16px;
  background: #fff;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.sw-bday__file-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.sw-bday__tags { margin: 0 0 8px; font-weight: 800; word-break: break-word; }
.sw-bday__frames,
.sw-bday__wishes { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 12px; min-width: 0; }
.sw-bday__frame,
.sw-bday__wish,
.sw-bday__share a,
.sw-bday__share button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
  text-decoration: none;
  color: #2d3436;
  background: #fff;
  border: 2px solid #f3d7c4;
  border-radius: 16px;
  padding: 8px 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
}
.sw-bday__frame canvas {
  width: 54px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff4e8;
}
.sw-bday__frame.is-on,
.sw-bday__wish.is-on { border-color: #c2410c; background: #fff4e8; }
.sw-bday__stage {
  position: relative;
  display: block;
  max-width: 440px;
  margin: 0 0 12px;
}
.sw-bday__stage .sw-sale__canvas { margin: 0; max-width: 100%; }
.sw-bday__veil {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(255, 244, 232, 0.94);
  color: #3b2218;
  font-weight: 800;
  border-radius: 18px;
}
.sw-bday__stage.is-shield .sw-bday__veil { display: flex; }
.sw-bday__stage.is-shield canvas { filter: blur(18px); }
.sw-bday__crop.is-shield .sw-bday__preview { filter: blur(18px); }
.sw-bday__crop {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  min-width: 0;
}
.sw-bday__crop.is-on { display: flex; }
.sw-bday__preview {
  flex: 1 1 auto;
  width: calc(100% - 108px);
  max-width: 320px;
  height: auto;
  border-radius: 18px;
  background: #fff4e8;
}
.sw-bday__nudge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 96px;
  flex: 0 0 96px;
  margin: 0;
  min-width: 0;
}
.sw-bday__nudge-label { margin: 0; font-weight: 700; line-height: 1.25; }
.sw-bday__nudge-row { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.sw-bday__nudge-row button {
  flex: 1 1 0;
  min-width: 0;
  border: 2px solid #f3d7c4;
  border-radius: 16px;
  background: #fff;
  color: #2d3436;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}
.sw-bday__nudge input[type="range"] {
  width: 28px;
  height: 120px;
  margin: 0 auto;
  accent-color: #c2410c;
  writing-mode: vertical-lr;
  direction: rtl;
}
.sw-bday .is-need input,
.sw-bday .is-need textarea {
  outline: 3px solid #c2410c;
  outline-offset: 2px;
  background: #fff1e6;
}
.sw-bday__share { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sw-bday__share a,
.sw-bday__share button { width: auto; cursor: pointer; font: inherit; }
#sozdat-otkrytku { scroll-margin-top: 88px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .sw-bday__frames,
  .sw-bday__wishes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .sw-bday__frames { grid-template-columns: 1fr 1fr 1fr; }
  .sw-bday__wishes { grid-template-columns: 1fr 1fr; }
}
@media print {
  .sw-bday__stage,
  .sw-bday__crop { visibility: hidden; }
}
