/**
 * Taiwan E-Invoice - Front-end Styles
 */

.tweinvoice-options {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tweinvoice-options h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tweinvoice-options .form-group {
    margin-bottom: 15px;
}

.tweinvoice-options .control-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.invoice-type-options {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.radio-group {
    margin-top: 10px;
}

.radio-inline {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    font-weight: normal;
}

.radio-inline input[type="radio"] {
    margin-right: 5px;
}

.tweinvoice-options .form-control {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.tweinvoice-options .form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
}

.tweinvoice-options .help-block {
    color: #737373;
    font-size: 12px;
    margin-top: 5px;
}

.tweinvoice-options .alert {
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
}

.tweinvoice-options .alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}

.tweinvoice-options .alert i {
    margin-right: 5px;
}

.tweinvoice-options .checkbox label {
    font-weight: normal;
}

.tweinvoice-options select.form-control {
    height: 36px;
}

/* Invoice display on order confirmation */
.tweinvoice-display {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #2ecc71;
    border-radius: 4px;
}

.tweinvoice-display h3 {
    color: #2ecc71;
    margin-top: 0;
    margin-bottom: 15px;
}

.invoice-info-row {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.invoice-info-row:last-child {
    border-bottom: none;
}

.invoice-info-label {
    display: inline-block;
    width: 150px;
    font-weight: 600;
    color: #555;
}

.invoice-info-value {
    color: #333;
}

.invoice-qrcode {
    text-align: center;
    margin-top: 20px;
}

.invoice-qrcode img {
    max-width: 200px;
    margin: 10px;
}

.invoice-number {
    font-size: 24px;
    font-weight: bold;
    color: #2ecc71;
    text-align: center;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .radio-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .tweinvoice-options .form-control {
        max-width: 100%;
    }

    .invoice-info-label {
        width: 100%;
        display: block;
    }

    .invoice-info-value {
        display: block;
        padding-left: 15px;
    }
}
