.gsc-legal-guarantee-notice {
  margin: 16px 0 0;
  max-width: 100%;
}

.gsc-legal-guarantee-notice__details {
  border: 1px solid #d7e3f2;
  border-radius: 10px;
  background: #f6f9fd;
}

.gsc-legal-guarantee-notice__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #003399;
}

.gsc-legal-guarantee-notice__trigger::-webkit-details-marker,
.gsc-legal-guarantee-notice__trigger::marker {
  display: none;
  content: "";
}

.gsc-legal-guarantee-notice__trigger::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #003399;
  border-bottom: 2px solid #003399;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.gsc-legal-guarantee-notice__details[open] .gsc-legal-guarantee-notice__trigger::before {
  transform: rotate(45deg);
}

.gsc-legal-guarantee-notice__panel {
  padding: 0 16px 16px;
  max-height: min(80vh, 720px);
  overflow: auto;
}

.gsc-legal-guarantee-notice__image-link {
  display: block;
}

.gsc-legal-guarantee-notice__image {
  display: block;
  width: 100%;
  max-width: 595px;
  height: auto;
  margin: 0 auto;
  background: #fff;
}

.gsc-legal-guarantee-notice__more {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
}

.gsc-legal-guarantee-notice__more a {
  color: #003399;
  font-weight: 600;
}

.gsc-legal-guarantee-notice--product {
  position: relative;
  z-index: 6;
  margin-top: 20px;
}

.gsc-legal-guarantee-notice--checkout {
  position: relative;
  z-index: 6;
  margin: 0 0 16px;
}

.gsc-legal-guarantee-notice--retur {
  margin-top: 18px;
  width: 100%;
}

.gsc-return-guarantee .gsc-legal-guarantee-notice {
  width: 100%;
}

/*
 * Keep the compact trigger in document flow. The official A4 notice opens as
 * an overlay so it does not stretch the product image column or checkout row.
 */
.gsc-legal-guarantee-notice--product .gsc-legal-guarantee-notice__details[open],
.gsc-legal-guarantee-notice--checkout .gsc-legal-guarantee-notice__details[open] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.gsc-legal-guarantee-notice--product .gsc-legal-guarantee-notice__details[open] .gsc-legal-guarantee-notice__panel,
.gsc-legal-guarantee-notice--checkout .gsc-legal-guarantee-notice__details[open] .gsc-legal-guarantee-notice__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(70vh, 640px);
  padding: 12px 16px 16px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d7e3f2;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 36px rgba(7, 17, 31, 0.14);
}

body.single-product .product-main > .container > .row {
  align-items: flex-start;
}

body.single-product .product-detail-wrap:has(.gsc-legal-guarantee-notice) {
  height: auto;
  overflow: visible;
}

body.single-product .product-main .col-12.col-lg-6.d-flex {
  align-items: flex-start;
}

#gsc-legal-guarantee-checkout {
  position: relative;
  z-index: 6;
  width: 100%;
  margin: 8px 0 16px;
}

.wc-block-checkout__actions #gsc-legal-guarantee-checkout {
  grid-column: 1 / -1;
}

@media (max-width: 575.98px) {
  .gsc-legal-guarantee-notice__trigger {
    font-size: 14px;
    padding: 11px 14px;
  }

  .gsc-legal-guarantee-notice__panel,
  .gsc-legal-guarantee-notice--product .gsc-legal-guarantee-notice__details[open] .gsc-legal-guarantee-notice__panel,
  .gsc-legal-guarantee-notice--checkout .gsc-legal-guarantee-notice__details[open] .gsc-legal-guarantee-notice__panel {
    max-height: 70vh;
  }
}
