/**
 * WP PIX Pagamento Identificado - Frontend Styles
 */

.wc-pix-payment-container {
    background: #ffffff;
    border: 2px solid #32BCAD;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(50, 188, 173, 0.1);
}

.wc-pix-title {
    color: #32BCAD;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.wc-pix-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* QR Code Section */
.wc-pix-qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wc-pix-qrcode-wrapper {
    background: #ffffff;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wc-pix-qrcode-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
}

/* Order Details */
.wc-pix-order-details {
    text-align: center;
    width: 100%;
}

.wc-pix-order-details p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

.wc-pix-order-details strong {
    color: #666;
    font-weight: 600;
}

.wc-pix-amount-value {
    color: #32BCAD;
    font-size: 20px;
    font-weight: 700;
    margin-left: 5px;
}

.wc-pix-order-number-value,
.wc-pix-txid-value {
    color: #333;
    font-weight: 600;
    margin-left: 5px;
}

/* PIX Code Section */
.wc-pix-code-section {
    width: 100%;
}

.wc-pix-code-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.wc-pix-code-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.wc-pix-code-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    background: #f9f9f9;
    transition: border-color 0.3s ease;
}

.wc-pix-code-input:focus {
    outline: none;
    border-color: #32BCAD;
    background: #ffffff;
}

.wc-pix-copy-button {
    background: #32BCAD;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    white-space: nowrap;
}

.wc-pix-copy-button:hover {
    background: #28a99b;
}

.wc-pix-copy-button:active {
    transform: scale(0.98);
}

.wc-pix-copy-button.copied {
    background: #4CAF50;
}

.wc-pix-copy-icon {
    font-size: 18px;
}

/* Instructions */
.wc-pix-instructions {
    background: #f9f9f9;
    border-left: 4px solid #32BCAD;
    padding: 20px;
    border-radius: 4px;
}

.wc-pix-instructions-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wc-pix-instructions-content {
    color: #555;
    line-height: 1.6;
}

.wc-pix-instructions-content p {
    margin: 8px 0;
}

.wc-pix-instructions-content ol,
.wc-pix-instructions-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.wc-pix-instructions-content li {
    margin: 5px 0;
}

/* Notice */
.wc-pix-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    color: #856404;
}

.wc-pix-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .wc-pix-payment-container {
        padding: 20px;
    }

    .wc-pix-title {
        font-size: 20px;
    }

    .wc-pix-qrcode-wrapper {
        padding: 15px;
    }

    .wc-pix-qrcode-image {
        max-width: 250px;
    }

    .wc-pix-code-wrapper {
        flex-direction: column;
    }

    .wc-pix-copy-button {
        width: 100%;
        justify-content: center;
    }

    .wc-pix-amount-value {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .wc-pix-payment-container {
        padding: 15px;
        margin: 15px 0;
    }

    .wc-pix-qrcode-image {
        max-width: 200px;
    }

    .wc-pix-code-input {
        font-size: 12px;
    }
}

