[data-spf-order-slot], .spf-order-dialog-inner { container-type: inline-size; }
[data-spf-order-slot] { width: min(1040px, calc(100% - 24px)); margin: 40px auto; }
.spf-order-dialog {
  width: min(1040px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 17px;
  overflow: auto;
  background: #fffdf9;
}
.spf-order-dialog::backdrop { background: #24170fb3; }
.spf-order-dialog .spf-order { border-radius: 0; box-shadow: none; }
.button-style5[data-spf-start]:focus,
.button-style2[data-spf-order-open="question"]:focus {
  background-color: #fff;
  color: #704b2b;
  transition: none;
}
.button-style5[data-spf-start]:focus::after,
.button-style2[data-spf-order-open="question"]:focus::after { content: none; }
.button-style5[data-spf-start]:focus-visible,
.button-style2[data-spf-order-open="question"]:focus-visible {
  outline: 2px solid #805a31;
  outline-offset: 3px;
}
body:has(.spf-order-dialog[open]) { overflow: hidden; }
.spf-order-dialog-inner[data-spf-order-slot] { min-height: 80px; width: 100%; margin: 0; }
.spf-order-dialog-close {
  position: absolute;
  transform: translateX(-100%);
  left: calc(100% - 10px);
  top: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e4d7c9;
  background: #fff9f0;
  color: #5b3d24;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.spf-order-dialog [data-spf-order-status] { padding: 25px 58px 25px 22px; margin: 0; }
.spf-order :where([hidden]) { display: none !important; }
.spf-order input, .spf-order textarea, .spf-order select, .spf-order button { font: inherit; }
.spf-order-submit { cursor: pointer; }
.spf-order-error { color: #942925; margin: 4px 0 0; font-size: .9rem; }
.spf-order-dialog:has([data-spf-order-success]) {
  width: min(460px, calc(100% - 24px));
}
.spf-order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px clamp(18px, 6vw, 44px) 32px;
  background: radial-gradient(ellipse at 50% 0, #f5ead9, #fffdf9 70%);
  border-radius: 17px;
  color: #30261d;
  text-align: center;
}
.spf-order-dialog .spf-order-success { border-radius: 0; }
.spf-order-success-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border: 1px solid #e1cbb0;
  border-radius: 50%;
  background: #f4e6d2;
  color: #684426;
}
.spf-order-success-mark::before {
  content: '';
  width: 13px;
  height: 23px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: translateY(-2px) rotate(45deg);
}
.spf-order-success h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
}
.spf-order-success p {
  max-width: 30ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #604e3e;
}
.spf-order-success-done { display: none; }
.spf-order-dialog .spf-order-success-done {
  display: block;
  width: 100%;
  max-width: 230px;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 24px;
  border: 0;
  border-radius: 9px;
  background: #684426;
  color: #fffaf4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.spf-order-success-done:hover { background: #53351d; }
.spf-order-success-done:focus-visible { outline: 2px solid #916638; outline-offset: 2px; }
.spf-order {
  --accent: #8b5f37;
  --accent-dark: #684426;
  --text-muted: #6e5d4f;
  display: grid;
  grid-template-columns: minmax(280px, .84fr) minmax(450px, 1.16fr);
  border-radius: 21px;
  background: #fffdf9;
  box-shadow: 0 24px 66px #553c2222, 0 2px 4px #51382013;
  overflow: hidden;
}
.spf-order-context {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: 466px;
  padding: 36px 38px;
  background: radial-gradient(ellipse 330px 265px at 77% 83%, #f2e3cd 0%, #f2e3cd00 100%),
              linear-gradient(142deg, #3a2a21, #4e3a2e 63%, #79583d);
  color: #fff9f0;
}
.spf-order-caption { position: relative; z-index: 1; }
.spf-order-caption img { width: 102px; height: auto; display: block; }
.spf-order-caption h2 { max-width: 255px; margin: 26px 0 12px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; }
.spf-order-caption p { margin: 0; color: #f1dcc2; font-size: 1.06rem; line-height: 1.42; max-width: 320px; }
.spf-order-photo { position: absolute; bottom: -70px; right: 0; width: min(270px, 70%); height: auto; pointer-events: none; }
.spf-order-form { display: grid; align-content: center; gap: 19px; padding: 36px 42px; min-width: 0; }
.spf-order-form label { display: block; font-size: .94rem; font-weight: 700; margin: 0 0 7px; }
.spf-order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spf-order-fields > div { min-width: 0; }
.spf-order-form input:not([type=checkbox]), .spf-order-form select, .spf-order-form textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  min-height: 47px;
  border: 1px solid #d7c9ba;
  border-radius: 9px;
  color: #30261d;
  background: #fff;
  line-height: 1.4;
}
.spf-order-form input::placeholder, .spf-order-form textarea::placeholder { color: #786b61; }
.spf-order-form textarea { resize: vertical; }
.spf-order-select { position: relative; }
.spf-order-select::after {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  top: 50%;
  right: 17px;
  transform: translateY(-70%) rotate(45deg);
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  pointer-events: none;
}
.spf-order-form select { appearance: none; padding-right: 36px; }
.spf-order-date { background: #f9f2e7; border: 1px solid #eadcc9; border-radius: 12px; padding: 15px 16px 13px; }
.spf-order-date-label { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.spf-order-date-label label { margin: 0; }
.spf-order-calendar { position: relative; display: inline-block; width: 16px; height: 15px; border: 1.5px solid var(--accent); border-radius: 3px; flex: none; }
.spf-order-calendar::before { content: ''; position: absolute; inset: 4px 0 auto; border-top: 1.5px solid var(--accent); }
.spf-order-calendar::after { content: ''; position: absolute; top: -4px; left: 3px; right: 3px; height: 5px; border-inline: 1.5px solid var(--accent); }
.spf-order-hint { margin: 8px 0 0; font-size: .87rem; line-height: 1.42; color: var(--text-muted); }
.spf-order-hint:empty { display: none; }
.spf-order-consent { display: flex; gap: 9px; align-items: flex-start; }
.spf-order-form .spf-order-consent label { margin: 0; font-size: .88rem; line-height: 1.45; font-weight: 400; color: #40342a; }
.spf-order-consent input { accent-color: var(--accent-dark); width: 17px; height: 17px; margin: 1px 0 0; flex: none; }
.spf-order-consent a { color: var(--accent-dark); text-decoration-color: #b3987c; text-underline-offset: 2px; }
.spf-order-policy { margin: 5px 0 0; font-size: .84rem; line-height: 1.4; }
.spf-order-submit {
  min-height: 51px;
  padding: 12px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--accent-dark);
  color: #fffaf4;
  font-weight: 700;
}
.spf-order-submit:enabled:hover { background: #53351d; }
.spf-order-submit:disabled {
  background: #e6dbcf;
  color: #665648;
  cursor: not-allowed;
}
.spf-order-form :is(input, select, textarea):hover { border-color: #ab8766; }
.spf-order :is(button, input, select, textarea, a):focus-visible { outline: 2px solid #916638; outline-offset: 2px; }
.spf-order-form :is(input, select, textarea):user-invalid { border-color: #a52b2b; }

@container (max-width: 740px) {
  .spf-order { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .spf-order-context {
    min-height: 148px;
    padding: 18px 105px 20px 17px;
    overflow: hidden;
    background: radial-gradient(ellipse 180px 115px at 87% 88%, #a28568 0%, #a2856800 100%),
                linear-gradient(122deg, #3a2a21, #5e4635);
  }
  .spf-order-caption img { width: 64px; }
  .spf-order-caption h2 { max-width: none; margin: 12px 0 7px; font-size: 1.68rem; line-height: 1.08; }
  .spf-order-caption h2 br { display: none; }
  .spf-order-caption p { font-size: .88rem; line-height: 1.34; }
  .spf-order-photo { width: 130px; right: -17px; bottom: -24px; }
  .spf-order-form { gap: 15px; padding: 17px; }
  .spf-order-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .spf-order-form label { margin-bottom: 6px; }
  .spf-order-date { padding: 12px; }
  .spf-order-date-label label { margin: 0; }
  .spf-order-form .spf-order-consent label { margin: 0; }
  .spf-order-form :is(input, select, textarea) { font-size: 1rem; }
}

.spf-order-inline { margin-block: 32px 40px; }
.spf-order-inline [data-spf-order-slot] { width: 100%; margin: 0; }
.spf-order-inline .spf-order {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(24px, 3.25vw, 44px);
  border: 1px solid #e9dac6;
  border-radius: 22px;
  position: relative;
  isolation: isolate;
  background: #fff0dc url("/resources/custom/image/element28.png") right 12px bottom 9px / 236px auto no-repeat;
  box-shadow: none;
}
.spf-order-inline .spf-order::before,
.spf-order-inline .spf-order::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 47px;
  height: 47px;
  background: #c29964;
  opacity: .2;
  pointer-events: none;
}
.spf-order-inline .spf-order::before {
  top: 14px;
  left: 31%;
  mask: url("/resources/custom/image/icon5.svg") center / contain no-repeat;
  transform: rotate(12deg);
}
.spf-order-inline .spf-order::after {
  bottom: 15px;
  left: 16px;
  width: 37px;
  height: 37px;
  mask: url("/resources/custom/image/element28.svg") center / contain no-repeat;
  transform: rotate(-15deg);
}

.spf-order-inline .spf-order-context {
  min-height: 0;
  padding: 3px 0 0;
  overflow: visible;
  background: none;
  color: #825105;
}
.spf-order-inline .spf-order-caption h2 {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.028em;
}
.spf-order-inline .spf-order-caption p {
  max-width: none;
  color: #645143;
  font-size: 1rem;
  line-height: 1.45;
}
.spf-order-inline .spf-order-form {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(156px, 2fr);
  align-items: start;
  gap: 14px 16px;
  padding: 0;
}
.spf-order-inline .spf-order-form > * { grid-column: 1 / -1; min-width: 0; }
.spf-order-inline .spf-order-date { padding: 0; border: 0; background: none; }
.spf-order-inline .spf-order-date-label { margin-bottom: 7px; }
.spf-order-inline .spf-order-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spf-order-inline .spf-order-form:has(.spf-order-date:not([hidden]) select:enabled) .spf-order-date { grid-column: 1; }
.spf-order-inline .spf-order-form:has(.spf-order-date:not([hidden]) select:enabled) .spf-order-fields { grid-column: 2 / -1; }
.spf-order-inline .spf-order-form > .spf-order-consent { grid-column: 1 / span 2; align-self: center; }
.spf-order-inline .spf-order-form > .spf-order-submit { grid-column: 3; min-height: 47px; padding-inline: 12px; border-radius: 24px; }
.spf-order-inline .spf-order-success { border: 1px solid #e9dac6; background: #fff0dc; }

@container (max-width: 760px) {
  .spf-order-inline .spf-order {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
    background-position: right 8px top 9px;
    background-size: 132px auto;
  }
  .spf-order-inline .spf-order::before,
  .spf-order-inline .spf-order::after { content: none; }
}
@container (max-width: 600px) {
  .spf-order-inline .spf-order { padding: 18px; border-radius: 14px; }
  .spf-order-inline .spf-order-form { grid-template-columns: minmax(0, 1fr); }
  .spf-order-inline .spf-order-form:has(.spf-order-date:not([hidden]) select:enabled) :is(.spf-order-date, .spf-order-fields),
  .spf-order-inline .spf-order-form > :is(.spf-order-consent, .spf-order-submit) { grid-column: 1 / -1; }
  .spf-order-inline .spf-order-submit { width: 100%; }
}
@container (max-width: 420px) {
  .spf-order-inline .spf-order-fields { grid-template-columns: minmax(0, 1fr); }
}

.spf-order-dialog:has(.spf-order-message) {
  width: min(640px, calc(100% - 24px));
}
.spf-order-dialog .spf-order-message { display: block; color: #30261d; }
.spf-order-message .spf-order-context {
  min-height: 0;
  padding: 27px 54px 24px 30px;
  border-bottom: 1px solid #edddc8;
  background: #fbefdf;
  color: #3c2b21;
}
.spf-order-message .spf-order-caption {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 18px;
  align-items: center;
}
.spf-order-message .spf-order-caption img {
  grid-area: 1 / 2 / span 2;
  width: 72px;
}
.spf-order-message .spf-order-caption h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1.12;
}
.spf-order-message .spf-order-caption p {
  max-width: 38ch;
  color: #604d3e;
  font-size: .95rem;
  line-height: 1.42;
}
.spf-order-message .spf-order-form { gap: 15px; padding: 23px 30px 28px; }
.spf-order-message .spf-order-form textarea { min-height: 104px; }
.spf-order-upload label span { margin-inline-start: 5px; color: #6d5c4c; font-weight: 400; }
.spf-order-upload input::file-selector-button {
  padding: 7px 12px;
  margin-inline-end: 9px;
  border: 0;
  border-radius: 6px;
  background: #f0e2d0;
  color: #593a21;
  font: inherit;
  cursor: pointer;
}
@container (max-width: 440px) {
  .spf-order-message .spf-order-context { padding: 21px 49px 18px 17px; }
  .spf-order-message .spf-order-caption { grid-template-columns: minmax(0, 1fr); }
  .spf-order-message .spf-order-caption img { display: none; }
  .spf-order-message .spf-order-form { padding: 17px; }
}

.box-style-15:has(.spf-subscribe-slot)::before { pointer-events: none; }
.spf-subscribe-slot[data-spf-order-slot] {
  position: relative;
  flex: 1 1 58%;
  width: 100%;
  min-width: 0;
  margin: 0;
  --accent-dark: #684426;
}
.spf-subscribe-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(125px, 1fr);
  align-items: start;
  gap: 12px;
}
.spf-subscribe-fields .form-control { min-height: 46px; padding-inline: 15px; margin: 0; }
.spf-subscribe-submit {
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 24px;
  background: #936c3d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.spf-subscribe-submit:enabled:hover { background: #7a542c; }
.spf-subscribe-submit:disabled { background: #e4ceb3; color: #65513b; cursor: not-allowed; }
.spf-subscribe-slot :is(a, button, input):focus-visible { outline: 2px solid #906337; outline-offset: 2px; }
.spf-subscribe-consent { margin-top: 17px; color: #514237; font-size: .88rem; line-height: 1.45; }
.spf-subscribe-consent label { margin: 0; font-weight: 400; }
@container (max-width: 480px) {
  .spf-subscribe-fields { grid-template-columns: minmax(0, 1fr); }
}
