/* =========================================================
   BIGSURVEY - BUDGET / QUOTE CSS
========================================================= */

/* Global */
.budget-icon {
    position: relative !important;
    cursor: pointer;
}

.bs-budget-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    font-family: 'Gotham','Montserrat',sans-serif;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
}

@keyframes bsSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bs-spin {
    animation: bsSpin .8s linear infinite;
}

.bs-budget-btn.bs-budget-added {
    background-color: #27ae60 !important;
    color: #fff !important;
}

.bs-budget-btn.bs-budget-added:hover {
    background-color: #219a52 !important;
}

/* Hide Woo default product meta */
.single-product .product_meta {
    display: none !important;
}

/* =========================================================
   SINGLE PRODUCT
========================================================= */

.single-product form.cart {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif;
}

.single-product .bs-qty-row {
    width: 100%;
    display: block;
    margin-bottom: 2px;
}

.single-product .quantity,
.single-product .bs-qty-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid #c0c0c0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    height: 58px;
    width: 200px;
    background: #fff;
}

.single-product .quantity input.qty {
    flex: 1 !important;
    height: 100% !important;
    text-align: center !important;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    border: none !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.single-product .quantity input::-webkit-outer-spin-button,
.single-product .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.single-product .bs-qty-minus,
.single-product .bs-qty-plus {
    width: 56px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #333 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: color .15s ease;
    padding: 0 !important;
    outline: none !important;
    flex-shrink: 0;
}

.single-product .bs-qty-minus:hover,
.single-product .bs-qty-plus:hover {
    color: #000 !important;
}

.single-product .quantity .minus:not(.bs-qty-minus),
.single-product .quantity .plus:not(.bs-qty-plus) {
    display: none !important;
}

.single-product .bs-buttons-row,
.single-product .bs-quote-buttons-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

.single-product .bs-quote-buttons-row {
    margin-top: 16px;
    margin-bottom: 4px;
}

.single-product .bs-budget-btn {
    background-color: #FFCC00 !important;
    color: #1a1a1a !important;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 24px !important;
    height: 58px;
    min-width: 220px;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color .2s ease;
    border: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .01em;
    cursor: pointer;
    box-sizing: border-box;
}

.single-product .bs-budget-btn:hover {
    background-color: #e6b800 !important;
}

.single-product .bs-budget-btn.bs-budget-added {
    background-color: #27ae60 !important;
    color: #fff !important;
    min-width: 220px;
}

.single-product .bs-budget-btn.bs-budget-added:hover {
    background-color: #219a52 !important;
}

.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
    background-color: #111 !important;
    color: #fff !important;
    border: none !important;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 28px !important;
    height: 58px;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background-color .2s ease;
    text-transform: none !important;
    flex-grow: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: .01em;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #333 !important;
}

.single-product .bs-cart-icon {
    flex-shrink: 0;
}

.single-product .bs-whatsapp-btn {
    background-color: #25D366 !important;
    color: #fff !important;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 28px !important;
    height: 58px;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color .2s ease;
    border: none !important;
    white-space: nowrap;
    flex-grow: 1;
    letter-spacing: .01em;
    cursor: pointer;
    box-sizing: border-box;
}

.single-product .bs-whatsapp-btn:hover {
    background-color: #1da851 !important;
    color: #fff !important;
}

.bs-whatsapp-helper {
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif;
    font-size: 13px;
    color: #666;
    margin: 4px 0 0;
    text-align: right;
}

.bs-product-meta {
    margin-top: 24px;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif;
}

.bs-meta-row {
    font-size: 15px;
    line-height: 2.2;
    color: #333;
    margin-bottom: 0;
}

.bs-meta-label {
    font-weight: 400;
    color: #333;
}

.bs-meta-value,
.bs-meta-cat a,
.bs-meta-vendor {
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.bs-meta-cat a:hover,
.bs-meta-vendor:hover {
    text-decoration: underline;
}

/* Quote modal */
.bs-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.bs-quote-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px 36px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    z-index: 1;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif;
}

.bs-quote-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.bs-quote-close:hover {
    color: #000;
}

.bs-quote-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 28px;
    text-align: center;
    line-height: 1.3;
}

.bs-quote-field {
    margin-bottom: 20px;
}

.bs-quote-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.bs-quote-field input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 15px;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif;
    color: #333;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.bs-quote-field input:focus {
    border-color: #FFCC00;
}

.bs-quote-field input::placeholder {
    color: #aaa;
}

.bs-quote-submit-btn {
    width: 100%;
    height: 54px;
    background-color: #FFCC00 !important;
    color: #111 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color .2s ease;
    margin-top: 8px;
}

.bs-quote-submit-btn:hover {
    background-color: #e6b800 !important;
}

/* =========================================================
   BUDGET PLANNING PAGE
========================================================= */

.bs-bp-wrap {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 80px 0;
    background: transparent;
    font-family: 'Gotham','Gotham Pro','Montserrat',sans-serif;
    box-sizing: border-box;
    color: #111;
}

.bs-bp-wrap * {
    box-sizing: border-box;
}

.bs-bp-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-weight: 400;
}

.bs-bp-breadcrumb span {
    color: #111;
    font-weight: 500;
}

.bs-bp-title {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin: 0 0 32px;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.2;
    word-wrap: break-word;
}

.bs-bp-header {
    display: grid;
    grid-template-columns: 44px 1fr 150px 130px 180px;
    gap: 20px;
    align-items: center;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #111;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.bs-bp-select-all-row {
    display: grid;
    grid-template-columns: 44px 1fr 150px 130px 180px;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e2e2;
}

.bs-bp-select-all-row strong {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #111;
}

.bs-bp-row {
    display: grid;
    grid-template-columns: 44px 1fr 150px 130px 180px;
    gap: 20px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #e2e2e2;
    transition: opacity .3s;
}

.bs-bp-cat-label {
    padding: 30px 0 8px;
}

.bs-bp-cat-label span {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 24px;
    letter-spacing: .02em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-bp-checkbox-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.bs-bp-checkbox-wrap input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bs-bp-checkmark {
    width: 22px;
    height: 22px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    background: #fff;
}

.bs-bp-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid #ddd;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.bs-bp-checkbox-wrap input:checked + .bs-bp-checkmark {
    background: #2196F3;
    border-color: #2196F3;
}

.bs-bp-checkbox-wrap input:checked + .bs-bp-checkmark::after {
    border-color: #fff;
}

.bs-bp-product-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bs-bp-thumb-link {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: block;
    background: transparent;
    overflow: hidden;
    border: none;
}

.bs-bp-thumb-link img,
.bs-bp-wrap img.bs-bp-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
    background: transparent;
}

.bs-bp-product-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.bs-bp-product-name {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bs-bp-product-name:hover {
    color: #2196F3;
    text-decoration: underline;
}

.bs-bp-vendor {
    font-size: 13px;
    color: #777;
    font-weight: 400;
}

.bs-bp-col-price {
    font-size: 15px;
    color: #111;
    font-weight: 600;
}

.bs-bp-from {
    font-size: 13px;
    font-weight: 400;
    color: #777;
    display: block;
    margin-bottom: 2px;
}

.bs-bp-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #777;
    border-radius: 6px;
    overflow: hidden;
    height: 38px;
    background: #fff;
    transition: border-color .2s;
}

.bs-bp-qty-wrap:hover {
    border-color: #333;
}

.bs-bp-qty-btn {
    width: 34px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s, color .15s !important;
    padding: 0 !important;
    outline: none !important;
}

.bs-bp-qty-btn:hover,
.bs-bp-qty-btn:focus,
.bs-bp-qty-btn:active {
    background: #f0f0f0 !important;
    color: #FFCC00 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.bs-bp-qty-input {
    width: 44px !important;
    height: 100% !important;
    text-align: center !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid #777 !important;
    border-right: 1px solid #777 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    -moz-appearance: textfield !important;
    outline: none !important;
    font-family: 'Gotham','Montserrat',sans-serif !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bs-bp-qty-input::-webkit-outer-spin-button,
.bs-bp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bs-bp-col-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bs-bp-date {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    text-align: center;
    width: 100%;
    display: block;
}

.bs-bp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFD100;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    width: 100%;
    max-width: 170px;
    border-radius: 6px;
    border: none !important;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    font-family: 'Gotham','Montserrat',sans-serif;
    white-space: nowrap;
    outline: none;
}

.bs-bp-action-btn:hover {
    background: #eac000;
}

.bs-bp-action-btn.bs-bp-added {
    background: #27ae60 !important;
    color: #fff !important;
}

.bs-bp-remove {
    font-size: 12px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 400;
    text-align: center;
    width: 100%;
    transition: color .2s;
    margin-top: 4px;
}

.bs-bp-remove:hover {
    color: #e74c3c;
}

.bs-bp-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 32px;
    padding: 30px 0 0;
    margin-top: 10px;
}

.bs-bp-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-align: left;
}

.bs-bp-total-value {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    text-align: right;
}

.bs-bp-checkout-all {
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    min-width: 180px;
    border-radius: 6px;
    font-family: 'Gotham','Montserrat',sans-serif;
    border: none !important;
}

/* Empty state */
.bs-bp-empty {
    text-align: center;
    padding: 60px 20px;
}

.bs-bp-empty svg {
    margin-bottom: 16px;
    stroke: #ccc;
}

.bs-bp-empty h3 {
    font-size: 20px;
    font-weight: 500;
    color: #222;
    margin: 0 0 8px;
}

.bs-bp-empty p {
    color: #777;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.bs-bp-shop-btn {
    display: inline-block;
    background: #FFD100;
    color: #111;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s;
    font-family: 'Gotham','Montserrat',sans-serif;
}

.bs-bp-shop-btn:hover {
    background: #eac000;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 1024px) {
    .bs-bp-header,
    .bs-bp-select-all-row,
    .bs-bp-row {
        grid-template-columns: 44px 1fr 130px 110px 160px;
        gap: 16px;
    }

    .bs-bp-wrap {
        padding: 0 16px 80px;
    }
}

@media screen and (max-width: 768px) {
    .single-product .bs-buttons-row,
    .single-product .bs-quote-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .bs-budget-btn,
    .single-product .single_add_to_cart_button,
    .single-product .bs-whatsapp-btn {
        width: 100% !important;
        min-width: unset;
        flex-grow: 0 !important;
    }

    .single-product .quantity,
    .single-product .bs-qty-wrapper {
        width: 100%;
    }

    .bs-whatsapp-helper {
        text-align: center;
    }

    .bs-quote-dialog {
        padding: 32px 24px 28px;
    }

    .bs-bp-wrap {
        padding: 16px 16px 80px;
        width: 100%;
    }

    .bs-bp-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .bs-bp-header {
        display: none;
    }

    .bs-bp-select-all-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0 16px;
        border-bottom: 1px solid #e2e2e2;
    }

    .bs-bp-row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 24px 0;
        border-bottom: 1px solid #e2e2e2;
        position: relative;
        gap: 12px;
    }

    .bs-bp-col-check {
        position: absolute;
        top: 24px;
        left: 0;
        z-index: 2;
        margin-top: 2px;
    }

    .bs-bp-col-product {
        flex: 1 1 100%;
        padding-left: 36px;
        margin-bottom: 8px;
    }

    .bs-bp-product-info {
        gap: 12px;
    }

    .bs-bp-thumb-link {
        width: 72px;
        height: 72px;
    }

    .bs-bp-product-name {
        font-size: 15px;
        line-height: 1.3;
    }

    .bs-bp-col-price {
        flex: 1 1 auto;
        padding-left: 36px;
        font-size: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .bs-bp-col-qty {
        flex: 0 0 auto;
    }

    .bs-bp-qty-wrap {
        height: 36px;
    }

    .bs-bp-col-action {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding-left: 36px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px dashed #eee;
        gap: 12px;
    }

    .bs-bp-date {
        font-size: 11px;
        text-align: left;
        margin: 0;
        width: 100%;
        order: 1;
    }

    .bs-bp-action-btn {
        flex: 1 1 auto;
        max-width: none;
        padding: 12px 16px;
        font-size: 13px;
        order: 2;
    }

    .bs-bp-remove {
        flex: 0 0 auto;
        margin: 0;
        order: 3;
        text-align: right;
        width: auto;
    }

    .bs-bp-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 24px 0;
        margin-top: 16px;
    }

    .bs-bp-total-label {
        font-size: 16px;
        text-align: center;
    }

    .bs-bp-total-value {
        font-size: 24px;
        text-align: center;
        margin-top: -8px;
    }

    .bs-bp-checkout-all {
        width: 100%;
        padding: 16px;
        font-size: 15px;
        justify-content: center;
    }
}

@media screen and (max-width: 380px) {
    .bs-bp-col-product,
    .bs-bp-col-price,
    .bs-bp-col-action {
        padding-left: 32px;
    }

    .bs-bp-thumb-link {
        width: 60px;
        height: 60px;
    }
}