/* SICOOB PIX Styles - Baseado no C6 com classes específicas */
.pixforwoo-qrcode-sicoob-content {
    display: flex;
    width: stretch;
    align-self: center;
    justify-self: center;
    flex-wrap: wrap-reverse;
    align-items: flex-end;
    justify-content: space-evenly;
    flex-direction: row;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    box-shadow: -2px 2px 4px #E6E6E6;
    padding: 20px;
    height: min-content;
    box-sizing: border-box;
    margin: 50px 0px;
    background-color: #fff;
}

.pixforwoo-qrcode-sicoob-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: 450px;
    height: 100%;
    box-sizing: border-box;
    padding: 40px;
}

.pixforwoo-qrcode-sicoob-title-container {
    display: flex;
    align-items: start;
    width: 100%;
    padding-left: 20px;
    box-sizing: border-box;
}

.pixforwoo-qrcode-sicoob-title-text {
    font-size: 20px;
    color: black;
}

.pixforwoo-basic-qrcode-sicoob-title-text {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

.pixforwoo-qrcode-sicoob-instructions-list {
    padding-right: 20px;
}

.pixforwoo-qrcode-sicoob-instructions {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    padding-left: 20px;
    box-sizing: border-box;
}

.pixforwoo-basic-qrcode-sicoob-instructions {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    box-sizing: border-box;
    color: #838383;
}

.pixforwoo-qrcode-sicoob-important-notice {
    text-align: justify;
}

.pixforwoo-qrcode-sicoob-check-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.pixforwoo-qrcode-sicoob-check-text {
    font-size: 12px;
    text-align: center;
    color: #838383;
}

#pixforwoo-qrcode-sicoob-timer {
    font-size: 48px;
    color: #3A3A3A;
    text-align: center;
    line-height: 1;
}

.pixforwoo-qrcode-sicoob-payment-check {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pixforwoo-qrcode-sicoob-payment-check-btn {
    display: flex;
    width: 350px;
    height: 50px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background-color: #D9D9D9;
    color: #FFF;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    border: none;
    outline: none;
    box-shadow: none;
    margin-top: 16px;
    margin-bottom: 16px !important;
    transition: background-color 0.5s ease;
}

.pixforwoo-qrcode-sicoob-payment-check-btn[disabled]:hover {
    background-color: #D9D9D9;
}

.pixforwoo-qrcode-sicoob-payment-check-info {
    display: flex;
    justify-content: center;
    text-align: center;
    max-width: 350px;
    font-size: 16px;
    color: #838383;
}

.pixforwoo-qrcode-sicoob-value-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 4px;
}

.pixforwoo-qrcode-sicoob-value-title {
    font-size: 20px;
    color: #686868;
    font-weight: bold;
    text-align: center;
}

.pixforwoo-qrcode-sicoob-value-amount {
    font-size: 32px;
    font-weight: bold;
    color: black;
}

.pixforwoo-qrcode-sicoob-value-date {
    font-size: 20px;
    color: #686868;
    margin-bottom: 10px !important;
    text-align: center;
}

.pixforwoo-qrcode-sicoob-copy-container {
    display: flex;
    align-items: center;
    width: 360px;
    border-radius: 8px;
    height: 50px;
    overflow: hidden;
    background-color: #D9D9D9;
    margin-bottom: 20px;
}

.pixforwoo-qrcode-sicoob-copy-input {
    width: 100%;
    height: 32px;
    background-color: #D9D9D9;
    border: none;
    outline: none;
    box-shadow: none;
    padding-left: 10px;
}

.pixforwoo-qrcode-sicoob-copy-input[disabled] {
    background-color: #D9D9D9 !important;
}

.pixforwoo-qrcode-sicoob-copy-btn {
    width: 100px !important;
    height: 100%;
    background-color: #3A3A3A;
    font-size: 12px;
    color: #FFF;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    padding: 0px !important;
    transition: background-color 0.5s ease;
}

.pixforwoo-qrcode-sicoob-copy-btn:hover {
    background-color: #3A3A3A;
}

.pixforwoo-qrcode-sicoob-copy-btn[disabled] {
    background-color: #28a428;
}

.pixforwoo-qrcode-sicoob-img {
    width: 300px;
    height: auto;
    padding: 20px;
}

.pixforwoo-qrcode-sicoob-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Media Queries Responsivos - Idêntico ao C6 */
@media screen and (max-width: 986px) {
    .pixforwoo-qrcode-sicoob-content {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0px;
    }
}

@media screen and (max-width: 586px) {
    .pixforwoo-qrcode-sicoob-section {
        width: 100%;
        padding: 20px;
    }

    .pixforwoo-qrcode-sicoob-title-text {
        font-size: 16px;
    }

    .pixforwoo-qrcode-sicoob-payment-check-btn {
        font-size: 16px;
    }

    .pixforwoo-qrcode-sicoob-payment-check-info {
        font-size: 14px;
    }

    .pixforwoo-qrcode-sicoob-img {
        width: 100%;
    }

    .pixforwoo-qrcode-sicoob-copy-container {
        width: 100%;
        max-width: 360px;
    }

    .pixforwoo-qrcode-sicoob-copy-input {
        max-width: 288px;
    }
}

/* Shortcode SICOOB */
.payment_method_lkn_pix_for_woocommerce_sicoob_container {
    padding: 10px;
}

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

.pix-sicoob-shortcode-generate-button {
    display: flex;
    width: fit-content;
    height: 50px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0px 40px;
    background: linear-gradient(135deg, #0071a1 0%, #005a87 100%);
    color: #FFF;
    gap: 10px;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    border: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,113,161,0.2);
    margin-top: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pix-sicoob-shortcode-generate-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    box-shadow: 0 4px 8px rgba(0,113,161,0.3);
    transform: translateY(-1px);
}

.pix-sicoob-shortcode-generate-button[disabled] {
    background-color: #D9D9D9;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Pix shortcode button image adjustment */  
.pix-sicoob-shortcode-generate-button img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    object-fit: contain;
    vertical-align: middle;
}

/* SICOOB Specific Styles */
.LknPixForWoocommerceSicoobPaymentFields .wc-block-components-text-input {
    margin-bottom: 15px;
}

.sicoob-pix-payment-button {
    background: linear-gradient(135deg, #0071a1 0%, #005a87 100%);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,113,161,0.2);
    width: 100%;
}

.sicoob-pix-payment-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    box-shadow: 0 4px 8px rgba(0,113,161,0.3);
    transform: translateY(-1px);
}

.sicoob-pix-payment-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* SICOOB Branding Colors */
.sicoob-brand-color {
    color: #0071a1;
}

.sicoob-brand-bg {
    background-color: #0071a1;
}

/* Field Validation Styles for SICOOB */
.lkn-cpf-cnpj-mask.valid {
    border-color: #28a745;
    background-color: #f8fff8;
}

.lkn-cpf-cnpj-mask.invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.lkn-cpf-cnpj-mask.partial {
    border-color: #ffc107;
    background-color: #fffbf0;
}

.field-feedback {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 8px;
    border-radius: 3px;
    display: none;
}

.field-feedback.info {
    background: #e7f3ff;
    color: #0066cc;
    border-left: 3px solid #0066cc;
}

.field-feedback.success {
    background: #e8f5e8;
    color: #28a745;
    border-left: 3px solid #28a745;
}

.field-feedback.error {
    background: #ffe6e6;
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Pix shortcode */

.payment_method_lkn_pix_for_woocommerce_sicoob_container {
    padding: 10px;
}

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

.pix-shortcode-sicoob-generate-button {
    display: flex;
    width: fit-content;
    height: 50px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0px 40px;
    background-color: #3A3A3A;
    color: #FFF;
    gap: 10px;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    border: none;
    outline: none;
    box-shadow: none;
    margin-top: 16px;
    transition: background-color 0.5s ease;
    cursor: pointer;
}

.pix-shortcode-sicoob-generate-button:hover {
    background-color: #686868;
}

.pix-shortcode-sicoob-generate-button[disabled] {
    background-color: #D9D9D9;
    cursor: not-allowed;
}

/* Pix shortcode button image adjustment */
.pix-shortcode-sicoob-generate-button img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    object-fit: contain;
    vertical-align: middle;
}

/* Responsivo */
@media screen and (max-width: 986px) {
    .pixforwoo-qrcode-content {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0px;
    }
}

@media screen and (max-width: 586px) {
    .pixforwoo-qrcode-section {
        width: 100%;
        padding: 20px;
    }

    .pixforwoo-qrcode-title-text {
        font-size: 16px;
    }

    .pixforwoo-qrcode-payment-check-btn {
        font-size: 16px;
    }

    .pixforwoo-qrcode-payment-check-info {
        font-size: 14px;
    }

    .pixforwoo-qrcode-img {
        width: 100%;
    }

    .pixforwoo-qrcode-copy-container {
        width: 100%;
        max-width: 360px;
    }

    .pixforwoo-qrcode-copy-input {
        max-width: 288px;
    }
}

/* Admin Styles for SICOOB */
.sicoob-admin-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.sicoob-admin-section h3 {
    margin-top: 0;
    color: #0071a1;
}

.sicoob-test-result {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.sicoob-test-result.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.sicoob-test-result.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading Animation */
.sicoob-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,113,161,.3);
    border-radius: 50%;
    border-top-color: #0071a1;
    animation: sicoob-spin 1s ease-in-out infinite;
}

@keyframes sicoob-spin {
    to { transform: rotate(360deg); }
}