/* Center the card on page */
#pdpa-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* Card container */
.pdpa-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Header */
.pdpa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.pdpa-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pdpa-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.pdpa-close:hover {
    color: #333;
}

/* Body */
.pdpa-body {
    padding: 20px;
    height: auto; /* Allows the box to stretch with the text */
    background: #f5f5f5;
}

.pdpa-body p {
    margin: 0 0 16px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

.pdpa-body p:last-child {
    margin-bottom: 0;
}

.pdpa-body a {
    color: #0066cc;
    text-decoration: none;
}

.pdpa-body a:hover {
    text-decoration: underline;
}

/* Footer */
.pdpa-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.pdpa-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pdpa-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066cc;
}

.pdpa-checkbox-container label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* Continue Button */
.pdpa-btn {
    width: 100%;
    padding: 12px;
    background-color: #1a5fb4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pdpa-btn:hover:not(:disabled) {
    background-color: #144a8a;
}

.pdpa-btn:disabled {
    background-color: #1a5fb4;
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================================
   PDPA CARD - MOBILE FIX
   =================================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Push the page down just enough to clear the floating chatbot */
    .t-Body {
        padding-top: 80px !important; 
    }

    #pdpa-card {
        min-height: auto;
        height: auto;
        align-items: flex-start;
        padding-top: 10px; /* Reduced so it sits perfectly under the chatbot */
        padding-bottom: 20px;
    }

    /* 2. Ensure the card itself fits well */
    .pdpa-card {
        margin: 0 auto;
        width: 95%;
        max-width: 100%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
}

/* ===================================================
   PDPA CARD - RESPONSIVE ALIGNMENT (1131px)
   Aligns card to the left instead of center
   =================================================== */
@media screen and (max-width: 1067px) {
    #pdpa-card {
        justify-content: flex-start;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ===================================================
   RESPONSIVE DESKTOP BOT SCALING
   Gradually shrinks the bot as the screen gets smaller
   =================================================== */
@media screen and (max-width: 1440px) {
    .ai-assistant-wrapper {
        transform: scale(0.85);
        transform-origin: bottom right;
        right: 15px;
    }
}