@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --tripleaColor: #095693;
    --bgcolor: #fff;
    --white: #e8e9ed;
    --gray: #434257;
    --blue: #18172c;
    --green: #00d084;
    --pink: #ff4b77;
    --color: #3a4f66;
    --fontFamily: 'DM Sans', sans-serif;
    --lightFont: 400;
}

.notice.triplea_wc-review-notice.triplea_wc-review-notice--extended {
    font-family: var(--fontFamily);
    border-left-color: var(--tripleaColor);
    padding: 0 15px 15px;
}

.notice.triplea_wc-review-notice.triplea_wc-review-notice--extended a {
    margin-right: 15px;
    text-decoration: none;
}

.triplea-settings-notice {
    border: 1px solid #dfdbdb;
    padding: 10px;
}

.triplea-wrapper {
    max-width: 650px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.triplea-tab,
.triplea-tab-content,
#mainform h2,
#mainform p {
    font-family: var(--fontFamily);
}

.triplea-form-group.triplea-btn-wrap {
    justify-content: center;
}

.triplea-tab-content #account {
    display: block;
}

.triplea-tab-content .tab-content {
    display: none;
    border-top: 2px solid var(--tripleaColor);
    background-color: var(--bgcolor);
    padding: 30px;
    border-radius: 5px;
    margin-top: 10px;
}

.triplea-tab-item {
    text-align: center;
}

.triplea-tab-item .tablinks {
    background-color: var(--bgcolor);
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
}

.triplea-tab-item .tablinks:last-child() {
    margin-right: 0;
}

.triplea-tab-item .tablinks.active {
    border-bottom: 2px solid var(--tripleaColor);
}

.tab-content .info-content p {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.triplea-form-group label {
    float: left;
    text-align: left;
    width: 14em;
    margin-top: 5px;
    font-weight: 700;
}

.triplea-form-group {
    margin: 20px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}

.triplea-form-group img {
    width: 30%;
}

.triplea-form-group input[type="text"],
.triplea-form-group select {
    width: 300px;
}

.triplea-form-table {
    display: none;
}

.triplea-form-group .triplea-btn {
    background-color: var(--color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--color);
}

.triplea-form-group .triplea-btn:hover {
    background-color: transparent;
    color: var(--color);
}

/* Switches */
#settings ol {
    list-style: none;
}

#settings label {
    cursor: pointer;
}

#settings [type="checkbox"] {
    position: absolute;
    left: -9999px;
}

#settings .switches {
    max-width: 500px;
    width: 95%;
    margin: 50px auto 0;
    border-radius: 5px;
    /* color: var(--white);
    background: var(--blue); */
}

.switches .checkbox-label {
    font-weight: 700;
}

#settings .switches li {
    position: relative;
    counter-increment: switchCounter;
}

#settings .switches li:not(:last-child) {
    border-bottom: 1px solid var(--gray);
}

#settings .switches li::before {
    content: counter(switchCounter);
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--tripleaColor);
}

#settings .switches label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

#settings .switches label span:first-child {
    flex-shrink: 10;
    padding-right: 10px;
}

#settings .switches span:last-child {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 15px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
    background: var(--gray);
    transition: all 0.3s;
}

#settings .switches span:last-child::before,
#settings .switches span:last-child::after {
    content: "";
    position: absolute;
}

#settings .switches span:last-child::before {
    left: 1px;
    top: 1px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s;
}

#settings .switches span:last-child::after {
    top: 50%;
    right: 8px;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/162656/uncheck-switcher.svg);
    background-size: 12px 12px;
}

#settings .switches [type="checkbox"]:checked+label span:last-child {
    background: var(--green);
}

#settings .switches [type="checkbox"]:checked+label span:last-child::before {
    transform: translateX(24px);
}

#settings .switches [type="checkbox"]:checked+label span:last-child::after {
    width: 14px;
    height: 14px;
    /*right: auto;*/
    left: 8px;
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/162656/checkmark-switcher.svg);
    background-size: 14px 14px;
}

@media screen and (max-width: 600px) {
    #settings .switches li::before {
        display: none;
    }
}
