/**
 * WooCommerce eSIM - Public Styles
 */

/* eSIM 資訊區塊 */
.woo-esim-info-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.woo-esim-info-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
}

.woo-esim-info-box h4 {
    color: #0073aa;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 狀態顯示 */
.woo-esim-status {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.woo-esim-status .status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woo-esim-status .status-value {
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-sent {
    background: #0073aa;
    color: white;
}

.status-failed {
    background: #dc3545;
    color: white;
}

.status-activated {
    background: #28a745;
    color: white;
}

/* QR Code 顯示 */
.woo-esim-qrcode {
    background: white;
    padding: 30px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

.woo-esim-qrcode h4 {
    text-align: center;
    color: #333;
}

.qrcode-image {
    margin: 20px 0;
}

.qrcode-image img {
    max-width: 300px;
    border: 2px solid #ddd;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qrcode-actions {
    margin-top: 20px;
}

.qrcode-actions .button {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    transition: background 0.3s;
}

.qrcode-actions .button:hover {
    background: #005a87;
}

/* 開通步驟 */
.woo-esim-instructions {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.woo-esim-instructions ol {
    padding-left: 25px;
    line-height: 1.8;
}

.woo-esim-instructions li {
    margin-bottom: 10px;
}

/* LPA 碼顯示 */
.woo-esim-lpa {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.woo-esim-lpa .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.woo-esim-lpa .lpa-code {
    display: flex;
    gap: 10px;
    align-items: center;
}

.woo-esim-lpa .lpa-code input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    background: #f9f9f9;
}

.woo-esim-lpa .lpa-code .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.woo-esim-lpa .lpa-code .button:hover {
    background: #005a87;
}

/* 重要提醒 */
.woo-esim-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.woo-esim-notice h4 {
    margin-top: 0;
    color: #856404;
}

.woo-esim-notice ul {
    padding-left: 25px;
    line-height: 1.8;
    margin-bottom: 0;
}

.woo-esim-notice li {
    margin-bottom: 8px;
}

/* 等待訊息 */
.woo-esim-pending {
    text-align: center;
    padding: 40px;
}

.woo-esim-status-message {
    background: white;
    padding: 30px;
    border-radius: 4px;
    display: inline-block;
    text-align: left;
}

.woo-esim-status-message p {
    margin: 10px 0;
    line-height: 1.6;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .woo-esim-info-box {
        padding: 20px;
    }
    
    .woo-esim-status {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .qrcode-image img {
        max-width: 100%;
    }
    
    .woo-esim-lpa .lpa-code {
        flex-direction: column;
    }
    
    .woo-esim-lpa .lpa-code input,
    .woo-esim-lpa .lpa-code .button {
        width: 100%;
    }
}
