/* Bucks Cage Booking - Matching intelliwebmedia style */

.request-quote-form-wrapper {
    position: relative;
    background: #f0e8e1;
    padding: 30px;
    border-radius: 10px;
}

/* Ensure headings and helper text are left-aligned in the quote flow */
.request-quote-form-wrapper h3,
.request-quote-form-wrapper p {
    text-align: left;
}

.request-quote-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 232, 225, 0.95);
    border-radius: 10px;
    z-index: 100;
}

.request-quote-loading:before {
    /* Keep the overlay but remove the 'Loading...' text */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 600;
    color: #308e56;
}

/* Review page */
.cage-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cage-review-grid {
        grid-template-columns: 1fr;
    }
}

.cage-review-summary {
    /* Right column in the review matches the existing site layout: no white card */
    padding: 6px 6px 0 6px;
}

.cage-review-summary-title {
    color: #308e56;
    margin: 0 0 14px 0;
    font-weight: 600;
}

.cage-review-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 10px;
}


/* Force left alignment inside the white Booking Details card (theme styles can override) */
.cage-review-card,
.cage-review-card h4,
.cage-review-card p,
.cage-review-card strong {
    text-align: left !important;
}


.cage-review-kv {
    text-align: left;
}

.cage-review-card h4 {
    color: #308e56;
    margin: 0 0 14px 0;
    font-weight: 600;
}

.cage-review-kv p {
    margin: 0 0 14px 0;
}

.cage-review-items-list .cage-review-items-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0e8e1;
}

/* Remove the grey rule under the final item row so it doesn't sit on top of the green total rule */
.cage-review-items-list .cage-review-items-row:last-child {
    border-bottom: none;
}

.cage-review-item-price {
    color: #308e56;
    font-weight: 600;
}

.cage-review-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid #308e56;
    text-align: right;
}

.cage-review-total strong {
    color: #308e56;
    font-size: 18px;
}

.cage-review-total-note {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.85;
}

.service-boxes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.service-box {
    background: #beb8b1;
    padding: 20px 40px;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: none;
}

.service-box:hover {
    background: #eac974;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 0;
}

.service-box h4 {
    color: white;
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 18px;
}

.service-box p {
    color: white;
    font-size: 14px;
    margin: 0;
}

.btn-default {
    background-color: #eac974 !important;
    border-color: #eac974 !important;
    border-radius: 35px;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500;
    padding: 17px 32px;
    text-transform: uppercase;
    min-width: 150px;
    text-decoration: none !important;
    display: inline-block;
}

/* Ensure no button shadows anywhere in the booking UI */
.request-quote-form-wrapper .btn,
.request-quote-form-wrapper button,
.request-quote-form-wrapper input[type="button"],
.request-quote-form-wrapper input[type="submit"],
.request-quote-form-wrapper input[type="reset"] {
    box-shadow: none !important;
}
.request-quote-form-wrapper .btn:focus,
.request-quote-form-wrapper button:focus,
.request-quote-form-wrapper input[type="button"]:focus,
.request-quote-form-wrapper input[type="submit"]:focus,
.request-quote-form-wrapper input[type="reset"]:focus {
    box-shadow: none !important;
}

.btn-default:hover {
    background-color: #d4b35f !important;
    border-color: #d4b35f !important;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 14px !important;
    min-width: auto;
}

.basket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #d0d0d0;
}

.basket-row:last-child {
    border-bottom: none;
}

.basket-row-name {
    flex: 1;
    font-size: 16px;
}

.basket-row-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 20px;
}

.basket-row-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #308e56;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.basket-row-controls button:hover {
    background: #2a7848;
}

.basket-row-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.basket-quantity-display {
    width: 60px;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    padding: 8px;
    font-size: 16px;
    font-weight: 600;
    background: white;
}

.basket-row-price {
    color: #308e56;
    font-weight: 600;
    font-size: 18px;
    min-width: 80px;
    text-align: right;
}

.basket-total {
    margin-top: 30px;
    padding-top: 20px;
    text-align: right;
    font-size: 18px;
    font-weight: 600;
}

.basket-total span {
    color: #308e56;
    font-size: 20px;
}

/* Waste Material Categories */
.waste-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.waste-category-btn {
    background: #beb8b1;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.waste-category-btn:hover {
    background: #a9a39c;
}

.waste-category-btn.active {
    background: #eac974;
}

.selected-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #eac974;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.selected-category-tag button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-group {
    margin: 30px 0 25px 0;
}

#bundle-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    z-index: 10000;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.appliances-list {
    margin: 20px 0;
}

.appliance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 8px;
}

.appliance-row label {
    margin: 0;
    font-weight: 500;
}

.appliance-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.appliance-quantity-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #308e56;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.appliance-quantity-controls button:hover {
    background: #2a7848;
}

.appliance-quantity {
    width: 45px;
    text-align: center;
    border: 1px solid #e0d8d0;
    border-radius: 5px;
    padding: 4px;
    font-size: 14px;
    font-weight: 600;
}

.request-quote-controls {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-control {
    border-radius: 5px;
    border: 2px solid #e0d8d0;
    padding: 12px 15px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #308e56;
    outline: none;
}

/* Date picker wrapper */
.date-note {
    margin-bottom: 30px;
    font-size: 15px;
}

.date-picker-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.date-picker-container {
    max-width: 400px;
    width: 100%;
}

.date-picker-container .form-control {
    text-align: center;
    font-size: 16px;
}

/* Simplified Datepicker styling */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Coverage warning banner (matches site's original gold warning style) */
.cage-coverage-warning {
    background: #eac974;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.alert-danger {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #dc2626;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Product Grid for Bulky Items */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.product-grid-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.product-grid-item .price {
    color: #308e56;
    font-weight: 600;
    font-size: 18px;
    margin: 10px 0;
}

.product-grid-item .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.product-grid-item .quantity-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #308e56;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-grid-item .quantity-controls button:hover {
    background: #2a7848;
}

.product-grid-item .quantity-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.product-grid-item .quantity-display {
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .col-sm-offset-4,
    .col-sm-offset-8 {
        margin-left: 0;
    }
    
    .text-right {
        text-align: left;
    }
    
    .request-quote-controls .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .service-boxes-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-box {
        min-height: 90px;
        padding: 20px 30px;
    }
    
    .service-icon {
        font-size: 35px;
        margin-bottom: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .basket-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .basket-row-name {
        flex-basis: 100%;
    }
    
    .basket-row-controls {
        margin: 0;
    }
    
    .basket-row-price {
        margin-left: auto;
    }
    
    .waste-categories {
        gap: 8px;
    }
    
    .waste-category-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* Bulky items accordion */
.cage-accordion { margin: 10px 0; }
.cage-accordion-item { border: 0; border-radius: 10px; margin-bottom: 20px; overflow: hidden; background: transparent; }
.cage-accordion-header { width: 100%; display:flex; justify-content: space-between; align-items:center; padding: 14px 16px; font-weight: 600; background: #007834; border: 0; cursor: pointer; color: #fff; border-radius: 10px; }
.cage-accordion-header:hover { background: #2B8E56; }
.cage-accordion-item.is-open .cage-accordion-header { background: #eac974; color: #000; }
.cage-accordion-header:focus { outline: none; box-shadow: none; }
.cage-accordion-icon { font-size: 18px; line-height: 1; }
.cage-accordion-panel { padding: 14px 16px 6px 16px; }



/* Help loading radio buttons styled like the yellow buttons */
.cage-help-loading-options {
    display:flex;
    justify-content:center;
    gap:20px;
    margin: 25px 0 15px 0;
}
.cage-help-loading-options .cage-radio input {
    position:absolute;
    opacity:0;
    pointer-events:none;
}
.cage-help-loading-options .cage-radio {
    position:relative;
}
.cage-help-loading-options .cage-radio span{
    display:inline-block;
    min-width:120px;
    text-align:center;
    padding:14px 28px;
    border-radius:30px;
    background:#beb8b1;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    user-select:none;
}
.cage-help-loading-options .cage-radio span:hover{
    background:#eac974;
}
.cage-help-loading-options .cage-radio input:checked + span{
    background:#eac974;
    color:#fff;
    box-shadow: none;
}


.cage-category-hint{ margin: 0 0 12px 0; font-size: 14px; font-weight: 600; color:#000; text-align:left; }
.cage-category-intro{ margin: 0 0 12px 0; font-size: 14px; color:#000; text-align:left; }

/* Appliance bundle quantity input: widen so digits aren't clipped */
.request-quote-form-wrapper input[type="number"].bundle-qty-input,
.request-quote-form-wrapper .bundle-qty input[type="number"],
.request-quote-form-wrapper .appliance-bundle input[type="number"],
.request-quote-form-wrapper .bundle-qty input[type="text"],
.request-quote-form-wrapper input[type="text"].bundle-qty-input {
    width: 64px;
    min-width: 64px;
    padding: 8px 10px;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

.request-quote-form-wrapper input[type="number"]::-webkit-outer-spin-button,
.request-quote-form-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.request-quote-form-wrapper input[type="number"] {
    -moz-appearance: textfield;
}


/* Product tile CTA alignment */
.product-grid-cta{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    margin-top: 12px;
}
.product-grid-cta .btn{
    width:100%;
    max-width: 180px;
}
.in-basket-badge{
    font-size: 13px;
    opacity: .85;
    display:block;
}
.appliance-bundle-tile .bundle-note{
    font-size: 12px;
    opacity: .75;
}

/* ---------------------------------------------------
   Checkout/cart item meta list formatting (WooCommerce)
   Ensures the "Items" list renders as a proper block list and clears floats.
--------------------------------------------------- */

.woocommerce .variation-Items,
.woocommerce .wc-item-meta .variation-Items {
    display: block;
    clear: both;
}

.woocommerce .variation-Items strong,
.woocommerce .wc-item-meta .variation-Items strong {
    display: inline-block;
    margin-right: 6px;
    vertical-align: top;
}

.woocommerce .variation-Items .cage-item-list,
.woocommerce .wc-item-meta .variation-Items .cage-item-list,
.woocommerce .cage-item-list {
    display: block;
    clear: both;
    margin: 6px 0;
}

.woocommerce .variation-Items .cage-item-row,
.woocommerce .wc-item-meta .variation-Items .cage-item-row,
.woocommerce .cage-item-row {
    display: block;
    margin: 2px 0;
}

.woocommerce .variation-Items .cage-item-sublist,
.woocommerce .wc-item-meta .variation-Items .cage-item-sublist,
.woocommerce .cage-item-sublist {
    margin: 2px 0 4px 16px;
}
