.ccp-modal { position: fixed; inset: 0; display: none; z-index: 99999; }
.ccp-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.ccp-modal-inner {
    position: relative;
    max-width: 900px;
    margin: 6% auto;
    background: #fff;
    padding: 20px 35px;
    border-radius: 10px;
    z-index: 2;
}

.ccp-products { max-height: 60vh; overflow-y: auto; margin-top: 15px; padding:20px; }
.item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding: 10px 0; }
.item-right { text-align: right; 
display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.ccp-button, .ccp-add { background: #142244; color: #fff; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer; }
.ccp-button:hover, .ccp-add:hover { background: #142244; }
.ccp-sku-group h3 { margin-top: 15px; font-size: 16px; }
.item-left div {
    display: flex;
    flex-direction: column;
    width: 420px;
}

.item-left {
    display: flex;
    /* width: 50%; */
    justify-content: space-between;
    gap: 20px;
}
.ccp-qty-wrapper button {
    background: none !important;
    color: #000 !important;
    border: none !important;
    padding: 5px !important;
    font-size: 20px !important;
}
button.ccp-close {
    font-size: 25px !important;
    top: 10px;
    right: 0px;
    padding: 10px 15px !important;
    position: relative;
    float: right;
    background-color: #2978FF !important;
    border: none; 
    background: none; 
    cursor: pointer;
}

button#continue-product {
    margin-top: 20px;
    font-family: "Gilroy", sans-serif;
    background: #2978FF;
}

.ccp-actions {
    display: flex;
    justify-content: end;
}

.product-details strong {
    font-family: "Gilroy", sans-serif;
}

.product-details span {
    font-family: "Gilroy", sans-serif;
}
.product-details span.woocommerce-Price-amount.amount {
    font-weight: 600;
}

button.ccp-add {
    font-family: "Gilroy", sans-serif !important;
    padding: 10px 20px !important;
    background: #2978FF !important;
}
.ccp-qty {
    font-family: "Gilroy", sans-serif !important;
    -moz-appearance: textfield;
}
/* Chrome, Safari, Edge, Opera */
.ccp-qty::-webkit-outer-spin-button,
.ccp-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


a.ccp-product-link {
    display: flex;
    flex-direction: column;
    font-family: "Gilroy", sans-serif !important;
    color: #484e57 !important;
    font-size: 14px !important;
    line-height: 20px;
    font-weight: normal !important;
}
.item-left img {
    width: 60px !important;
    object-fit: contain !important;
    height: 60px !important;
}
/* ============================
   RESPONSIVE STYLES
   ============================ */

/* Tablets (max-width: 991px) */
@media (max-width: 991px) {
  .ccp-modal-inner {
    max-width: 95%;
    margin: 8% auto;
    padding: 15px 20px;
  }
.item {

    gap: 20px;
}
  .ccp-products {
    max-height: 55vh;
    padding: 15px;
  }

  .item-left div {
    width: 100%;
  }

  .item-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .item-right {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
.ccp-modal-inner h2 {
    font-size: 18px !important;
line-height: 22px !important;
}
  .ccp-button, .ccp-add {
    padding: 8px 12px;
    font-size: 14px;
  }
  button.ccp-close {
    top: 10px;
    right: 10px;
    padding: 6px 10px !important;
    font-size: 18px !important;
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .ccp-modal-inner {
    margin: 12% auto;
    padding: 15px;
    border-radius: 8px;
  }

  h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .item-left {
    flex-direction: row;
    width: 100%;
    gap: 12px;
  }

  .item-left img {
    width: 60px;
    height: 45px;
  }

  .product-details strong,
  .product-details span {
    font-size: 13px;
    line-height: 1.4;
  }

  .item-right {
    width: 100%;
    justify-content: space-between;
  }

  .ccp-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .ccp-qty {
    width: 45px;
    font-size: 14px;
    padding: 4px;
  }

  .ccp-add {
    flex: 1;
    text-align: center;
    font-size: 14px;
    padding: 8px !important;
  }

  button.ccp-close {
    top: 10px;
    right: 10px;
    padding: 6px 10px !important;
    font-size: 18px !important;
  }

  #continue-product {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }
}
