.cbf-booking-fields {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Hide WooCommerce error notices that may appear inside booking fields */
.cbf-booking-fields .woocommerce-error,
.cbf-booking-fields .woocommerce-notice,
.cbf-booking-fields .error {
    display: none !important;
}

.cbf-booking-fields .cbf-section-title {
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    border-bottom: 2px solid #f0f0f0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.cbf-booking-fields .cbf-field-group {
    margin-bottom: 18px;
}

.cbf-booking-fields .cbf-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.cbf-booking-fields .cbf-required {
    color: #e74c3c;
}

.cbf-booking-fields .cbf-date-input {
    width: 100%;
    max-width: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat right 10px center;
    background-size: 18px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cbf-booking-fields .cbf-date-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.cbf-booking-fields .cbf-date-input[readonly] {
    background-color: #fafafa;
    cursor: pointer;
}

.cbf-booking-fields .cbf-select {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.cbf-booking-fields .cbf-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.cbf-booking-fields .cbf-field-error {
    display: block;
    margin-top: 6px;
    color: #e74c3c;
    font-size: 13px;
}

.cbf-rental-type-toggle {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cbf-rental-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-right: 5px;
}

.cbf-rental-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.cbf-rental-option:hover {
    color: #0073aa;
}

.cbf-rental-option input[type="radio"] {
    display: none;
}

.cbf-rental-radiobtn {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
    background: #fff;
}

.cbf-rental-option input[type="radio"]:checked + .cbf-rental-radiobtn {
    border-color: #0073aa;
    background: #0073aa;
}

.cbf-rental-option input[type="radio"]:checked + .cbf-rental-radiobtn::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cbf-rental-option input[type="radio"]:checked ~ span:not(.cbf-rental-radiobtn),
.cbf-rental-option:has(input[type="radio"]:checked) {
    color: #0073aa;
    font-weight: 500;
}

.cbf-info-box {
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #4caf50;
}

.cbf-info-box p {
    margin: 0;
    font-size: 13px;
    color: #2e7d32;
}

.cbf-swatches-inside {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cbf-swatches-inside .variations {
    margin-bottom: 10px;
}

.cbf-swatches-inside .variations tr {
    border-bottom: none;
}

.cbf-swatches-inside td {
    padding: 5px 0;
}

.cbf-swatches-inside .variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cbf-swatches-inside .button-variable-item {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.cbf-swatches-inside .button-variable-item:hover {
    background: #e8e8e8;
}

.cbf-swatches-inside .button-variable-item.selected {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.cbf-price-inside {
    margin: 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.cbf-price-inside .woocommerce-Price-amount {
    color: #0073aa;
}

.cbf-button-inside {
    width: 100% !important;
    max-width: 300px;
    margin-top: 15px !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: #fff !important;
    border-radius: 4px !important;
    cursor: pointer;
    display: block !important;
}

.cbf-button-inside:hover {
    background: #005580 !important;
    border-color: #005580 !important;
}

.cbf-price-suffix,
.cbf-price-period {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

.cbf-price-inside .woocommerce-Price-amount.amount {
    font-size: 28px;
}

.woocommerce-variation,
.woocommerce-variation > * {
    display: none !important;
}

.ui-datepicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}

.ui-datepicker-header {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker-title {
    font-weight: 600;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ui-datepicker-calendar th {
    color: #333;
    font-weight: 600;
}

.ui-datepicker-calendar td {
    padding: 2px;
}

.ui-datepicker-calendar td a {
    text-align: center;
    border-radius: 4px;
}

.ui-datepicker-calendar td.ui-datepicker-other-month {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .cbf-booking-fields {
        padding: 15px;
    }

    .cbf-booking-fields .cbf-date-input,
    .cbf-booking-fields .cbf-select {
        max-width: 100%;
    }

    .cbf-booking-fields .cbf-section-title {
        font-size: 16px;
    }
}

.woocommerce div.product form.cart .cbf-booking-fields {
    margin-bottom: 20px;
}

.cbf-cart-item-details {
    margin-top: 10px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 13px;
}

.cbf-cart-item-details strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.woocommerce div.product form.cart .quantity,
.woocommerce div.product form.cart input[name="quantity"],
.woocommerce div.product .quantity,
.woocommerce .quantity,
.woocommerce-form.cart .quantity {
    display: none !important;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    .cbf-rental-type-toggle {
        flex-wrap: wrap;
        gap: 12px;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button {
        max-width: 100%;
    }
}

/* Hide default WooCommerce price in summary - we show it in Booking Details */
.woocommerce div.product .summary p.price {
    display: none !important;
}

/* Add Ons Section */
.cbf-addons-section {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.cbf-addons-title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cbf-addons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cbf-addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s;
}

.cbf-addon-item:hover {
    background: #e8f4fc;
    border-color: #0073aa;
}

.cbf-addon-item input[type="checkbox"] {
    display: none;
}

.cbf-addon-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
    background: #fff;
    flex-shrink: 0;
}

.cbf-addon-item input[type="checkbox"]:checked + .cbf-addon-checkbox {
    background: #0073aa;
    border-color: #0073aa;
}

.cbf-addon-item input[type="checkbox"]:checked + .cbf-addon-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cbf-addon-name {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
}

.cbf-addon-price {
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
}

.cbf-product-excerpt {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.cbf-product-excerpt p {
    margin: 0 0 10px 0;
}

.cbf-product-excerpt p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cbf-addon-item {
        padding: 8px 10px;
    }

    .cbf-addon-name {
        font-size: 13px;
    }
}