/* Product-page actions: match the site's "Как заказать" typography. */
.ed-product-panel .ed-cart-add-single,
.ed-product-panel .ed-product-main-cta,
.ed-product-panel .ed-product-source-link {
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

/* A softer orange keeps the primary cart action distinct from the source link. */
.ed-product-panel .ed-cart-add-single {
  align-items: center;
  background: #ffad00;
  border: 1px solid #ffad00;
  color: #fff;
  display: inline-flex;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
}

.ed-product-panel .ed-cart-add-single::before {
  background-color: currentColor;
  content: "";
  display: inline-block;
  height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.9a2 2 0 0 0 1.9-1.4L21 8H7M10 21a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m9 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0'/%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'%3E%3Cpath fill='black' d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.9a2 2 0 0 0 1.9-1.4L21 8H7M10 21a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m9 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 18px;
}

/* Taobao source link becomes the high-contrast orange action. */
.ed-product-panel .ed-product-source-link {
  background: #ff5a0a;
  border-color: #ff5a0a;
  color: #fff;
}

.ed-product-panel .ed-product-source-link:hover,
.ed-product-panel .ed-product-source-link:focus-visible {
  background: #e94d05;
  border-color: #e94d05;
  color: #fff;
}

.elentao-order-submit {
  background: #f0783c !important;
  border: 1px solid #f0783c !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: 190px !important;
  width: 220px !important;
}

.elentao-order-submit:hover,
.elentao-order-submit:focus-visible {
  background: #dc6932 !important;
  border-color: #dc6932 !important;
  color: #fff !important;
}

.ed-cart-rate-note {
  white-space: normal;
}

/* Customer-account primary actions. */
.elentao-customer-action {
  background: #fff1e8 !important;
  border: 1px solid #ffc4a4 !important;
  border-radius: 999px !important;
  color: #f05a20 !important;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 800 !important;
}

.elentao-customer-action:hover,
.elentao-customer-action:focus-visible {
  background: #ffe4d4 !important;
  border-color: #ffad7f !important;
  color: #d94a16 !important;
}

/* Remove the extra white card around the mobile account accordions. */
.elentao-customer-action-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

@media (min-width: 701px) {
  .elentao-customer-actions-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .elentao-customer-actions-row > * {
    min-width: 0;
  }
}

[data-elentao-delivery-notice="1"] {
  line-height: 1.55;
  white-space: normal;
}

/* The legacy recovery form is no longer part of the customer account flow. */
.elentao-recovery {
  display: none !important;
}

/* Flat Taobao variants are complete SKU choices even when the supplier does
   not expose a separate size property. Match the native color-card layout. */
.ed-product-sku-group[data-sku-kind="variant"] .ed-product-sku-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.ed-product-sku-group[data-sku-kind="variant"] .ed-product-sku-option {
  width: 100%;
}

@media (max-width: 640px) {
  .ed-product-sku-group[data-sku-kind="variant"] .ed-product-sku-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-product-sku-group[data-sku-kind="variant"] .ed-product-sku-option span {
    font-size: 12px;
  }
}

/* Keep the account controls readable and visually consistent on phones. */
@media (max-width: 700px) {
  .elentao-customer-actions-row {
    display: block !important;
  }

  .elentao-customer-action,
  .elentao-order-submit {
    box-sizing: border-box !important;
    display: flex !important;
    min-height: 48px;
    width: 100% !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .elentao-customer-action-shell .elentao-customer-action {
    border-radius: 18px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .elentao-customer-action + .elentao-customer-action,
  .elentao-order-submit + .elentao-customer-action,
  .elentao-customer-action + .elentao-order-submit {
    margin-top: 10px;
  }

  .elentao-order-submit {
    max-width: 100% !important;
    width: 220px !important;
  }

  [data-elentao-delivery-notice="1"] {
    font-size: 14px;
    line-height: 1.5;
  }
}
