.admin-gateway-page-wrapper {
    width: 100%;
    display: flex;
    padding: 0px 20px;
    box-sizing: border-box;
}

.admin-gateway-content {
    display: flex;
    flex: 1;
    gap: 32px;
    margin-bottom: 40px;
}

.admin-gateway-main {
    flex: 2;
    min-width: 0;
}

.admin-gateway-sidebar-bar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border-radius: 8px;
    padding: 188px 0px 0px 18px;
}

.admin-gateway-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    position: sticky;
    top: 120px;
    z-index: 10;
}

.admin-gateway-card {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 8px;
    box-shadow: none;
}

.admin-gateway-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 32px;
}

.admin-gateway-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #121519;
    text-align: center;
    letter-spacing: 1px;
    margin: 0;
}

.admin-gateway-top-menu {
    display: flex;
    gap: 12px;
    margin: 0px !important;
}

.admin-gateway-title-link {
    display: flex;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border-radius: 6px 6px 0 0;
    font-size: 1.2em;
    color: #8f8f8f;
    font-weight: 300;
    text-decoration: none;
    margin-bottom: -1px;
    transition: background 0.2s, box-shadow 0.2s, top 0.2s;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
    top: 0;
    z-index: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-gateway-title-link:hover {
    color: #343b45;
    background-color: #f7f7f7;
}

.admin-gateway-title-link.active {
    background: #f5f5f5;
    color: #121519;
    border-bottom: none;
    font-weight: 600;
    top: 1px;
    z-index: 3;
    outline: none !important;
    box-shadow: none !important;
}

.admin-gateway-block {
    display: none;
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 24px 20px;
}

.admin-gateway-block.active {
    display: block;
}

.admin-gateway-field-parent-flex {
    display: flex;
    margin-bottom: 24px;
    gap: 20px;
}

.admin-gateway-field-label-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 8px;
    max-width: 240px;
}

.admin-gateway-field-component-bg {
    flex: 2;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.admin-gateway-label {
    font-weight: 600;
    font-size: 1.4em;
    margin-left: 5px;
}

.admin-gateway-description {
    font-size: 1.1em;
    color: #8f8f8f;
    margin-top: 4px;
    margin-left: 5px;
}

.admin-gateway-component-label {
    font-size: 1em;
    margin-bottom: 4px;
}

.admin-gateway-hr {
    width: 100%;
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.admin-gateway-field-input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0px;
    margin-left: 5px;
}

.admin-gateway-checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-gateway-checkbox-wrapper label {
    display: flex;
    align-items: center;
}

.admin-gateway-input-description {
    font-size: 1.1em;
    color: #8f8f8f;
    margin-top: 6px;
    margin-bottom: 2px;
}

.admin-gateway-joined-label-desc {
    width: 100%;
    flex: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 0 0;
}

.admin-gateway-joined-component-bg {
    padding: 0px;
    background: none;
    border-radius: 0;
}

.admin-gateway-button {
    max-width: 400px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    background: #007cba;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-gateway-button:hover,
.admin-gateway-button:focus {
    background: #005fa3;
}

.admin-gateway-input,
.admin-gateway-textarea,
.admin-gateway-select,
.admin-gateway-password,
.admin-gateway-number {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1.1em;
    background: #fff;
    color: #121519;
    transition: border-color 0.2s;
}

.admin-gateway-input:focus,
.admin-gateway-password:focus,
.admin-gateway-number:focus,
.admin-gateway-select:focus,
.admin-gateway-textarea:focus {
    border-color: #007cba;
    outline: none;
}

.admin-gateway-file {
    width: fit-content;
}

.admin-gateway-textarea {
    min-height: 80px;
}

.admin-gateway-submit-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0px;
}

.admin-gateway-submit-wrapper button {
    font-size: 1.2em !important;
}

p.submit {
    display: none !important;
}

/* NOVAS CLASSES PARA RADIO */
.admin-gateway-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.1em;
    cursor: pointer;
}

.admin-gateway-radio {
    margin-right: 8px;
    accent-color: #007cba;
}

.admin-gateway-radio-label-text {
    font-size: 1em;
    color: #121519;
}

/* NOVAS CLASSES PARA CHECKBOX */
.admin-gateway-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    cursor: pointer;
}

.admin-gateway-checkbox {
    margin-right: 8px;
    accent-color: #007cba;
}

.admin-gateway-checkbox-label-text {
    margin-top: -4px;
    font-size: 1em;
    color: #121519;
}

/* NOVAS CLASSES PARA SELECT */
.admin-gateway-select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1.1em;
    background: #fff;
    color: #121519;
    transition: border-color 0.2s;
}

/* Card Update */

.block-status-card {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    background: #f6fff7;
    border-left: 5px solid #43c463;
    box-shadow: 0 2px 8px rgba(67, 196, 99, 0.07);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.block-status-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.block-status-card-title {
    color: #43c463;
    font-size: 1.08em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.block-status-card-description {
    font-size: 0.97em;
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* Card Invoice */

.block-promotional-card {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px 28px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
}

.block-promotional-card-bg {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.block-promotional-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.block-promotional-card-title {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.block-promotional-card-description {
    margin: 0 0 18px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.block-promotional-card-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.block-promotional-card-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    outline: none;
}

.block-promotional-card-btn-learn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(10px);
}

.block-promotional-card-btn-learn:hover,
.block-promotional-card-btn-learn:focus {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.block-promotional-card-btn-install {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
}

.block-promotional-card-btn-install:hover,
.block-promotional-card-btn-install:focus {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.setting-field-pix-desactivated {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 1300px) {
    .admin-gateway-content {
        flex-direction: column;
        gap: 0;
    }

    .admin-gateway-main {
        min-width: 0;
        width: 100%;
    }

    .admin-gateway-sidebar-bar {
        min-width: 0;
        width: 100%;
        margin-top: 24px;
        padding: 12px 0;
    }

    .admin-gateway-sidebar {
        position: static;
        padding: 0 8px;
    }
}

@media (max-width: 700px) {
    .admin-gateway-page-wrapper {
        flex-direction: column;
        padding: 0 6px;
    }

    .admin-gateway-header {
        height: auto;
        margin-bottom: 18px;
        padding: 10px 0;
        font-size: 1.3em;
    }

    .admin-gateway-title {
        font-size: 1.4em;
    }

    .admin-gateway-title-link {
        font-size: .95em;
    }

    .admin-gateway-file {
        max-width: 240px;
    }

    .admin-gateway-block {
        padding: 16px 8px;
    }

    .admin-gateway-field-parent-flex {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .admin-gateway-field-label-desc {
        max-width: 100%;
        padding: 10px 4px;
    }

    .admin-gateway-field-component-bg {
        padding: 14px;
    }

    .admin-gateway-field-input-wrapper {
        padding: 10px 0px;
        margin-left: 0;
    }

    .block-status-card,
    .block-promotional-card {
        max-width: 100%;
        padding: 14px 10px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .admin-gateway-header {
        font-size: 1em;
        padding: 6px 0;
    }

    .admin-gateway-title {
        font-size: 1.1em;
    }

    .block-status-card-title,
    .block-promotional-card-title {
        font-size: 1em;
    }

    .block-status-card-description,
    .block-promotional-card-description {
        font-size: 0.95em;
    }
}