.msg91-settings-wrap {
    margin: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.msg91-settings-wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.msg91-settings-wrap .form-table {
    width: 100%;
    border-collapse: collapse;
}

.msg91-settings-wrap .form-table th,
.msg91-settings-wrap .form-table td {
    padding: 10px;
    vertical-align: middle;
    text-align: left;
}

.msg91-settings-wrap .form-table th {
    width: 25%;
}

/* Make Authkey input font size 300% */
#msg91_authkey {
    width: auto;
    min-width: 300px;
    max-width: 100%;
}

#msg91_authkey[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Make dropdown width responsive */
#msg91_country {
    width: auto;
    min-width: 10\0px;
    max-width: 100%;
}

.msg91-settings-wrap .button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.msg91-settings-wrap .button-primary:hover {
    background: #005f8d;
    border-color: #005f8d;
}

.msg91-settings-wrap .msg91-note-impactful {
    background: #fff3cd;
    padding: 15px;
    border-left: 4px solid #ffeeba;
    margin-top: 20px;
    width: 85%;
}

.authkey-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-authkey {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    height: 30px;
    line-height: 1;
}

.edit-authkey:hover {
    background: #005f8d;
    border-color: #005f8d;
}

/* Required field indicator */
.required-field {
    color: red;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .msg91-settings-wrap {
        margin: 15px;
        padding: 15px;
    }

    .msg91-settings-wrap h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .msg91-settings-wrap .form-table th,
    .msg91-settings-wrap .form-table td {
        padding: 8px;
    }

    .msg91-settings-wrap .form-table th {
        width: 30%;
    }

    #msg91_authkey {
        min-width: 200px;
        font-size: 16px;
    }

    .authkey-container {
        flex-direction: column;
        gap: 8px;
    }

    .edit-authkey {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .msg91-settings-wrap {
        margin: 10px;
        padding: 10px;
    }

    .msg91-settings-wrap h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .msg91-settings-wrap .form-table {
        display: block;
    }

    .msg91-settings-wrap .form-table th,
    .msg91-settings-wrap .form-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .msg91-settings-wrap .form-table th {
        font-weight: bold;
        border-bottom: 1px solid #eee;
    }

    #msg91_authkey {
        min-width: 100%;
        font-size: 14px;
    }

    .msg91-settings-wrap .button-primary {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}