/* =========================================================
   RESET / CROSS-BROWSER BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */
.delivery-page {
  overflow: hidden;
  background: #fff;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.delivery-hero {
  position: relative;
  padding: 46px 28px 62px;
  background: #fff;
}

.delivery-hero::after {
  display: none;
}

.delivery-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: clamp(40px, 6vw, 140px);
}

/* LEFT: content column grows */
.delivery-hero__content {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 520px;
          flex: 1 1 520px;
  min-width: 0;
}

/* =========================================================
   BADGE
   ========================================================= */
.delivery-hero__badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  background: #6257ff;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  -webkit-box-shadow: 0 8px 18px rgba(98, 87, 255, 0.18);
          box-shadow: 0 8px 18px rgba(98, 87, 255, 0.18);
}

.delivery-hero__badge::before {
  display: none;
}

/* =========================================================
   H1
   ========================================================= */
.delivery-hero h1 {
  max-width: 730px;
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.delivery-hero h1 span {
  color: #6257ff;
}

/* =========================================================
   H2 SUBTITLE
   ========================================================= */
.delivery-hero__subtitle {
  max-width: 610px;
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
  /* reset heading styles so it looks like a subtitle */
  font-style: normal;
  letter-spacing: normal;
}

/* =========================================================
   SHOP PILLS (kept for compatibility if used elsewhere)
   ========================================================= */
.delivery-hero__shops {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.delivery-hero__shops span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 31px;
  padding: 6px 14px;
  border: 1px solid #e3e7ee;
  background: #fbfcfe;
  color: #111827;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.delivery-hero__shops em {
  margin-left: 5px;
  color: #6b7280;
  font-style: normal;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

/* =========================================================
   INSURANCE PILL
   ========================================================= */
.delivery-hero__insurance {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 6px 14px;
  color: #16823a;
  background: #ecfdf3;
  border: 1px solid #9ff0bf;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.delivery-hero__insurance::before {
  display: none;
}

/* =========================================================
   RIGHT CARD — always pinned to the right edge, never centred
   ========================================================= */
.delivery-card {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 430px;
          flex: 0 0 430px;
  width: 430px;
  /* sticky: stays in view as the left column scrolls */
  position: -webkit-sticky;
  position: sticky;
  top: 28px;
  /* push to the far right of the flex row */
  margin-left: auto;
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 23px;
  padding: 28px;
  -webkit-box-shadow:
    0 20px 38px rgba(15, 23, 42, .12),
    0 2px 6px rgba(15, 23, 42, .04);
          box-shadow:
    0 20px 38px rgba(15, 23, 42, .12),
    0 2px 6px rgba(15, 23, 42, .04);
}

/* =========================================================
   CARD TOP
   ========================================================= */
.delivery-card__top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.delivery-card__top h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.delivery-card__top span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  white-space: nowrap;
  color: #6257ff;
  background: #f6f4ff;
  border: 1px solid #c9c3ff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.delivery-card p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 500;
}

/* =========================================================
   SHORTCODE WRAPPER — mirrors the old .delivery-card__field
   styles so [retailed_importer] looks identical
   ========================================================= */
.delivery-card__shortcode {
  position: relative;
  margin-bottom: 13px;
}

/* Icon before the shortcode input (plugin renders an <input type="url"> or <input type="text">) */
/* Форма плагина — нужен relative, чтобы иконка позиционировалась внутри строки с инпутом */
.delivery-card__shortcode .rwi-import-form {
  position: relative;
}

/* Иконка-ссылка поверх инпута */
.delivery-card__shortcode .rwi-import-form::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 20px;
  height: 60px; /* ← высота инпута */
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13.5L14 9.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M9.5 7.5H8.3C5.9 7.5 4 9.4 4 11.8C4 14.2 5.9 16.1 8.3 16.1H10.2' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M14.5 16.5H15.7C18.1 16.5 20 14.6 20 12.2C20 9.8 18.1 7.9 15.7 7.9H13.8' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  pointer-events: none;
}

.delivery-card__shortcode::before {
  display: none; /* убираем старый ::before на обёртке */
}

/* Target whatever input the plugin outputs */
.delivery-card__shortcode input[type="url"],
.delivery-card__shortcode input[type="text"],
.delivery-card__shortcode input[type="search"],
.delivery-card__shortcode input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 18px 0 52px !important;
  border: 1px solid #dfe4eb !important;
  border-radius: 17px !important;
  background: #fbfcfe !important;
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 60px !important;
  font-weight: 500 !important;
  outline: none !important;
  -webkit-box-shadow: inset 0 1px 2px rgba(15,23,42,.03) !important;
          box-shadow: inset 0 1px 2px rgba(15,23,42,.03) !important;
  -webkit-appearance: none !important;
     -moz-appearance: none !important;
          appearance: none !important;
}

.delivery-card__shortcode input[type="url"]::-webkit-input-placeholder,
.delivery-card__shortcode input[type="text"]::-webkit-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}
.delivery-card__shortcode input[type="url"]::-moz-placeholder,
.delivery-card__shortcode input[type="text"]::-moz-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}
.delivery-card__shortcode input[type="url"]:-ms-input-placeholder,
.delivery-card__shortcode input[type="text"]:-ms-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}
.delivery-card__shortcode input[type="url"]::placeholder,
.delivery-card__shortcode input[type="text"]::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

.delivery-card__shortcode input:focus {
  border-color: #beb7ff !important;
  background: #fff !important;
  -webkit-box-shadow:
    0 0 0 4px rgba(98,87,255,.08),
    inset 0 1px 2px rgba(15,23,42,.03) !important;
          box-shadow:
    0 0 0 4px rgba(98,87,255,.08),
    inset 0 1px 2px rgba(15,23,42,.03) !important;
}

/* Submit button the plugin may render */
.delivery-card__shortcode input[type="submit"],
.delivery-card__shortcode button[type="submit"],
.delivery-card__shortcode button:not([type="button"]) {
  width: 100% !important;
  height: 60px !important;
  border: 0 !important;
  cursor: pointer !important;
  background: #363636 !important;
  color: #fff !important;
  border-radius: 17px !important;
  padding: 0 20px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.015em !important;
  
  -webkit-appearance: none !important;
     -moz-appearance: none !important;
          appearance: none !important;
  margin-top: 13px !important;
}

/* Old .delivery-card__field kept for back-compat */
.delivery-card__field {
  position: relative;
  margin-bottom: 13px;
}

.delivery-card__field::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13.5L14 9.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M9.5 7.5H8.3C5.9 7.5 4 9.4 4 11.8C4 14.2 5.9 16.1 8.3 16.1H10.2' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M14.5 16.5H15.7C18.1 16.5 20 14.6 20 12.2C20 9.8 18.1 7.9 15.7 7.9H13.8' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.delivery-card input[type="url"],
.delivery-card input[type="text"],
.delivery-card .delivery-card__input {
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 18px 0 52px !important;
  border: 1px solid #dfe4eb !important;
  border-radius: 17px !important;
  background: #fbfcfe !important;
  color: #111827 !important;
  font-size: 18px !important;
  line-height: 60px !important;
  font-weight: 500 !important;
  outline: none !important;
  -webkit-box-shadow: inset 0 1px 2px rgba(15,23,42,.03) !important;
          box-shadow: inset 0 1px 2px rgba(15,23,42,.03) !important;
  -webkit-appearance: none !important;
     -moz-appearance: none !important;
          appearance: none !important;
}

.delivery-card input[type="url"]::-webkit-input-placeholder,
.delivery-card input[type="text"]::-webkit-input-placeholder,
.delivery-card .delivery-card__input::-webkit-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}
.delivery-card input[type="url"]::-moz-placeholder,
.delivery-card input[type="text"]::-moz-placeholder,
.delivery-card .delivery-card__input::-moz-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}
.delivery-card input[type="url"]:-ms-input-placeholder,
.delivery-card input[type="text"]:-ms-input-placeholder,
.delivery-card .delivery-card__input:-ms-input-placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}
.delivery-card input[type="url"]::placeholder,
.delivery-card input[type="text"]::placeholder,
.delivery-card .delivery-card__input::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

.delivery-card input[type="url"]:focus,
.delivery-card input[type="text"]:focus,
.delivery-card .delivery-card__input:focus {
  border-color: #beb7ff !important;
  background: #fff !important;
  -webkit-box-shadow:
    0 0 0 4px rgba(98,87,255,.08),
    inset 0 1px 2px rgba(15,23,42,.03) !important;
          box-shadow:
    0 0 0 4px rgba(98,87,255,.08),
    inset 0 1px 2px rgba(15,23,42,.03) !important;
}

/* =========================================================
   SUBMIT BUTTON (native, outside shortcode)
   ========================================================= */
.delivery-card > button {
  width: 100%;
  height: 60px;
  border: 0;
  cursor: pointer;
  background: #6257ff;
  color: #fff;
  border-radius: 17px;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.015em;
  -webkit-box-shadow: 0 10px 22px rgba(98,87,255,.25);
          box-shadow: 0 10px 22px rgba(98,87,255,.25);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

/* =========================================================
   NOTE + FEATURES
   ========================================================= */
.delivery-card__note {
  margin: 12px 0 20px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.delivery-card__features {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 18px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 13px 18px;
  margin-bottom: 22px;
  color: #111827;
  font-size: 15.5px;
  line-height: 1.25;
  font-weight: 400; /* ← жирность фичей: меняй здесь (100–900) */
}

.delivery-card__features div {
  position: relative;
  padding-left: 31px;
}

.delivery-card__features div::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  width: 21px;
  height: 21px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  border: 1px solid #a9a2ff;
  border-radius: 50%;
  color: #6257ff;
  background: #f7f6ff;
  font-size: 12px;
  line-height: 19px;
  text-align: center;
  font-weight: 900;
}

/* =========================================================
   DIVIDER
   ========================================================= */
.delivery-card__divider {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 13px;
  margin: 0 0 13px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
}

.delivery-card__divider::before,
.delivery-card__divider::after {
  content: "";
  height: 1px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background: #e5e7eb;
}

/* =========================================================
   SOCIAL BUTTONS
   ========================================================= */
.delivery-card__social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 54px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #e3e7ee;
  background: #fbfcfe;
  color: #111827 !important;
  border-radius: 15px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none !important;
}

.delivery-card__social::before {
  content: "";
  width: 24px;
  height: 24px;
  margin-right: 10px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 24px;
          flex: 0 0 24px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.delivery-card__social:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='14' r='14' fill='%232AA8E8'/%3E%3Cpath d='M20.8 8.3L17.8 21.1C17.6 22 16.9 22.2 16.2 21.6L11.8 18.3L9.7 20.4C9.5 20.6 9.2 20.8 8.8 20.8L9.1 16.3L17.3 8.9C17.7 8.6 17.2 8.4 16.8 8.7L6.7 15.1L2.3 13.7C1.4 13.4 1.4 12.8 2.5 12.4L19.6 5.8C20.4 5.5 21.1 6 20.8 8.3Z' fill='white' transform='translate(2 1)'/%3E%3C/svg%3E");
}

.delivery-card__social:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='4' y1='24' x2='24' y2='4' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2300B7FF'/%3E%3Cstop offset='0.45' stop-color='%236257FF'/%3E%3Cstop offset='1' stop-color='%23A855F7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='14' cy='14' r='14' fill='url(%23g)'/%3E%3Cpath d='M9.2 19.7C10.4 20.5 12 21 13.8 21C18 21 21.2 17.9 21.2 14C21.2 10.1 18 7 13.8 7C9.7 7 6.5 10.1 6.5 14C6.5 15.5 7 16.9 7.9 18L7.2 21.4L9.2 19.7Z' fill='white' fill-opacity='.92'/%3E%3Ccircle cx='13.9' cy='14' r='4.2' fill='url(%23g)'/%3E%3C/svg%3E");
}

/* =========================================================
   RESPONSIVE — tablet (≤ 1024px)
   Card drops below content but stays full-width, not centred
   ========================================================= */
@media (max-width: 1024px) {

  .delivery-hero__inner {

    flex-direction: column;

    gap: 18px; /* было 36px */

  }

  .delivery-card {

    width: 100%;

    max-width: 500px;

    margin-left: 0;

    position: static;

  }

}

/* =========================================================
   RESPONSIVE — mobile (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
  .delivery-hero {
    padding: 34px 16px 48px;
  }
  
  @media (max-width: 600px) {
  .breadcrumb-link.breadcrumb-link-last {
    display: inline-block;
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

  .delivery-hero__content {
    width: calc(100% - 40px) !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
  }

  .delivery-hero__badge,
  .delivery-hero__insurance {
    padding-left: 14px;
    padding-right: 14px;
  }

  .delivery-hero h1 {
    max-width: 100%;
    font-size: 36px;
    line-height: 1.02;
  }

  .delivery-hero__subtitle {
    max-width: 100%;
    font-size: 17px;
  }

  .delivery-card {
    padding: 22px;
    max-width: 100%;
  }

  .delivery-card__features {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

.rwi-submit-button.rwi-loading {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rwi-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rwi-spin .7s linear infinite;
}

@keyframes rwi-spin {
  to {
    transform: rotate(360deg);
  }
}

.rwi-submit-button.rwi-success {
  background: #111827 !important;
  color: #fff !important;
  border-radius: 17px !important;
}

.delivery-card__shortcode .rwi-import-form input,
.delivery-card__shortcode .rwi-import-form input[type="url"],
.delivery-card__shortcode .rwi-import-form button,
.delivery-card__shortcode .rwi-import-form .rwi-submit-button {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;

  font-size: 15px !important;

  border-radius: 14px !important;
}

.delivery-card__shortcode .rwi-import-form input,
.delivery-card__shortcode .rwi-import-form input[type="url"] {
  padding-left: 46px !important;
  padding-right: 14px !important;
  line-height: 48px !important;
}

.delivery-card__shortcode .rwi-import-form button,
.delivery-card__shortcode .rwi-import-form .rwi-submit-button {
  padding: 0 16px !important;
  line-height: 48px !important;
}

@media (max-width: 1024px) {
  .delivery-hero__content {
    flex: 0 1 auto !important;
  }

  .delivery-hero__inner {
    gap: 24px !important;
  }
}

.delivery-card__shortcode .rwi-import-form .rwi-submit-button.rwi-success {
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}

.delivery-card__shortcode .rwi-import-form .rwi-submit-button.rwi-success:hover {
  background: #000 !important;
  color: #fff !important;
}

.delivery-card__goat-link {
  width: 100%;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 10px;

  border: 1px solid #111827;
  border-radius: 14px;

  background: #fff;
  color: #111827 !important;

  font-size: 15px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none !important;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.delivery-card__goat-link:hover {
  background: #111827;
  color: #fff !important;
  border-color: #111827;
}