/* Opt-in right rail. Append after current V15 shared CSS and template styles.
   Parent ASIDE/Offer, native IDs, values, handlers and unavailable state stay intact.
   Expected action row: original cart + direct .wish, or .smart-buy-wish > .wish.
   Never force the display of #promo-block: the existing controller owns it. */
body#body.smart-ui .smart-product-section .product-buy-card.smart-buy-rail {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0;
}

body#body.smart-ui .smart-product-section .smart-buy-rail > .smart-buy-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e8ede9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 49, 36, .07);
}

body#body.smart-ui .smart-product-section .smart-buy-rail .price-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body#body.smart-ui .smart-product-section .smart-buy-rail details#promo-block.smart-cash-offer {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body#body.smart-ui .smart-product-section .smart-buy-rail details.smart-cash-offer > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 4px 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #ecf7ef;
  color: #196e41;
  cursor: pointer;
  list-style: none;
}

body#body.smart-ui .smart-product-section .smart-buy-rail details.smart-cash-offer > summary::-webkit-details-marker {
  display: none;
}

body#body.smart-ui .smart-product-section .smart-buy-rail details.smart-cash-offer > summary::marker {
  content: "";
}

body#body.smart-ui .smart-product-section .smart-buy-rail #promo-price {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  color: #196e41;
  font-family: var(--smart-ui-font) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer > summary > .smart-cash-labels {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer > summary .cash-price-label {
  display: block;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  color: #287347;
  font-family: var(--smart-ui-font) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.5 !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer > summary .cash-price-label::before {
  content: none;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer > summary :is(.cash-price-label small,.smart-cash-taxnote) {
  display: block;
  margin-top: 2px;
  color: #517a5f;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer > summary :is(.smart-cash-chevron,.cash-chevron) {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer[open] > summary :is(.smart-cash-chevron,.cash-chevron) {
  transform: rotate(225deg);
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer :is(.cash-rule,.smart-cash-explanation,.promo-copy-note,.promo-saving) {
  color: #58665d;
  font-family: var(--smart-ui-font) !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-conditions {
  padding: 0 2px 2px;
  font-size: 14px;
  line-height: 1.6;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer :is(.cash-rule,.smart-cash-explanation,.promo-saving) {
  margin: 12px 0 0;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer .promo-copy-row {
  gap: 10px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e5eee7;
  flex-wrap: wrap;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .regular-price-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: baseline;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .regular-price {
  order: 1;
  min-width: 0;
  margin: 0;
  color: #626a65;
  font-family: var(--smart-ui-font) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .regular-price s {
  margin-left: 6px;
  color: #8b938e;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .regular-price-block > .price-label {
  order: 2;
  margin: 0;
  color: #78817b;
  font-size: 14px !important;
  line-height: 1.5 !important;
  white-space: normal;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat > summary {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  color: #5c7464;
  font-family: var(--smart-ui-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat > summary::-webkit-details-marker { display: none; }
body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat > summary::marker { content: ""; }

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat > summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat > summary > .smart-vat-labels {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-vat-labels > :is(span,small) {
  display: block;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-vat-labels > small {
  margin-top: 2px;
  color: #7a867e;
  font-weight: 400;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat > summary :is(.smart-vat-chevron,.smart-buy-chevron) {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-left: auto;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat[open] > summary :is(.smart-vat-chevron,.smart-buy-chevron) { transform: rotate(225deg); }

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-vat :is(p,.smart-buy-vat-body,.smart-vat-conditions) {
  margin: 0 0 10px;
  color: #65736a;
  font-size: 14px !important;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-stock-card {
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-stock-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: #edf7ef;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-stock-icon svg {
  width: 16px;
  height: 16px;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-stock-card > span:not(.buy-stock-icon) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
}

body#body.smart-ui .smart-product-section .smart-buy-rail :is(.buy-stock-title,.buy-stock-value,.buy-stock-value b) {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: start;
  margin: 16px 0 0;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons:not(:has(> .wish,> .smart-buy-wish)) {
  grid-template-columns: minmax(0, 1fr);
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons > .buy-button-cart {
  width: 100%;
  min-width: 0;
  min-height: 52px !important;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  font-size: 16px !important;
  line-height: 1.4 !important;
  box-shadow: none;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-button-cart:not(.is-unavailable):not([disabled]) {
  background: #ffd54a;
  color: #202620;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-button-cart:not(.is-unavailable):not([disabled]):hover {
  background: #f3c52c;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons > :is(.wish,.smart-buy-wish),
body#body.smart-ui .smart-product-section .smart-buy-rail .smart-buy-wish > .wish {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  min-width: 52px;
  margin: 0;
  border: 1px solid #e6eae7;
  border-radius: 14px;
  background: #f3f5f3;
  color: #55635a;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons > .smart-buy-wish {
  border: 0;
  background: transparent;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons .wish::before {
  font-family: "Linearicons-Free" !important;
  font-size: 23px;
  line-height: 1;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons .wish.wadd::before { content: "\e813"; }
body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons .wish.wdel::before { content: "\e87f"; }

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-buttons .wish.wdel { color: #196e41; }

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-button-cart.is-unavailable,
body#body.smart-ui .smart-product-section .smart-buy-rail .buy-button-cart.is-unavailable:hover,
body#body.smart-ui .smart-product-section .smart-buy-rail .buy-button-cart[disabled] {
  background: #e7eae8 !important;
  color: #7a827d !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-confirmation-note {
  margin: 12px 0 0;
  color: #7b837e;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-card-links {
  margin-top: 12px;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail > #whatsapp-order.buy-button-whatsapp {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 48px !important;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #d8e9dd;
  border-radius: 16px;
  background: #edf7ef;
  color: #286942;
  font-family: var(--smart-ui-font) !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.4 !important;
  box-shadow: none;
}

body#body.smart-ui .smart-product-section .smart-buy-rail > #whatsapp-order.buy-button-whatsapp:hover {
  background: #e2f0e5;
}

body#body.smart-ui .smart-product-section .smart-buy-rail > .smart-receive-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #e4eae6;
  border-radius: 20px;
  background: #fff;
  color: #4e5e54;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-card h3 {
  margin: 0 0 10px;
  color: #263c2e;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.4 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-card p {
  color: #58665d;
  font-size: 14px !important;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-card > details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: #315e41;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-details > summary::-webkit-details-marker { display: none; }
body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-details > summary::marker { content: ""; }

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-details > summary > span:not(.smart-buy-chevron) {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-details > summary small {
  display: block;
  margin-top: 2px;
  color: #758279;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-details > summary > .smart-buy-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-details[open] > summary > .smart-buy-chevron { transform: rotate(225deg); }

body#body.smart-ui .smart-product-section .smart-buy-rail .smart-receive-conditions {
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}

body#body.smart-ui .smart-product-section .smart-buy-rail > .buy-trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-trust-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e6ece7;
  border-radius: 16px;
  background: #fff;
  color: #6a756e;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-trust-item b {
  color: #374d3e;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.5 !important;
}

body#body.smart-ui .smart-product-section .smart-buy-rail .buy-trust-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  background: #edf7ef;
  color: #287347;
}

body#body.smart-ui .smart-product-section .smart-buy-rail :is(details > summary,.wish):focus-visible {
  outline: 2px solid #287347;
  outline-offset: 3px;
}

@media (max-width: 780px) {
  body#body.smart-ui .smart-product-section .smart-buy-rail > .smart-buy-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body#body.smart-ui .smart-product-section .smart-buy-rail .smart-cash-offer > summary :is(.smart-cash-chevron,.cash-chevron) { transition: none; }
}

/* Mobile product buy/cookie stack: remove the extra overlay over native actions.
   Keep native go-top handlers and every desktop/non-product surface unchanged. */
@media screen and (max-width: 780px) {
  body#body.smart-ui.smart-product-bottom-stack span#go-top {
    display: none !important;
  }
}
