.sam__protect--wrapper * {
  line-height: normal;
  box-sizing: border-box;
}

.sam__protect--wrapper p {
  margin: 0;
}

.sam__widget {
  margin: 5px 0;
  width: 100%;
  max-width: 500px;
}

.sam__widget--content-wrapper {
  display: flex;
  gap: 5px;
}

.sam__widget--content-wrapper.layout-align-left,
.layout-align-left .sam__widget--header-container {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.sam__widget--content {
  /* width: 80%; */
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 5px;
}

.sam__widget--icon-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sam__widget--icon-container.img-inactive {
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
}

.sam__widget--icon {
  width: 100%;
  /* max-width: 100px; */
}

.sam__widget--header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.sam__widget--title-container {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sam-protect-estimate,
.sam__widget--title {
  font-size: 14px;
  font-weight: bold;
}

.sam__widget--description {
  font-size: 12px;
}

.sam__widget--policy-link {
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
}

.mini-cart-footer > .sam__protect--wrapper {
  padding: 0 10px;
}

.sam-btn-disable {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  user-select: none !important;
}

.sam-btn-disable * {
  pointer-events: none !important;
}

.sam_protect_switch .sam_switch_label {
  display: block;
  width: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  height: 18px;
  border-radius: 30px;
  background: var(--switch-bg) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin: unset
}

.sam_protect_switch .sam_switch_label:before {
  display: block;
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 50% !important;
  transform: translateY(-50%);
  transition: all .3s;
  z-index: 1;
  border-style: none
}

.sam_protect_switch #sam_switch_label:before {
  transform: unset;
  margin-top: -7px;
  border: 2px solid transparent;
  border-right-color: var(--before-border-color, #BABABA) !important;
  animation: spin 1s linear infinite
}

.sam_protect_switch .sam_switch_label:after {
  display: block !important;
  content: "";
  width: 0;
  height: 24px;
  background: var(--switch-active, #31C948) !important;
  transition: all .3s !important;
  transform: none !important;
  top: 0;
  left: 0;
  border-style: none
}

.sam_protect_switch .sam_switch_label.sam_active:before {
  left: 12px;
}

.sam_protect_switch .sam_switch_label.sam_active:after {
  width: 100%
}

@media only screen and (max-width: 749px) {
  .sam__widget {
    margin: 10px auto;
  }
}

@keyframes sam-custom-spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sam__checkout-btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: sam-custom-spinner 1s linear infinite;
}

.sam__widget--mask {
  text-align: center;
  font-size: 12px; 
  margin-top: 0; 
  margin-bottom: -8px; 
  background: linear-gradient(90deg, #6668eb, #17be55); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.sam__button-overlay-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
}
.sam__checkout-btn-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  cursor: pointer;
}