/* ===================================================== UTILITY CLASSES ===================================================== */
.wpa-hidden {
  display: none !important;
}
/* ===================================================== ADDONS CONTAINER ===================================================== */
.wpa-addons {
  margin: 20px 0;
}
/* ===================================================== IMAGE PREVIEW ===================================================== */
.wpa-preview {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}
.wpa-preview img {
  width: 240px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
/* =====================================================
PREMIUM MINIMAL ADDON UI
CLEAN • LUXURY • MODERN
===================================================== */
.wpa-wrapper,
.wpa-wrapper * {
  box-sizing: border-box;
}
.wpa-wrapper {
  display: block;
  width: 100%;
  font-family: inherit;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  border: 1px solid #f1f5f9;
  border-radius: 28px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
/* ===================================================== HEADER ===================================================== */
/* =====================================================
HEADER
===================================================== */

.wpa-head {
  margin-bottom: 26px;
}

.wpa-head-left h4 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* =====================================================
CARD
===================================================== */

.wpa-card {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  width: 100%;

  margin-bottom: 14px;

  padding: 16px 18px;

  background: #fff;

  border: 1px solid #edf2f7;

  border-radius: 22px;

  cursor: pointer;

  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease;
}

.wpa-card:hover {
  border-color: #d8b4fe;

  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.06);
}

.wpa-card.wpa-selected {
  border-color: #22c55e;

  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Hidden cards for View More functionality */
.wpa-card.wpa-hidden {
  display: none;
}

/* ===================================================== LEFT ===================================================== */
.wpa-left {
  display: flex !important;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.wpa-left input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #7c3aed;
}
/* ===================================================== IMAGE ===================================================== */
.wpa-img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wpa-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
/* ===================================================== CENTER ===================================================== */
.wpa-center {
  flex: 1 1 auto;
  min-width: 0;
}
.wpa-title {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.3px;
}
/* ===================================================== PRICE ===================================================== */
.wpa-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}
.wpa-price strong {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}
.wpa-price del {
  opacity: 0.45;
}
.wpa-price .save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
}
/* ===================================================== RIGHT ===================================================== */
.wpa-right {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
/* ===================================================== BADGE ===================================================== */
.wpa-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: max-content;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.wpa-free {
  background: #ecfdf5;
  color: #16a34a;
}
.wpa-popular {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ea580c;
}
.wpa-recommended {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #c084fc;
}
/* ===================================================== QTY ===================================================== */
.wpa-qty {
  -webkit-appearance: auto;
  appearance: auto;
  width: 64px !important;
  min-width: 64px;
  height: 42px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  text-align: center;
  color: #111827 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 0 10px !important;
  box-sizing: border-box;
  box-shadow: none !important;
}
.wpa-qty:focus {
  outline: none !important;
  border-color: #c084fc !important;
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.1) !important;
}
/* ===================================================== LOAD MORE ===================================================== */
.wpa-load-wrap {
  text-align: center;
  margin-top: 24px;
}
.wpa-load-more {
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.16);
}
.wpa-load-more:hover {
  transform: translateY(-2px);
}
/* ===================================================== SUMMARY ===================================================== */
.wpa-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.wpa-summary > div {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 18px;
  color: #64748b;
  font-size: 13px;
}
.wpa-summary strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}
.wpa-grand-total {
  color: #7c3aed !important;
}

/* ===================================================== MOBILE ===================================================== */
@media (max-width:768px){

    .wpa-wrapper{
        padding:8px;
        border-radius:16px;
    }

    .wpa-head{
        margin-bottom:14px;
    }

    .wpa-head-left h4{
        font-size:22px;
        line-height:1.15;
        letter-spacing:-0.5px;
    }

    .wpa-card{
        padding:10px 12px;
        gap:8px;
        margin-bottom:10px;
        border-radius:18px;
        align-items:center;
    }

    .wpa-left{
        gap:8px;
    }

    .wpa-img{
        width:54px;
        height:54px;
        min-width:54px;
        border-radius:10px;
    }

    .wpa-title{
        font-size:12px;
        font-weight:600;
        line-height:1.25;
        margin-bottom:2px;
    }

    .wpa-price{
        gap:4px;
        font-size:102px!important;
        
    }

    .wpa-price strong,
    .wpa-price .woocommerce-Price-amount,
    .wpa-price .amount,
    .wpa-price bdi{
    font-size:14px !important;
    font-weight:600 !important;
    line-height:1.2;
    color: #dd3333;
}

    .wpa-right{
        gap:6px;
    }

    .wpa-qty{
        width:52px !important;
        min-width:52px;
        height:36px !important;
        font-size:13px;
    }

    .wpa-badge{
        height:20px;
        font-size:9px;
        padding:0 6px;
        top:-10px;
    }

    .wpa-load-wrap{
        margin-top:16px;
    }

    .wpa-load-more{
        width:100%;
        height:44px;
        font-size:13px;
    }

    .wpa-summary{
        grid-template-columns:1fr;
        gap:10px;
        margin-top:16px;
    }

    .wpa-summary > div{
        padding:12px;
    }

    .wpa-summary strong{
        font-size:18px;
    }

    .wpa-preview{
        display:none !important;
    }
}
