#sg-a11-compra, #sg-a11-detalles, #sg-a11-garantia { scroll-margin-top: 110px; }
.sg-a11-buy [id$="___17936088765541cd49f2"],
.sg-a11-buy [id$="___17937561896250fa1de2"],
.sg-a11-media .cb-promotion-label-ssr-overlay,
body:has(.sg-a11-buy) #hohy-reviews,
body:has(.sg-a11-buy) #JS-add-to-cart-mobile-button,
body:has(.sg-a11-buy) #addToCartPluginPC { display: none !important; }

.sg-a11-media .media-gallery__list-wrapper {
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.sg-a11-buy .product-detail__title {
  color: #131b28;
  font-size: clamp(25px, 3vw, 39px) !important;
  letter-spacing: -.032em;
  line-height: 1.12;
}
.sg-a11-buy .sg-a11-config {
  margin: -3px 0 1px;
  color: #485466;
  font-size: 14px;
  line-height: 1.45;
}
#sg-a11-compra .product-price__sale { color: #141d2c !important; }

.sg-a11-buy .sg-a11-cashback {
  overflow: hidden;
  border: 1px solid #dce7fa;
  border-radius: 8px;
  background: #f5f8ff;
  color: #1f2c44;
}
.sg-a11-cashback > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  min-height: 48px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}
.sg-a11-cashback > summary::-webkit-details-marker { display: none; }
.sg-a11-cashback summary strong {
  display: block;
  color: #084cae;
  font-size: 15px;
  line-height: 1.3;
}
.sg-a11-cashback summary small {
  display: block;
  color: #44546b;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}
.sg-a11-cashback__toggle {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sg-a11-cashback[open] .sg-a11-cashback__toggle > span { display: inline-block; transform: rotate(45deg); }
.sg-a11-cashback > p { margin: 0 12px 12px; color: #354761; font-size: 13px; line-height: 1.55; }
.sg-a11-cashback a, .sg-a11-support a { color: #174d98; text-decoration: underline; text-underline-offset: 3px; }
.sg-a11-cashback > summary:focus-visible { outline: 2px solid #0b56c3; outline-offset: -3px; border-radius: 7px; }

.sg-a11-buy .sg-a11-support {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: #49576b;
  font-size: 13px;
  line-height: 1.5;
}
.sg-a11-support p { margin: 0; }
.sg-a11-support p > a { margin-inline-start: 8px; }
.sg-a11-buy > .bf-compact {
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  color: #49576b;
}
#sg-a11-compra button[name="add"]:not(:disabled):not([aria-disabled="true"]) {
  background: #0b53c1 !important;
  color: #fff !important;
  border-color: #0b53c1 !important;
}
#sg-a11-compra button[name="add"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background: #0848a9 !important;
}

@media (max-width: 959px) {
  .product-detail__media-gallery.sg-a11-media {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}
@media (max-width: 365px) {
  .sg-a11-cashback > summary { flex-wrap: wrap; }
}

/* Galaxy Tab A11+ palette */
body:has(#sg-a11-compra) {
  --a11-ink: #131822;
  --a11-blue: #0756cf;
  --a11-blue-dark: #0642a2;
  --a11-line: #dce4ef;
  --a11-paper: #f4f7fb;
}

body:has(#sg-a11-compra) :is(.header-section, .header__container, .df-category-nav) {
  --header-background: 255, 255, 255;
  --header-color-text: 19, 24, 34;
  background: #fff;
  color: var(--a11-ink);
  border-color: var(--a11-line);
}
body:has(#sg-a11-compra) .df-category-nav a { color: var(--a11-ink) !important; }
body:has(#sg-a11-compra) .df-category-nav a.df-nav-offers {
  background: var(--a11-blue) !important;
  color: #fff !important;
  border-radius: 4px;
}
body:has(#sg-a11-compra) .announcement-bar__group-item {
  background: #121a28 !important;
}
body:has(#sg-a11-compra) #shopline-section-sections--header-group__announcement-bar .announcement-bar__group-item strong {
  color: #b4d0ff !important;
}

.sg-a11-media .media-gallery__list-wrapper {
  border-color: var(--a11-line);
  border-radius: 6px;
}
.sg-a11-buy .product-detail__title {
  color: var(--a11-ink);
  font-weight: 800 !important;
}
#sg-a11-compra .product-price__sale { color: var(--a11-ink) !important; }
#sg-a11-compra .sg-a11-cashback {
  background: var(--a11-paper);
  border-color: var(--a11-line);
  border-radius: 5px;
}
.sg-a11-cashback summary strong { color: var(--a11-blue); }
#sg-a11-compra button[name="add"]:not(:disabled):not([aria-disabled="true"]) {
  background: var(--a11-blue) !important;
  border-color: var(--a11-blue) !important;
  border-radius: 5px !important;
}
#sg-a11-compra button[name="add"]:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--a11-blue-dark) !important;
  border-color: var(--a11-blue-dark) !important;
}
#sg-a11-compra .product-detail__buy-buttons .pay-button-buy-now:not(:disabled):not([aria-disabled="true"]) {
  background: #fff !important;
  color: var(--a11-ink) !important;
  border: 1px solid #333e50 !important;
  border-radius: 5px !important;
}
#sg-a11-compra .product-detail__buy-buttons .pay-button-buy-now:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--a11-paper) !important;
  border-color: var(--a11-blue) !important;
}
#sg-a11-compra > .bf-compact :is(summary, a) { color: #435169; }

body:has(#sg-a11-compra) footer.footer {
  --color-background: 18, 26, 40;
  --color-text: 242, 247, 255;
  background: #121a28 !important;
  color: #f2f7ff;
}

@media (max-width: 959px) {
  .sg-a11-media .media-gallery__content { gap: 0; }
  body:has(#sg-a11-compra) .sg-a11-media .media-gallery__indicator {
    position: static;
    width: 100%;
    padding: 3px 0 0;
  }
  body:has(#sg-a11-compra) .sg-a11-media .media-gallery__arrows { height: auto; margin-block: 0; }
  .sg-a11-media .media-gallery__arrow { min-width: 34px; min-height: 32px; }
}
