
.krokedil_settings__header {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
    align-items: center;
}

.krokedil_settings__wrapper {
    display: grid;
    grid-template-columns: 1fr min-content;
    grid-template-rows: auto auto;
    justify-content: space-between;
    padding: 20px;
    gap: 40px;
}

.krokedil_settings__wrapper a[target="_blank"]:not(.no-external-icon):after {
    content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
    margin: 0 3px 0 5px;
}

.krokedil_settings__sidebar {
    width: 356px;
    height: min-content;
    box-sizing: border-box;
    text-align: left;
    font-family: Roboto, sans-serif;
    background-color: #f5f5f5;
    border-width: 1px;
    border-style: solid;
    border-color: #cccccc;
    display: flex;
    padding: 20px 20px;
    grid-row: 1;
}

@media only screen and (max-width: 840px) {
    .krokedil_settings__sidebar {
        /*margin: 0 auto;*/
    }

    .krokedil_settings__wrapper {
        grid-template-columns: 1fr;
    }

    .krokedil_settings__sidebar {
        grid-row: auto;
    }

    .krokedil_settings__content {
        min-width: 750px;
        grid-row: 1 / 3;
    }
}

.krokedil_settings__content {
    min-width: 356px;
    grid-row: 1 / 3;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.krokedil_settings__sidebar h1.krokedil_settings__sidebar_title {
    font-size: 1.5em;
    font-weight: bold;
    font-family: Roboto, sans-serif;
    text-align: start;
    width: 100%;
    margin-bottom: 0px;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_content {
    display: flex;
    flex-direction: column;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_main_text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: start;
    font-size: 1.1em;
    letter-spacing: 0.2px;
    line-height: 1.4;
    margin-top: 5px;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_footer_krokedil {
    padding: 5px 10px 10px 10px;
    margin-top: 10px;
    flex-direction: column;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_footer_krokedil p.krokedil_settings__sidebar_subtext {
    align-self: flex-start;
    color: #000000;
    margin: 5px 0px 5px 0px;
    font: 1em sans-serif;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_footer_krokedil img.krokedil_settings__sidebar_logo {
    margin: 0px;
    height: 20px;
    width: auto;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_footer {
    text-align: right;
    display: grid;
    gap: 5px 5px;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 10px;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_footer p.krokedil_settings__sidebar_subtext {
    color: #000000;
    margin: 5px 0px 5px 0px;
    font: 1em sans-serif;
}

.krokedil_settings__sidebar .krokedil_settings__sidebar_footer img.krokedil_settings__sidebar_logo {
    margin: 0px;
    width: 70px;
    display: block;
}

.krokedil_settings__header_title {
    margin: 0;
}

.krokedil_settings__header_description {
    margin: 5px 0 0 0;
    max-width: 800px;
}

.krokedil_addons__description {
    margin-left: 20px;
    margin-right: 20px;
}

ul.krokedil_settings__list {
    list-style-type: unset;
    margin-top: 0;
}

ul.krokedil_settings__list li {
    margin-left: 30px;
}

div.krokedil_settings__spacer {
    margin-top: 25px;
}

/**/

.krokedil_settings__gateway_page.styled .krokedil_settings__section {
	position: relative;
	background: white;
    border: 1px solid #e5e5e5;
	border-bottom: 0;
    width: calc(100% - 40px);
	margin-bottom: 10px;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section .krokedil_settings__section_toggle {
	position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section .krokedil_settings__section_content {
	display: none;
	margin: 0 20px;
	width: calc(100% - 40px);
    padding-bottom: 10px;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section .krokedil_settings__section_content.active {
    display: table;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section .krokedil_settings__section_header {
	padding: 10px 20px;
	border-bottom: solid 1px #e5e5e5;
	cursor: pointer;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section table.form-table th.titledesc {
    padding-bottom: 8px;
	width: calc(100% - 20px);
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section table.form-table th.titledesc .woocommerce-help-tip {
    position: relative;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__wrapper, .krokedil_settings__gateway_page.styled .krokedil_settings__wrapper .krokedil_settings__content {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section table.form-table td.forminp input.colorpick {
	width: 100px;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section .form-table .titledesc {
	display: block;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section .form-table .forminp {
	padding: 0;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__wrapper {
	display: flex;
	flex-wrap: wrap;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__wrapper .krokedil_settings__content {
	flex: 1;
    flex-wrap: wrap;
    max-width: 900px;
    margin-right: auto;
    margin-bottom: 16px;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__wrapper .krokedil_settings__settings_navigation {
    width: 200px;
}

@media only screen and (min-width: 1186px) {
    .krokedil_settings__gateway_page.styled .krokedil_settings__wrapper .krokedil_settings__settings_navigation {
        max-height: 89vh;
        position: sticky;
        top: 92px;
        left: 0;
    }

    .krokedil_settings__gateway_page.styled p.submit {
        position: sticky;
        bottom: 1.5em;
    }
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section_title {
    margin-bottom: 0;
}

.krokedil_settings__gateway_page.styled .krokedil_settings__section_description p {
    margin-top: 7px;
    opacity: 0.8;
}

.krokedil_settings__gateway_page.styled .krokedil_ppu_status:not(.active) {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    outline: none;
}

.krokedil_settings__gateway_page.styled .krokedil_ppu_status:not(.active) input[type="number"] {
    pointer-events: none;
    user-select: none;
    outline: none;
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
    tab-index: -1;
}

.krokedil_settings__gateway_page.styled table.form-table input[type="text"],
.krokedil_settings__gateway_page.styled table.form-table input[type="password"],
.krokedil_settings__gateway_page.styled table.form-table select
{
    width: 100%;
    max-width: 400px;
}

.krokedil_settings__gateway_page.styled table.form-table textarea {
    max-width: 400px;
    height: 3em;
}

.krokedil_settings__gateway_page.styled .krokedil_settings_title, .krokedil_settings__gateway_page.styled .krokedil_settings_sub_title {
    margin-bottom: 0;
    margin-top: 1.4em;
}

.krokedil_settings__gateway_page.styled .krokedil_settings_sub_title {
    font-size: 1.1em;
    margin-top: 1.5em;
}

.krokedil_settings__gateway_page.styled .krokedil_settings_sub_title + p {
    margin-top: 0.3em;
}

.krokedil_settings__gateway_page.styled  .krokedil_ppu_setting__title.inactive + p + .form-table .titledesc {
   padding-top: 0;
}

body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs {
    border-bottom: 1px solid #c3c4c7;
    margin: 0;
    padding-top: 9px;
    padding-bottom: 0;
    padding-left: 0;
    line-height: inherit;
    background: none;
    gap: 0;
}

body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab {
    float: left;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    margin-left: 0.5em;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.71428571;
    font-weight: 600;
    background: #dcdcde;
    color: #50575e;
    text-decoration: none;
    white-space: nowrap;
}

body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab-active, body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab-active:hover, body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab-active:focus, body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab-active:focus:active {
    border-bottom: 1px solid #f0f0f1;
    background: #f0f0f1;
    color: #000;
}

body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab-active, body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab:focus:active {
    box-shadow: none;
}

body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab-active {
    margin-bottom: -1px;
    color: #3c434a;
}

@media screen and (max-width: 600px) {
    h1.nav-tab-wrapper.krokedil_nav_tabs, .wrap h2.nav-tab-wrapper.krokedil_nav_tabs, .nav-tab-wrapper.krokedil_nav_tabs {
        border-bottom: 0;
    }
}

@media screen and (max-width: 600px) {
    body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs .nav-tab {
        margin: 10px 10px 0 0;
        border-bottom: 1px solid #c3c4c7;
    }
}

@media screen and (max-width: 500px) {
    body.woocommerce_page_wc-settings .nav-tab-wrapper.krokedil_nav_tabs {
        flex-wrap: wrap;
    }
}
