@import url('https://fonts.googleapis.com/css2?display=swap&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
#combo-builder {
    max-width: 100%;
    padding: 30px;
    border: 1px solid #C0C0C0;
    backdrop-filter: blur(13px);
    border-radius: 16px;
}
.combo-title {
    text-align: left;
    color: #D1193E;
    font-family: 'Nunito';
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}
.combo-description {
    text-align: left;
    color: black;
    font-weight: 500;
}
/* ---------- COMBO ROW ---------- */
.combo-row {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 0px;
    position: relative;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    box-shadow: 0px 10px 14.6px 0px #6565651A;
    border: 1px solid #E1E1E1;
    padding: 10px;
}
/* ---------- NUMBER ---------- */
.combo-num {
    background: #FFEBEF;
    height: 100%;
    padding: 10px 0px;
    text-align: center;
    border-radius: 5px;
    color: #D1193E;
    font-family: 'Nunito';
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    width: 70px;
    line-height: 1;
    display: block;
    min-width: 70px;
}
/* ---------- COMBO FEILDS ---------- */
.combo-field {
    display: flex;
    flex-direction: column;
    width: 100%;
/*     padding: 20px 0px 20px; */
    align-items: flex-start;
}
.combo-field label {
    color: black !important;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
}
.combo-field:nth-child(2) label {
    color: #ed1d45 !IMPORTANT;
}
.combo-field.combo-variation-wrap {
    width: 100%;
}
.combo-row select {
    padding: 6px;
    min-width: auto;
    border-radius: 4px;
    color: #333333 !important;
    font-size: 14px;
    padding: 12px 30px 12px 10px;
    height: auto !important;
    margin-top: 3px !important;
    border: 1px solid #E1E1E1 !important;
}
.combo-row select.combo-category {
    border-color: #DD46654D !important;
}
#combo-rows {
    max-height: 870px;
    overflow-y: auto;
}
#combo-rows::-webkit-scrollbar-track{
    background-color: #F5F5F5;
    border-radius: 10px;
}
#combo-rows::-webkit-scrollbar{
    width: 6px;
    border-radius: 10px;
    background-color: #F5F5F5;
}
#combo-rows::-webkit-scrollbar-thumb{
    background-color: #ed1d45;
    border-radius: 10px;
}
/* ---------- IMAGE BOX ---------- */
.combo-img {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    border: 1px solid #e3dfe0;
    overflow: hidden;
    min-width: 100px;
    background: #FFEBEF;
    border-radius: 6px;
    border-color: #FFEBEF;
}
.combo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.combo-img a {
    display: flex;
    height: 100%;
}
.img-placeholder {
    color: #951d34;
    font-size: 12px;
}
/* ---------- REMOVE BUTTON ---------- */
.combo-row .remove-row {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ed1d45;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    margin: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    line-height: 1;
    min-width: auto;
    min-height: auto;   
}
/* ---------- PRICING ROW ---------- */
.price-buy-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #FFCDD7;
    padding-top: 20px;
    margin-top: 25px;
}
#regular-total {
    color: black;
    margin-left: 2px;
}
#combo-prices p {
    margin: 6px 0;
    color: #000000 !important;
    font-weight: 500;
    font-size: 16px;
}
#combo-prices p.combo-total {
    color: #000000 !important;
    font-weight: 500;
}
#combo-error { 
    margin-top:8px; 
    color:#b00; 
}
.curreny-symbole {
    margin-right: 2px;
    margin-left: 2px;
}
#combo-prices p {
    color: #000000 !important;
    font-weight: 400;
    font-size: 14px;
    text-align: left;
}
#combo-prices p.combo-total {
    font-weight: 500;
    color: #D1193E !important;
    font-weight: 800;
    font-size: 18px;
    padding-top: 10px;
}
small#combo-save-text {
    font-size: 11px;
    color: black !important;
}
#combo-total {
    color: #D1193E;
    font-weight: 800;
}
span.plus-sign {
    width: 32px;
    height: 32px;
    display: inline-flex;
    background: #FFEDF0;
    border-radius: 50px;
    font-size: 25px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}
/* ---------- BUTTONS ---------- */
#buy-combo {
    background: #D1193E;
    font-weight: 700;
    color: #fff;
    border-radius: 50px;
    padding: 12px 25px;
    border: none;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    margin: 0px;
}
#add-row {
    border: none;
    font-size: 16px;
    letter-spacing: 0px;
    padding: 0px;
    margin: 0;
    color: #D1193E;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

/* ---------- RESPONSIVE CSS ---------- */
@media(max-width:549px){
#combo-builder {
	width: 92%;
}	
.combo-title {
    font-size: 20px;
}	
.combo-description {
    font-size: 15px;
    line-height: 1.3;
}	
.combo-row {
    flex-wrap: wrap;
    gap: 6px 10px;
    border: none;
    box-shadow: none;
    padding: 0px;
    overflow: unset;
}
.combo-num {
    padding: 5px 10px;
    width: auto;
    min-width: auto;
    border-radius: 4px;
    font-size: 11px;
}
.combo-field {
    padding: 0px;
    width: 100%;
}
.combo-row select {
    width: 100%;
    min-width: auto;
    font-size: 14px;
    margin-bottom: 0px;
    padding: 8px 30px 8px 10px;
}
.combo-img {
    width: 30%;
    border-radius: 5px;
}
.combo-field label {
    display: none;
}
.combo-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-bottom: 15px;
}
.combo-field {
    grid-column: 1/4;
}
.combo-img {
    grid-column: 4/4;
    grid-row: 1/5;
    height: 100%;
}
#combo-rows {
    border-top: 1px solid #FFCDD7;
    padding-top: 24px;
}	
button#buy-combo {
    width: 100%;
}	
button#add-row {
    font-size: 14px;
}
.price-buy-button {
    padding-top: 15px;
    margin-top: 25px;
}
#combo-prices p {
    font-size: 13px;
}
#combo-prices p.combo-total {
    font-size: 18px;
	padding-top: 0px;
}
.price-buy-button {
    flex-direction:column;
    gap:10px;
    align-items:flex-start
}	
}
/* ===== Cart back button ===== */
.cb-back-button {
    display: inline-block;
    margin-bottom: 18px;
    padding: 9px 18px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.cb-back-button:hover {
    background: #e8e8e8;
    border-color: #bbb;
    color: #111;
    text-decoration: none;
}

/* ===== Combo header (title + reset button) ===== */
.combo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
#reset-combo {
    white-space: nowrap;
    background: transparent;
    border: 1px solid #D1193E;
    color: #D1193E;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0;
    min-width: auto;
    line-height: 1;
}
#reset-combo:hover {
    background: #D1193E;
    color: #fff;
}

/* ===== Loader overlay ===== */
#combo-builder {
    position: relative;
}
#cb-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    border-radius: 16px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: #D1193E;
    font-weight: 600;
}
.cb-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #FFCDD7;
    border-top-color: #D1193E;
    border-radius: 50%;
    animation: cb-spin 0.7s linear infinite;
}
@keyframes cb-spin {
    to { transform: rotate(360deg); }
}

/* ===== Product page combo-in-cart notice ===== */
.cb-combo-cart-notice {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #D1193E;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}
.cb-combo-cart-notice a {
    color: #D1193E;
    font-weight: 600;
    text-decoration: underline;
}

@media(max-width:549px){
    .combo-header { flex-direction: column; gap: 8px; }
    #reset-combo  { align-self: flex-end; }
}
