#cg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.cg-popup {
    background: #fff;
    max-width: 520px;
    width: 100%;
    height: 90vh;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cg-header {
    display: flex;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #eee;
}

.cg-header h3 {
    flex: 1;
    text-align: center;
    color: #0D4228;
    margin-bottom: 0px;
    font-weight: bold;
    margin-left: -33px;
    margin-top: 0px;
}

#cg-back {
    background: none;
    border: none;
    font-size: 48px;
    cursor: pointer;
    color: #0D4228;
    font-weight: bold;
    line-height: 1;
    z-index: 1;
}

.cg-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.cg-toggle {
    display: flex;
    background: #f2f2f2;
    border-radius: 25px;
    margin-bottom: 20px;
    box-shadow: 1px 1px 2px 2px #ddd;
}

.cg-toggle span {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.cg-toggle .active {
    background: #fff;
    border-radius: 25px;
}

.cg-location {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 5px;
}

.cg-location small {
    display: block;
    margin: 6px 0;
    font-size: 16px;
    color: black;
}

.cg-location h4 {
    color: #0D4228;
    font-weight: 600;
}

.cg-location p {
    margin-bottom: 0px;
    color: #C23228;
}

.cg-step {
    display: none;
}

.cg-step.active {
    display: block;
}

.cg-days {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cg-day {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
}

.cg-day.active {
    background: #0D4228;
    color: #fff;
}

.cg-showmore {
    margin: 12px 0;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.cg-times {
    max-height: 240px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.cg-time {
    padding: 14px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.cg-time.active {
    background: #f3f3f3;
    font-weight: 600;
}

.cg-primary {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    background-color: #0D4228;
    color: white;
    font-size: 20px;
}

.cg-primary#step1-btn {
    cursor: pointer;
}

.cg-primary p {
    margin-bottom: 10px;
    color: white;
}

.cg-primary:hover {
    background-color: #0D4228 !important;
}

.cg-footer {
    padding: 12px;
    border-top: 1px solid #eee;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

#cg-confirm {
    background-color: #0D4228;
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    box-shadow: 5px 5px 0px 0px #0d42282e;
    border-radius: 3px 3px 3px 3px;
    padding: 15px 45px 15px 45px;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    border: none;
}

#cg-confirm:hover {
    box-shadow: none;
    background-color: #0D4228 !important;
}

#cg-confirm:disabled {
    background: #0D42288f;
    cursor: not-allowed;
}

#cg-delivery-address {
    position: relative;
}

#cg-delivery-address #cg-address-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
}

#cg-distance-error,
#cg-address-error,
#cg-delivery-distance {
    text-align: center;
}

.cg-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 220px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    border-radius: 5px;
}

.cg-autocomplete-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.cg-autocomplete-item:hover {
    background: #f2f2f2;
}

#cg-close {
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #444;
    font-weight: bold;
}

#cg-close:hover {
    color: #000;
}

.cg-billing-flex {
    display: flex;
    width: 100%;
    gap: 28px;
    align-items: stretch;
}

.cg-col {
    flex: 1;
    min-width: 260px;
}

/* ===== USER COLUMN ===== */
.cg-user-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 14px;
}

.cg-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cg-row span {
    min-width: 22px;
    text-align: center;
    font-size: 16px;
}

/* ===== DIVIDER ===== */
.cg-divider {
    width: 1px;
    background: #e3e3e3;
}

.cg-autocomplete-item.cg-hint {
    background: #f5f5f5;
    color: #777;
    font-style: italic;
    cursor: default;
}

#cg-order-bar {
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #eadf d7;
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(70, 25, 6, 0.08);
    transition: all .25s ease;
}

#cg-order-bar:hover {
    box-shadow: 0 10px 24px rgba(70, 25, 6, 0.12);
}

.cg-order-bar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #6b4a37;
}

#cg-bar-type {
    background: #0D4228;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

#cg-bar-address {
    color: black;
    font-weight: 600;
}

#cg-bar-time {
    color: #7b7b7b;
    font-weight: 500;
}

#cg-change-order {
    border: none;
    background: #0D4228;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 4px 4px 0 #0d422830;
}

#cg-change-order:hover {

    background: #C23228;
    transform: translateY(-1px);
    box-shadow: 2px 2px 0 rgba(70, 25, 6, .12);
}

#cg-change-order:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* MOBILE */

@media(max-width:768px) {

    #cg-order-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .cg-order-bar-left {
        justify-content: center;
        text-align: center;
        line-height: 1.5;
    }

    #cg-change-order {
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
}

.cg-checkout-summary-wrapper {
    margin-bottom: 20px;
}

.cg-checkout-summary {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.cg-change-order-btn {
    margin-top: 10px;
    cursor: pointer;
}

body.cg-modal-open {
    overflow: hidden;
    height: 100vh;
}