@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

:root {
    --primary-color: #e24a01;
}

body {
    background: #f5f5f7;
}

.cm-admin {
    font-family: 'Lato', sans-serif;
}

.cm-admin p {
    margin: 16px 0 0 0;
}

.cm-admin h1,
.cm-admin h2,
.cm-admin h3,
.cm-admin h4,
.cm-admin h5,
.cm-adminh6 {
    margin: 20px 0 0 0;
    line-height: 1.2;
}

.cm-admin-info__wrapper {
    padding: 20px 20px 20px 0;
    margin: 0 auto;
    max-width: 1200px;
}

.cm-admin-top__section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
}

.cm-admin-topbar {
    flex-grow: 1;
}

.cm-admin-topbar h2 {
    font-size: 30px;
    color: var(--primary-color);
    font-weight: normal;
    margin: 0;
}

.cm-admin-topbar p {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

.cm-admin-topbar__header {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.cm-admin-topbar__header-logo {
    width: 40px;
}

.cm-admin-top-right__section {
    display: flex;
    gap: 12px;
    justify-content: end;
    align-items: center;
}

.cm-admin-top-right__link {
    text-decoration: none;
    color: #94a3b8;
    font-size: 16px;
}

.cm-admin-top-right__link:hover {
    color: #000;
}

.cm-admin-top-right__link--highlight {
    color: #219a51;
}

.cm-admin-main {
    display: flex;
    gap: 24px;
}

.main__wrapper {
    width: 100%;
}


.cm-theme-admin-btn-outline {
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    padding: 12px 28px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    background: transparent;
    transition: 0.3s all ease-in-out;
    text-decoration: none;
}

.cm-theme-admin-btn-outline:hover,
.cm-theme-admin-btn-outline:active,
.cm-theme-admin-btn-outline:focus {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.cm-theme-admin-btn-primary {
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    padding: 12px 28px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    transition: 0.3s all ease-in-out;
    text-decoration: none;
}

.cm-theme-admin-btn-primary:hover,
.cm-theme-admin-btn-primary:focus,
.cm-theme-admin-btn-primary:active {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.body-btn-primary {
    margin-top: 24px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    padding: 5px 12px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    display: block;
    width: max-content;
    text-decoration: none;
}

.body-btn-primary:hover,
.body-btn-primary:focus,
.body-btn-primary:active {
    color: #353434;
    border: 1px solid #353434;
    background-color: #e24a011f;
}

.cards-btn .button {
    border-radius: 4px;
    border: 1px solid #D4D4D4;
    background: #F9F9F9;
    font-size: 14px;
    color: #000;
}

.cards-btn .button:hover {
    border-radius: 4px;
    border: 1px solid #D4D4D4;
    background: #f1f1f1;
    color: #000;
}

/*cm admin info section starts*/
.cm-admin-intro {
    display: flex;
    padding: 24px;
    margin-top: 32px;
    background-color: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    gap: 30px;
    align-items: center;
}

.cm-admin-intro__info {
    width: 75%;
    max-width: 720px;
}

.cm-admin-intro__buttons{
    display: flex;
    gap: 1em;
    align-items: flex-end;
}

.cm-admin-intro__img {
    height: 250px;
    display: flex;
    justify-content: end;
}

.cm-admin-intro__img img {
    object-fit: contain;
    width: 250px;
    height: 250px;
    border-radius: 10px;
}

.cm-admin-intro__info h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 0;
}

.cm-admin-intro__info h2 {
    color: #000;
    font-size: 20px;
    font-weight: 400;
}

.desc {
    color: #444;
    font-size: 16px;
    font-weight: 400;
}

/*cm admin info section ends*/

/*tabs css starts*/

.cm-admin-main {
    margin-top: 32px;
}

.tab-panel {
    display: none;
    border-radius: 0 0 5px 5px;
}

.tab-panel.active {
    display: flex;
    gap: 24px;
}

.cm-admin_tabs {
    display: flex;
    gap: 12px;
}

.tab {
    padding: 16px 24px;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    color: #000;
}

.tab:hover {
    cursor: pointer;
}

.tab.active {
    background-color: #fff;
    border: 1px solid #EAEAEA;
    border-bottom: 1px solid #fff;
    padding-bottom: 1px;
    z-index: 10;
    margin-bottom: -1px;
}

.tab-section {
    padding: 24px;
    background-color: #fff;
    border-radius: 0 10px 10px 10px;
    border: 1px solid #EAEAEA;
}

.tab-section--cmblocks {
    border-radius: 10px;
}

.tab-section:not(:first-child) {
    margin-top: 32px;
}

.tab-section-cmBLocks {
    display: flex;
    gap: 24px;
}

.tab-section-cmBLocks__wrapper {
    width: 70%;
}

.cm-admin .tab-section-cmBLocks__wrapper h2 {
    font-size: 20px;
    font-weight: normal;
}

.cm-admin .tab-section-cmBLocks__wrapper h2:first-child {
    margin: 0;
}

.tab-section-cmBLocks__wrapper .quick-setting__wrapper {
    margin-top: 16px;
}

.tab-section-cmBLocks__wrapper .quick-setting__wrapper--design-library {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    border: 1px solid #D0CCDE;
    padding: 36px;
    border-radius: 8px;
    background: #D0CCDE9C;
    margin-bottom: 24px;
}

.tab-section-cmBLocks .cm-admin-tab__wrapper {
    width: 30%;
}

.tab-section-cmBLocks .cm-admin-tab__wrapper .cm-admin-designLibrary__pro {
    width: auto;
}

.cm-theme-admin-design-library-tab__section .cm-theme-admin-card-item__desc {
    font-size: 16px;
}

.quick-setting__card .cm-admin-small-warning a {
    color: var(--primary-color);
    font-size: 14px;
}

.cm-admin p.cm-admin-small-warning {
    margin: 0;
}

.quick-setting__card .cm-admin-small-warning a.cm-theme-admin-btn-secondary {
    padding: 6px 12px;
    border-radius: 4px;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s all ease-in-out;
    cursor: pointer;
    text-decoration: none;
    margin-top: 12px;
    display: block;
    width: max-content;
}

.cm-admin .section-header {
    color: #000;
    font-weight: normal;
    font-size: 20px;
    margin: 0;
}

.quick-setting__card {
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 0 4px 1px #E2E2E2;
    background: rgba(249, 249, 249, 0.43);
    display: flex;
    flex-direction: column;
    gap: 0;
    width: calc((100% - 48px) / 3);
    box-sizing: border-box;
}

.plugins__card {
    padding: 15px;
    border: 1px solid #E2E2E2;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
    border-radius: 10px;
    width: calc(33% - 1em);
}

.plugins__card-header {
    display: flex;
    align-items: center;
    gap: 1em;
    justify-content: space-between;
}

.plugins__card-img {
    width: 30px;
}

button.plugins__card-button {
    width: max-content;
    margin-top: 10px;
}

p.plugins__card-desc {
    margin-top: 10px;
    flex-grow: 1;
    font-size: 12px;
}

h4.plugin-title {
    color: #454444;
    font-size: 18px;
    font-weight: normal;
    margin-top: 0;
}

.quick-setting__wrapper {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.quick-setting__card h4 {
    color: #454444;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
}

.quick-setting__card a {
    color: #000E89;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    transition: 0.3s all ease-in-out;
}

.quick-setting__card a:hover {
    text-decoration: none;
}

.quick-setting__card-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.quick-setting__card-title svg {
    display: block;
    height: auto;
    fill: #454444;
    width: 16px;
}

.quick-setting__card-title svg:hover {
    fill: var(--primary-color);
}

.quick-setting__card-title h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: normal;
    line-height: 1;
}

.plugins-tab-section {
    margin-top: 32px;
}

.plugins__wrapper {
    display: flex;
    margin-top: 28px;
    justify-content: space-between;
    gap: 1em;
}

button.plugins__card-button {
    width: max-content !important;
    margin-top: 10px !important;
}

.plugin-title {
    color: #454444;
    font-size: 18px;
    font-weight: normal;
}

/*tabs css ends*/

/*sidebar css starts*/
.cm-admin__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 30%;
}

.cm-admin__sidebar-cards {
    color: #454444;
    font-size: 18px;
    font-weight: 400;
    background-color: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    padding: 24px;
    flex-grow: 1;
    max-width: 320px
}

.cards-btn {
    margin-top: 24px;
}

.cm-admin__sidebar-cards h4 {
    padding-bottom: 16px;
    font-size: 18px;
    color: #454545;
    border-bottom: 1px solid #D0D0D0;
    font-weight: 400;
    margin-top: 0;
}

/*sidebar css ends*/

/*change log css starts*/

.change-log__wrapper {
    background-color: #fff;
    padding: 20px;
    width: 70%;
    border-radius: 10px;
}

/*change log css ends*/
.cm-admin-designLibrary__pro {
    margin-top: 16px;
    width: 45%;
    border: 1px solid rgb(245 87 14 / 16%);
    padding: 24px;
    border-radius: 8px;
    background: rgba(245, 87, 14, 0.0588235294);
    display: block;
    text-decoration: none;
}

.cm-admin-designLibrary__pro h2 {
    font-size: 20px;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
}

.cm-admin-card-item__desc {
    font-size: 16px;
    padding: 0;
    color: #858585;
    margin: 0;
}

.cm-theme-admin-card-item {
    width: calc((100% - 120px) / 3);
    background: #F8FAFC;
    padding: 16px 12px;
    border-radius: 4px;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    box-shadow: 0 0 1px 1px #EAEAEA;
}

.cm-theme-admin-card-item img {
    height: auto;
    width: 30px;
    object-fit: contain;
}

.cm-theme-admin-card-item__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

h5.cm-theme-admin-card-item__title {
    color: #454444;
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

p.cm-theme-admin-card-item__desc {
    color: #1d2327;
    font-size: 14px;
    margin: 0;
    padding: 8px 0 0 0;
}

.cm-theme-admin-card-item-btn__wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cm-theme-admin-btn-secondary {
    padding: 10px;
    border-radius: 4px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s all ease-in-out;
    cursor: pointer;
    text-decoration: none;
    margin-top: 24px;
}

.cm-theme-admin-design-library-tab__section ul {
    list-style-type: decimal;
    padding-left: 16px;
}

.cm-theme-admin-design-library-tab__section ul li {
    color: #858585;
    font-size: 16px;
    margin-bottom: 12px;
}

@media only screen and (max-width: 1400px) {
    .cm-theme-admin-card-item {
        width: calc((100% - 72px) / 2);
    }
}

@media only screen and (max-width: 1200px) {
    .cm-admin-topbar {
        width: auto;
    }

    .cm-admin-top-right__section {
        width: auto;
    }

    .tab-section-cmBLocks {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .tab-section-cmBLocks__wrapper {
        width: 100%;
    }

    .cm-theme-admin-card-item {
        width: calc((100% - 72px) / 2);
    }

    .tab-section-cmBLocks .cm-admin-tab__wrapper {
        width: 100%;
    }
}

@media only screen and (max-width: 992px) {
    .tab-panel.active {
        flex-direction: column;
    }

    .cm-admin__sidebar {
        flex-direction: row;
        width: 100%;
    }

    .change-log__wrapper {
        width: auto;
    }

    .cm-admin__sidebar-cards {
        width: 33%;
    }
}

@media only screen and (max-width: 768px) {
    .cm-theme-admin-btn-primary {
        line-height: 1;
        padding: 12px 20px;
        font-size: 18px;
    }

    .cm-theme-admin-btn-outline {
        line-height: 1;
        padding: 12px 20px;
        font-size: 18px;
    }

    .cm-admin-intro {
        flex-direction: column-reverse;
    }

    .cm-admin-intro__img {
        width: 100%;
        justify-content: center;
    }

    .quick-setting__card {
        width: calc((100% - 24px) / 2);
    }

    .plugins__wrapper {
        display: flex;
        flex-direction: column;
    }

    .plugins__card {
        width: 100%;
    }

    .cm-admin__sidebar {
        flex-direction: column;
    }

    .cm-admin__sidebar-cards {
        width: auto;
    }

    .tab-section-cmBLocks__wrapper .quick-setting__wrapper--design-library {
        flex-direction: column;
        align-items: start;
    }

    .cm-theme-admin-design-library__preview-image {
        width: 50%;
    }

    .cm-theme-admin-design-library-tab__section {
        width: 100%;
    }

    .cm-theme-admin-card-item {
        width: 100%;
    }

    .cm-admin-intro {
        gap: 24px;

    }

    .cm-admin-intro__info {
        width: 100%;
    }

}

@media only screen and (max-width: 575px) {
    .cm-admin-top__section {
        flex-direction: column;
        gap: 16px;
    }

    .quick-setting__card {
        width: 100%;
    }

    .cm-theme-admin-btn-primary {
        padding: 6px 12px;
        font-size: 14px;
    }

    .cm-theme-admin-btn-outline {
        padding: 6px 12px;
        font-size: 14px;
    }

    .cm-admin-intro__info h2 {
        font-size: 32px;
    }

    .cm-admin-intro__info h3 {
        font-size: 18px;
    }

    .tab {
        padding: 12px 20px;
    }

    .cm-theme-admin-design-library__preview-image {
        width: 100%;
    }
}