#scwfc-widget,
#scwfc-reopen {
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

#scwfc-widget * {
  box-sizing: border-box;
}

#scwfc-widget {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 300px;
  background: var(--scwfc-dark, #111);
  color: #fff;
  border-radius: 16px;
  padding: 12px;
  z-index: 99999;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .26);
}

.scwfc-close {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 28px;
  height: 28px;
  line-height: 24px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

.scwfc-label {
  font-size: 12px;
  opacity: .75;
  margin-bottom: 3px;
}

.scwfc-price-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding-right: 20px;
}

.scwfc-price {
  flex: 1;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.05;
  display: flex;
  align-items: center;
}

.scwfc-qty-wrap {
  width: 78px;
}

.scwfc-qty-wrap label {
  display: block;
  font-size: 10px;
  opacity: .75;
  margin-bottom: 3px;
}

#scwfc-qty {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 7px 6px;
  font-weight: bold;
  text-align: center;
  font-size: 13px;
}

.scwfc-saving {
  color: var(--scwfc-primary, #ffdd00);
  font-weight: bold;
  font-size: 12px;
  line-height: 1.15;
  display: flex;
  align-items: center;
}

.scwfc-discount-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--scwfc-primary, #ffdd00);
  text-decoration: underline;
  font-weight: bold;
}

.scwfc-info,
.scwfc-progress-text {
  font-size: 11px;
  line-height: 1.3;
  margin-top: 5px;
  color: #e8e8e8;
}

.scwfc-dynamic {
  margin-top: 7px;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #e8e8e8;
}

.scwfc-dynamic-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(255,255,255,.07);
  border-radius: 7px;
}

.scwfc-dynamic-item span {
  opacity: .78;
}

.scwfc-dynamic-item strong {
  text-align: right;
  color: #fff;
}

.scwfc-progress {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 7px;
}

.scwfc-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--scwfc-primary, #ffdd00);
  border-radius: 999px;
  transition: width .25s ease;
}

.scwfc-actions {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.scwfc-add,
.scwfc-whatsapp {
  border: 0;
  border-radius: 10px;
  padding: 9px;
  font-weight: bold;
  cursor: pointer;
}

.scwfc-add {
  flex: 1;
  background: var(--scwfc-primary, #ffdd00);
  color: #111;
}

.scwfc-whatsapp {
  width: 44px;
  background: #25d366;
  color: #fff;
}

#scwfc-reopen {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99999;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--scwfc-dark, #111);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
  cursor: pointer;
}

@media (max-width: 768px) {
  #scwfc-widget {
    left: 6px;
    right: 6px;
    bottom: 6px;
    width: auto;
    border-radius: 13px;
    padding: 7px;
  }

  .scwfc-close {
    top: 1px;
    right: 4px;
    font-size: 28px;
    width: 34px;
    height: 34px;
    line-height: 30px;
  }

  .scwfc-label,
  .scwfc-info,
  .scwfc-progress,
  .scwfc-progress-text,
  .scwfc-discount-link {
    display: none !important;
  }

  .scwfc-price-row {
    display: grid;
    grid-template-columns: 74px 1fr 76px;
    gap: 5px;
    align-items: stretch;
    padding-right: 24px;
  }

  .scwfc-qty-wrap {
    width: auto;
    order: 1;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 4px;
  }

  .scwfc-price {
    order: 2;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 6px 4px;
    font-size: 17px;
    line-height: 1.05;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scwfc-saving {
    order: 3;
    margin: 0;
    background: rgba(255,221,0,.14);
    border-radius: 10px;
    padding: 6px 4px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
    color: var(--scwfc-primary, #ffdd00);
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .scwfc-saving::before {
    content: "🏷️ Ahorra ";
    margin-right: 2px;
  }

  .scwfc-qty-wrap label {
    display: block;
    text-align: center;
    font-size: 9px;
    margin-bottom: 2px;
    opacity: .8;
  }

  #scwfc-qty {
    height: 26px;
    padding: 3px;
    font-size: 13px;
    border-radius: 8px;
  }

  .scwfc-dynamic {
    display: none !important;
  }

  .scwfc-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
  }

  .scwfc-add {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    font-size: 13px;
  }

  .scwfc-whatsapp {
    width: 40px;
    height: 34px;
    padding: 0;
    font-size: 0;
    border-radius: 10px;
  }

  .scwfc-whatsapp::before {
    content: "💬";
    font-size: 19px;
  }

  #scwfc-reopen {
    left: auto;
    right: 6px;
    bottom: 6px;
    width: auto;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 12px;
  }
}