/****style****/

/* #6c46ae purple color*/
:root {
    --main-bg-color: #6c46ae;
}

.iawp-widget-header {
    display: flex;
    justify-content: space-between;
}

.iawp-widget-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 1em 1em;
}

.iawp-sync-message {
    color: #6e6a73;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1em;
}

.iawp-stats {
    border-bottom: 1px solid #dedae6;
    border-top: 1px solid #dedae6;
    display: flex;
    margin: 1em 0;
}

.iawp-stat {
    flex-grow: 1;
    padding: 1em
}

.iawp-stat:first-child {
    border-right: 1px solid #dedae6;
}

.iawp-stat-name {
    background-color: #f7f5fa;
    border-radius: 5px;
    display: inline-block;
    padding: 4px 8px;
}

.iawp-stat-name.orange {
    background-color: rgba(246, 157, 10, .2);
}

.iawp-stat-name.purple {
    background-color: rgba(108, 70, 174, .2);
}

.iawp-stat-value {
    display: block;
    font-size: 24px;
    margin-top: 8px;
}

.chart-container {
    flex-grow: 1;
    overflow: hidden; /* This is needed so the chart containers size actually changes on widget resize */
}

.iawp-analytics-panel {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.iawp-analytics-panel.hidden {
    display: none;
}

.iawp-no-analytics-panel {
    align-items: center;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    padding: 0 15%;
    text-align: center;
}

.iawp-no-analytics-panel.hidden {
    display: none;
}