/* MW eSIM Redeem Styles */

#mw-esim-redeem-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

/* Header */
.mw-esim-header {
    text-align: center;
    margin-bottom: 40px;
}

.mw-esim-header h1 {
    color: #0f172a;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}

.mw-esim-header p {
    color: #334155;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Form Wrapper */
.mw-esim-form-wrapper {
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Input Group */
.mw-esim-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mw-esim-icon {
    padding: 0 15px;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.mw-esim-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    color: #334155;
}

.mw-esim-input-group input::placeholder {
    color: #94a3b8;
}

.mw-esim-input-group button {
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mw-esim-input-group button:hover {
    background-color: #059669;
}

/* Info Cards */
.mw-esim-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.mw-esim-card {
    background-color: #fffbeb;
    padding: 30px;
    border-radius: 12px;
}

.mw-esim-card h3 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mw-esim-card p {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Errors */
.mw-esim-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

/* Success UI */
.mw-esim-success-header {
    text-align: center;
    margin-bottom: 40px;
}

.mw-esim-plan-info {
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
    max-width: 800px;
}

.mw-esim-plan-info p {
    margin: 5px 0;
    color: #374151;
}

.mw-esim-install-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.mw-esim-option-card {
    background-color: #fffbeb;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.mw-esim-option-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
}

.mw-esim-option-card p {
    font-size: 14px;
    color: #334155;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mw-esim-qr-wrapper {
    background: #fff;
    padding: 10px;
    display: inline-block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mw-esim-qr-wrapper img {
    max-width: 200px;
    height: auto;
}



.mw-esim-detail-group {
    margin-bottom: 20px;
}

.mw-esim-detail-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #475569;
}

.mw-esim-code-display {
    font-family: monospace;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    word-break: break-all;
}

.mw-esim-btn-copy {
    background: #fff;
    border: 1px solid #10b981;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    color: #10b981;
    font-weight: 600;
    transition: all 0.2s;
}

.mw-esim-btn-copy:hover {
    background: #10b981;
    color: #fff;
}

/* Notice Card */
.mw-esim-notice-card {
    background-color: #e0e7ff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.mw-esim-notice-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
}

.mw-esim-detail-row {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mw-esim-btn-pill {
    background: #fff;
    border: 1px solid #10b981;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    color: #10b981;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.2s;
}

.mw-esim-btn-pill:hover {
    background: #10b981;
    color: #fff;
}

/* Guide Section */
.mw-esim-guide-section {
    text-align: center;
}

.mw-esim-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.mw-esim-tab {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
}

.mw-esim-tab.active {
    background-color: #10b981;
    color: #fff;
}

.mw-esim-guide-content {
    display: none;
}

.mw-esim-guide-content.active {
    display: block;
}

.mw-esim-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mw-esim-step {
    border: 1px solid #CCCCCC;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
}

.mw-esim-step img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.mw-esim-step p {
    font-size: 14px;
    color: #334155;
    max-width: 300px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {

    .mw-esim-info-cards,
    .mw-esim-install-options {
        grid-template-columns: 1fr;
    }

    .mw-esim-header h1 {
        font-size: 32px;
    }
}