
body {
    line-height: 1.42857143;
    color: #202733;
    font-family: Inter, sans-serif;
    font-size: 14px;
}

div {
    display: block;
}

.csv-importer-page .card {
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 41, 55, .08);
    overflow: hidden;
}

.csv-importer-page .card > .header {
    align-items: center;
    background: #fbfcff;
    border-bottom: 1px solid #e6ebf3;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 18px 22px;
}

.csv-importer-page .becaonDocsHeader h2 {
    color: #172033;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.csv-importer-page .body {
    background: #fff;
    padding: 24px !important;
}

.csv-page-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.csv-watch-button,
.csv-watch-button:focus {
    align-items: center;
    background: #fff !important;
    border: 1px solid #cfd7e6 !important;
    border-radius: 7px !important;
    color: #273244 !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    line-height: 1;
    padding: 10px 13px !important;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.csv-watch-button:before {
    align-items: center;
    background: #fff0ef;
    border-radius: 999px;
    color: #dc2626;
    content: "\25B6";
    display: inline-flex;
    font-size: 9px;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.csv-watch-button:hover {
    background: #f8fafc !important;
    border-color: #aeb8ca !important;
    box-shadow: 0 8px 18px rgba(31, 41, 55, .08);
    color: #172033 !important;
    transform: translateY(-1px);
}

.import-title {
    color: #172033;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 18px;
}

.csv-import-subtitle {
    color: #657083;
    font-size: 14px;
    line-height: 1.55;
    margin: -10px 0 20px;
    max-width: 760px;
}

.csv-import-alert.alert {
    border: 1px solid #dfe5ef;
    box-shadow: 0 10px 24px rgba(31, 41, 55, .06);
    color: #263244;
    padding: 14px 16px;
}

.csv-import-alert.alert-info {
    background: #f2fbf7;
    border-color: #bde8cf;
}

.csv-import-alert.alert-danger {
    background: #fff7f7;
    border-color: #f0c3c3;
}

.csv-importer-page .alert.success,
.csv-importer-page .alert-danger {
    border-radius: 8px;
    border-width: 1px;
    box-shadow: 0 8px 20px rgba(31, 41, 55, .06);
}

.import-square {
    color: #202733 !important;
    background: #fff !important;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(31, 41, 55, .08);
    display: flex;
    padding: 0;
    overflow: hidden;
    width: 100%;
    min-height: 360px;
}

.csv-from-app-reviews {
    background: #fbfcff;
    border-right: 1px solid #e3e8f2;
    display: flex;
    flex-direction: column;
    padding: 22px;
    width: 430px;
}

.csv-from-app-reviews .title {
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 6px;
}

.csv-from-app-reviews .source-hint {
    color: #7a8495;
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.csv-from-app-reviews .reviews-apps {
    align-content: flex-start;
    display: grid;
    gap: 10px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
    max-height: 292px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 8px 2px 2px !important;
    padding-right: 0 !important;
    scrollbar-color: #c7cfdd #eef2f7;
    scrollbar-width: thin;
}

.csv-from-app-reviews .reviews-apps::-webkit-scrollbar {
    width: 8px;
}

.csv-from-app-reviews .reviews-apps::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.csv-from-app-reviews .reviews-apps::-webkit-scrollbar-thumb {
    background: #c7cfdd;
    border-radius: 999px;
}

.csv-from-app-reviews .review-app {
    align-items: center;
    background: #fff;
    border: 1px solid #e1e7f0;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(31, 41, 55, .04);
    cursor: pointer !important;
    display: flex;
    flex-direction: column;
    height: 92px !important;
    justify-content: center;
    padding: 10px 7px;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
    width: 100% !important;
}

.csv-from-app-reviews .review-app:after {
    align-items: center;
    background: #6554d9;
    border-radius: 999px;
    color: #fff;
    content: "";
    display: flex;
    font-size: 12px;
    font-weight: 800;
    height: 16px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: 7px;
    top: 7px;
    transform: scale(.8);
    transition: opacity .18s ease, transform .18s ease;
    width: 16px;
}

.csv-from-app-reviews .review-app.active {
    background: #f7f5ff;
    border-color: #6554d9 !important;
    box-shadow: 0 9px 24px rgba(101, 84, 217, .16);
}

.csv-from-app-reviews .review-app.active:after {
    content: "\2713";
    opacity: 1;
    transform: scale(1);
}

.csv-from-app-reviews .review-app:hover {
    background-color: #f8fafc !important;
    border-color: #bfc8d9;
    transform: translateY(-1px);
}

.csv-from-app-reviews .review-app-img {
    height: 32px !important;
    object-fit: contain;
    width: 38px !important;
}

.csv-from-app-reviews .review-app-name {
    color: #273244;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25;
    margin: 7px 0 0 !important;
    min-height: 28px;
    text-align: center !important;
}

.import-square-instructions {
    display: flex;
    flex: 1;
    margin-left: 0 !important;
    min-width: 0;
    padding: 28px;
    width: auto !important;
}

.import-square-instructions .upload-file {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 304px;
    text-align: left;
    width: 100%;
}

.import-square-instructions .text_area {
    background: #f8fafc;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 18px;
    text-align: left;
}

.import-square-instructions .text_area h4 {
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px;
}

.import-square-instructions .text_area p {
    color: #5c6677;
    line-height: 1.55;
    margin-bottom: 8px;
}

.import-square-instructions .text_area p:last-child {
    margin-bottom: 0;
}

.import-square-instructions .text_area p b {
    color: #252f42;
}

.import-square-instructions .text_area p a,
.import-square-instructions .text_area p a:hover {
    color: #2563eb;
}

.import-square-instructions .text_area .csv-template-button,
.import-square-instructions .text_area .csv-template-button:hover,
.import-square-instructions .text_area .csv-template-button:focus {
    align-items: center;
    background: #6554d9;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(101, 84, 217, .16);
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    margin-left: 6px;
    padding: 6px 9px;
    text-decoration: none;
    vertical-align: middle;
}

.import-square-instructions .text_area .csv-template-button:before {
    content: "\2193";
    font-size: 12px;
    line-height: 1;
    margin-right: 5px;
}

.import-square-instructions .text_area .step-desc__list li:not(:last-child) {
    margin-bottom: 8px;
}

.import-square-instructions .label-upload-file-csv.uploading span {
    --delay: 0s;
    animation: arrows 1s var(--delay) infinite ease-in;
}

.import-square-instructions .error-text a {
    color: #dc2626;
    text-decoration: underline;
}

.button,
a.button {
    border-radius: 7px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 148px;
    outline: 0;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    user-select: none;
    white-space: nowrap;
}

.import-button,
a.import-button {
    background-color: #6554d9;
    border: 1px solid #6554d9;
    box-shadow: 0 8px 18px rgba(101, 84, 217, .22);
    color: #fff;
    padding: 13px 18px;
}

.import-button:hover {
    background-color: #5242bd;
    box-shadow: 0 10px 24px rgba(101, 84, 217, .28);
    color: #fff;
    transform: translateY(-1px);
}

.import-button.is-uploading {
    opacity: .82;
    pointer-events: none;
}

.import-button.is-uploading:after {
    animation: csvSpin .8s linear infinite;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 999px;
    content: "";
    height: 14px;
    margin-left: 9px;
    width: 14px;
}

.import_upload_status {
    align-items: center;
    color: #657083;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    margin-top: 12px;
}

.import_upload_status:before {
    background: #cfd7e6;
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 6px;
    width: 6px;
}

.csv-upload-progress {
    align-items: center;
    display: none;
    gap: 10px;
    margin-top: 14px;
}

.csv-upload-progress.is-visible {
    display: flex;
}

.csv-upload-progress__track {
    background: #edf1f7;
    border: 1px solid #dde4ef;
    border-radius: 999px;
    flex: 1;
    height: 10px;
    overflow: hidden;
    position: relative;
}

.csv-upload-progress__bar {
    background: linear-gradient(90deg, #6554d9, #21a67a);
    border-radius: inherit;
    height: 100%;
    min-width: 0;
    position: relative;
    transition: width .18s ease;
    width: 0;
}

.csv-upload-progress.is-processing .csv-upload-progress__bar:after {
    animation: csvProgressStripe .7s linear infinite;
    background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%, transparent);
    background-size: 18px 18px;
    content: "";
    inset: 0;
    position: absolute;
}

.csv-upload-progress__value {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    min-width: 36px;
    text-align: right;
}

.import-button.is-disabled {
    background: #c6ccd8 !important;
    border-color: #c6ccd8 !important;
    box-shadow: none !important;
    color: #fff !important;
}

@keyframes csvSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes csvProgressStripe {
    to {
        background-position: 18px 0;
    }
}

.csv-import-preview > .row {
    margin-left: 0;
    margin-right: 0;
}

.csv-import-preview .card {
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 41, 55, .07);
    overflow: hidden;
}

.csv-import-preview .card .header {
    background: #fbfcff;
    border-bottom: 1px solid #e6ebf3;
    padding: 18px 20px;
}

.csv-import-preview .card .header h2 {
    color: #172033;
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.csv-mapping-notice {
    background: #f8fafc;
    border: 1px solid #e1e7f0;
    border-left: 4px solid #6554d9;
    border-radius: 8px;
    color: #596579;
    display: grid;
    gap: 5px;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 14px 16px;
}

.csv-mapping-notice strong {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
}

.csv-mapping-notice em {
    color: #7a3f00;
    font-style: normal;
    font-weight: 800;
}

.csv-import-preview .table-responsive {
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    overflow: auto;
}

.csv-import-preview .table {
    margin-bottom: 0;
}

.csv-import-preview .table th {
    background: #f8fafc;
    border-bottom: 1px solid #e4e9f2;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.csv-import-preview .table td {
    color: #384254;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .csv-importer-page .card > .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .csv-page-actions {
        width: 100%;
    }

    .import-square {
        display: block;
    }

    .csv-from-app-reviews {
        border-bottom: 1px solid #e3e8f2;
        border-right: 0;
        width: 100%;
    }

    .csv-from-app-reviews .reviews-apps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: 214px;
    }

    .import-square-instructions {
        padding: 22px;
    }
}

@media (max-width: 575px) {
    .csv-importer-page .body {
        padding: 18px !important;
    }

    .csv-watch-button {
        width: 100%;
        justify-content: center;
    }

    .csv-from-app-reviews {
        padding: 18px;
    }

    .csv-from-app-reviews .reviews-apps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 316px;
    }

    .import-square-instructions {
        padding: 18px;
    }

    .import-square-instructions .upload-file {
        min-height: 0;
    }

    .button,
    a.button {
        width: 100%;
    }
}


.csv-download-example {
    margin: 6px 0 16px;
}

.csv-download-example-link {
    display: inline-block;
    color: #1a73e8;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.csv-download-example-link:hover {
    color: #1558b0;
}
