.gbp-list, .gbp-review-list { list-style: none; padding: 0; }
.gbp-accordion-item { border-bottom: 1px solid #e5e5e5; margin-bottom: 5px; }
.gbp-accordion-toggle {
    background: #f9f9f9; color: #222; border: none; width: 100%; text-align: left; padding: 12px 18px;
    font-weight: bold; cursor: pointer; border-radius: 5px; transition: background 0.2s;
}
.gbp-accordion-toggle.active, .gbp-accordion-toggle:hover { background: #e0f3ff; }
.gbp-accordion-panel { display: none; padding: 12px 24px 18px; background: #fff; }
.gbp-add-btn, .gbp-modal-open, .gbp-copy-reply {
    background: #2171b1; color: #fff; border: none; padding: 6px 18px; border-radius: 4px;
    margin: 4px 2px; cursor: pointer; font-size: 14px; transition: background 0.2s;
}
.gbp-add-btn:hover, .gbp-modal-open:hover, .gbp-copy-reply:hover { background: #155a8a; }
.gbp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.32);
    overflow-y: auto;
}
.gbp-modal-content {
    background: #fff;
    margin: 40px auto;
    padding: 30px 35px;
    border-radius: 10px;
    width: 95%;
    max-width: 430px;
    box-shadow: 0 6px 48px 0 rgba(0,0,0,0.2);
    position: relative;
}
.gbp-modal-close {
    position: absolute; right: 16px; top: 14px; background: none; border: none; color: #888;
    font-size: 21px; cursor: pointer;
}
.gbp-review-row {
    background: #f8fafb; margin-bottom: 12px; padding: 12px 18px; border-radius: 6px;
    border: 1px solid #e5e5e5; position: relative;
}
.gbp-gpt-reply { margin: 8px 0 0 0; color: #155a8a; background: #e7f5ff; padding: 8px; border-radius: 4px; }
.gbp-edit-btn, .gbp-delete-btn {
    background: #aaa; color: #fff; border: none; border-radius: 3px; padding: 3px 12px;
    margin-left: 5px; font-size: 12px; cursor: pointer; transition: background 0.2s;
}
.gbp-edit-btn:hover { background: #888; }
.gbp-delete-btn { background: #aa0000; }
.gbp-delete-btn:hover { background: #d90000; }

.gbp-star-rating {
    font-size: 22px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 8px;
}
.gbp-star {
    color: #ccc;
    transition: color 0.2s;
    margin-right: 3px;
    cursor: pointer;
}
.gbp-star.selected,
.gbp-star.hover {
    color: #FFD600;
}

.gbp-ai-settings-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.04);
    padding: 22px 28px 15px 28px;
    max-width: 720px;
    margin: 44px auto 28px auto;
}
.gbp-accordion-header { transition: color 0.18s; }
.gbp-accordion-header:hover { color: #2271b1; }
.gbp-accordion-arrow { transition: transform 0.23s; margin-left:5px; }
.gbp-accordion-header.gbp-accordion-open .gbp-accordion-arrow {
    transform: rotate(180deg);
}

.dashicons.spin {
    animation: gbp-spin 1s linear infinite;
}
@keyframes gbp-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.gbp-ai-spinner { margin-left: 8px; }

.gbp-accordion-arrow {
  transition: transform .2s;
}

.gbp-api-key-warning {
    color: #d90000;
    font-weight: bold;
    margin-left: 10px;
    font-size: 15px;
}

.gbp-instruction-note {
    margin-top: 10px;
    background: #e7f5ff;
    border-left: 4px solid #2271b1;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    color: #155a8a;
}

.is-disabled { opacity: 0.6; cursor: not-allowed; }
.gbp-ai--locked { pointer-events: none; opacity: 0.6; }

@media (max-width: 600px) {
    .gbp-modal-content { width: 98%; padding: 12px; }
}


.gbp-inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.gbp-inline-checkbox input[type="checkbox"] {
    margin: 0;
}

.gbp-emoji-toggle-msg {
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .gbp-add-business-form {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
}


.gbp-business-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 150px minmax(320px, 1fr);
    gap: 14px;
    align-items: center;
}

.gbp-business-name-col {
    min-width: 0;
    overflow: hidden;
}

.gbp-business-name-col strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gbp-business-emoji-col {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}

.gbp-business-actions-col {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gbp-delete-business-form {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 1100px) {
    .gbp-business-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gbp-business-emoji-col,
    .gbp-business-actions-col {
        min-height: 0;
    }
}
