.cbs-wrapper {
    max-width: 420px;
    margin: 60px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    font-family: Arial, sans-serif;
}

/* Toggle tabs */
.cbs-toggle {
    display: flex;
    background: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cbs-toggle button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
}

.cbs-toggle .active {
    background: #fff;
    border-radius: 10px;
}

/* Input rows */
.cbs-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.cbs-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.cbs-row input,
.cbs-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.cbs-row input:focus,
.cbs-row textarea:focus {
    border-color: #2b6cb0;
    outline: none;
}

/* Date & time inline */
.cbs-inline {
    display: flex;
    gap: 10px;
}

/* Button */
.cbs-btn {
    width: 100%;
    padding: 14px;
    background: #2b6cb0;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.cbs-btn:hover {
    background: #1f4f85;
}

/* Summary box */
.cbs-summary-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

/* Main wrapper */
.cbs-wrapper {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Distance result */
.cbs-distance-box div {
    margin-bottom: 10px;
    line-height: 1.5;
    word-break: break-word;
}

/* Google autocomplete dropdown */
.pac-container {

    z-index: 2147483647 !important;

    background: #fff !important;

    max-height: 220px !important;

    overflow-y: auto !important;

    overflow-x: hidden !important;
}

.pac-container:empty {

    display: none !important;
}

/* Elementor popup compatibility */
.popup-overlay,
.popup-content,
body {

    overflow: visible !important;
}

/* Mobile */
@media(max-width:768px){

    .cbs-wrapper{

        padding:20px;
    }

    .cbs-inline{

        flex-direction:column;
    }

    .pac-container{

        max-height:180px !important;
    }
}