#surprise-gift-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5em 2em 1.5em 1.2em;
  margin: 2.5em 0 2em 0;
  background: linear-gradient(90deg, #eaffea 0%, #f6fff6 100%);
  border-radius: 14px;
  box-shadow: none;
  gap: 2em;
  position: relative;
  min-height: 110px;
  font-family: Arial, Helvetica, sans-serif;
}
input#surprise-gift-checkbox {
  display: none !important;
}
label.sg-checkbox-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.sg-checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.1em;
  background: none;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  position: static;
  cursor: pointer;
  position: relative;
}
#surprise-gift-checkbox {
  opacity: 0;
  width: 2.5em;
  height: 2.5em;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  z-index: 2;
  cursor: pointer;
}
.sg-custom-checkbox {
  width: 2.5em;
  height: 2.5em;
  display: inline-block;
  border: 2.5px solid rgb(244, 77, 0);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px #e6ffe6;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.sg-checkbox-wrap input:checked + .sg-custom-checkbox {
  background: rgb(244, 77, 0);
  border-color: rgb(244, 77, 0);
}
.sg-custom-checkbox:after {
  content: '';
  display: block;
  position: absolute;
  left: 0.7em;
  top: 0.35em;
  width: 0.7em;
  height: 1.3em;
  border: solid #fff;
  border-width: 0 0.32em 0.32em 0;
  opacity: 0;
  transform: scale(0.7) rotate(45deg);
  transition: opacity 0.2s, transform 0.2s;
}
.sg-checkbox-wrap input:checked + .sg-custom-checkbox:after {
  opacity: 1;
  transform: scale(1) rotate(45deg);
}
.sg-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.sg-title-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.sg-title {
  color: #222;
  line-height: 1.1;
  margin-right: 0.5em;
  font-size: 1rem !important;
  font-weight: 700 !important;
}
.sg-price {
  background: #7be495;
  color: #222;
  font-weight: 700;
  font-size: 1em;
  border-radius: 8px;
  padding: 0.18em 0.9em;
  margin-left: 0.1em;
  display: inline-block;
}
.sg-desc {
  font-size: 1.08em;
  color: #888;
  font-weight: 500;
  margin-top: 0.6em;
}
.sg-gift-img {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: contain;
  margin-left: 2em;
  box-shadow: none;
}
.sg-badge {
  background: rgb(244, 77, 0);
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  padding: 0.5em 1.7em 0.5em 2.2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px #e6ffe6;
  position: absolute;
  left: 0.8em;
  top: -1.5em;
  z-index: 10;
  margin: 0;
  border: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.sg-badge .sg-badge-arrow {
  font-size: 1.2em;
  margin-right: 0.3em;
  display: inline-block;
}

div#surprise-gift-section {
  margin: -39px -24px -40px -24px;
  border-radius: 7px !important;
  width: calc(100% + 48px);
  max-width: calc(100% + 48px);
}

body.show-surprise-gift .surprise-gift-checkout-checkbox-wrapper {
  display: block;
}
body.hide-surprise-gift .surprise-gift-checkout-checkbox-wrapper {
  display: none !important;
}

@media (max-width: 992px) {
  div#surprise-gift-section {
    margin: -30px -20px -36px -20px;
    border-radius: 7px !important;
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
  }

  #surprise-gift-section {
    border: none;
  }

  .sg-badge {
    padding: 2px 10px;
    top: -10px;
    right: 5px;
    left: auto;
  }

  span.sg-badge-text {
    font-size: 11px !important;
    font-weight: 500;
  }
}

@media (max-width: 768px) {
  div#surprise-gift-section {
    margin: -26px -20px -32px -20px;
  }
}

@media (max-width: 600px) {
  .sg-custom-checkbox:after {
    content: '';
    display: block;
    position: absolute;
    left: 3px;
    top: -1px;
    width: 9px;
    height: 15px;
  }
  
  div#surprise-gift-section {
    margin: -26px -20px -32px -20px;
    flex-direction: row;
    align-items: center;
    padding: 1.2em 0.7em 1.5em 0.7em;
    gap: 1em;
  }
  .sg-gift-img {
    margin-left: 1em;
    width: 48px;
    height: 48px;
  }
  .sg-title {
    font-size: 0.95em !important;
  }
  #surprise-gift-checkbox, .sg-custom-checkbox {
    width: 1.5em;
    height: 1.5em;
  }
} 