/* Ensure product container is relative */
.woocommerce ul.products li.product {
    position: relative;
}

/* Outer circle */
.swpc-badge-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 58px;
    height: 58px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Inner ring */
.swpc-badge-inner {
    width: 50px;
    height: 50px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

/* Small text */
.swpc-badge-small {
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Big text */
.swpc-badge-big {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.swpc-add-logo-btn {
    display: inline-block;
    background: #f2e500;
    color: #fff !important;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.swpc-add-logo-btn:hover {
    background: #e85f00;
}

/* ===== Popup overlay ===== */
#swpc-simple-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
}

/* ===== Popup box ===== */
#swpc-simple-popup .swpc-popup-inner {
  position: relative;
  max-width: 520px;
  width: 90%;
  background: #fff;
  margin: 10vh auto;
  padding: 30px 30px 25px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  text-align: center;
  font-family: inherit;
}

/* ===== Title ===== */
#swpc-simple-popup h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    width: 100%;
    display: block;
}

/* ===== Description ===== */
#swpc-simple-popup p {
  margin: 0 0 20px;
  font-size: 16px;
  color: #444;
}

/* ===== Product block ===== */
.swpc-product {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  text-align: left;
}

.swpc-product img {
  width: 70px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.swpc-product-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.swpc-product-meta, .swpc-product-qty {
    font-size: 14px;
    color: #666;
    text-transform: capitalize;
}
/* ===== Price & buttons ===== */
.swpc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.swpc-price {
  font-size: 22px;
  font-weight: 700;
}

/* Buttons */
#swpc-simple-popup .button {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* ===== Close button ===== */
.swpc-popup-close {
    position: absolute;
    top: 22px;
    right: 12px;
    width: 40px;
    border: none;
    border-radius: 6px !important;
    font-size: 20px !important;
    cursor: pointer !important;
    padding: 0px !important;
    height: 40px;
}


.swpc-popup-close:hover {
  background: #e2e2e2;
}


.swpc-price-row {
  display: flex;
  justify-content: space-between;
  margin: 25px 0;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.swpc-price-left {
    font-size: 16px;
    text-align: left;
}

.swpc-per-item {
  color: #666;
  margin-top: 4px;
}

.swpc-price-right {
  text-align: right;
  font-size: 18px;
}

.swpc-total {
  color: #18a558;
  font-size: 24px;
  margin-left: 6px;
}

.swpc-tax {
  display: block;
  font-size: 12px;
  color: #777;
}

.swpc-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0 5px 0;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.swpc-actions a{
    color: #000 !important;
}

.swpc-logo-btn {
  background: #f2e500;
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.swpc-view-btn {
  border: 2px solid #ccc;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  color: #333;
}

.swpc-continue {
    display: block;
    margin-top: 10px;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
}
.wrapcolorbx{
  display: inline-flex !important;
}
.colorbx{
  display:block !important;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .swpc-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
