/* Nút bấm kích hoạt */
#gce-trigger-button {
    position: fixed !important;
    bottom: 25px !important;
    left: 25px !important; 
    width: 55px !important;
    height: 55px !important;
    background-color: #4A00E0 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 26px !important;
    line-height: 55px !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 999998 !important;
    transition: transform 0.2s ease-in-out !important;
}

#gce-trigger-button:hover {
    transform: scale(1.1) rotate(15deg) !important;
    background-color: #8E2DE2 !important;
}

/* Lớp phủ cho popup */
#gce-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 999999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#gce-popup-overlay.gce-visible {
    opacity: 1;
    visibility: visible;
}

/* Nội dung popup */
#gce-popup-content {
    background-color: #fff;
    padding: 25px 35px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#gce-popup-overlay.gce-visible #gce-popup-content {
    transform: scale(1);
}

#gce-popup-content h3 {
    margin-top: 0;
    font-size: 22px;
}

#gce-popup-actions {
    margin-top: 25px;
}

#gce-popup-actions button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#gce-loading, #gce-message {
    margin-top: 20px;
    font-size: 16px;
}

#gce-message.success {
    color: #27ae60;
    font-weight: bold;
}

#gce-message.error {
    color: #c0392b;
    font-weight: bold;
}

.gce-generated-block {
    margin: 40px 0 !important;
    padding: 25px 30px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.gce-generated-block > *:first-child {
    margin-top: 0 !important;
}
.gce-generated-block > *:last-child {
    margin-bottom: 0 !important;
}

/* --- Phong cách riêng cho khối Tóm tắt --- */
.gce-summary-block {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.gce-summary-block h2 {
    font-size: 1.5em !important;
    color: #1f2937 !important;
    border-bottom: 2px solid #6366f1 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

.gce-summary-block ol {
    list-style-type: decimal !important;
    padding-left: 20px !important;
    margin: 0 !important;
}

.gce-summary-block li {
    font-size: 1.05em !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin-bottom: 12px !important;
    padding-left: 10px !important;
}

/* --- Phong cách riêng cho khối FAQ (Accordion) --- */
.gce-faq-block h2 {
    text-align: center;
    font-size: 1.5em !important;
    color: #1f2937 !important;
    margin-bottom: 25px !important;
}

.gce-faq-container {
    border-top: 1px solid #e5e7eb;
}

.gce-faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
}

.gce-faq-question {
    font-size: 1.1em !important;
    font-weight: 600 !important;
    color: #374151 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Xóa dấu tam giác mặc định của summary */
}
.gce-faq-question::-webkit-details-marker {
    display: none; /* Xóa dấu tam giác mặc định trên Chrome/Safari */
}

/* Thêm icon + / - */
.gce-faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
    color: #6366f1;
    transition: transform 0.2s;
}

details[open] > .gce-faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.gce-faq-answer {
    padding: 15px 5px 0 5px;
    font-size: 1em !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
}
.gce-faq-answer p {
    margin: 0 !important;
}