.icc-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 520px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icc-widget * {
    box-sizing: border-box;
}

.icc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 28px;
    border: 1px solid #e5e7eb;
}

.icc-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.icc-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icc-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.icc-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.icc-form-section {
    display: block;
}

.icc-input-group {
    margin-bottom: 20px;
}

.icc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.icc-input-wrap {
    position: relative;
}

.icc-input {
    width: 100%;
    padding: 12px 70px 12px 14px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1f2937;
    letter-spacing: 1.5px;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

.icc-input::placeholder {
    color: #9ca3af;
    letter-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
}

.icc-input-counter {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.2s;
}

.icc-hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 8px 0 0;
    line-height: 1.4;
}

.icc-hint strong {
    color: #6b7280;
    font-weight: 600;
}

.icc-error {
    font-size: 13px;
    color: #ef4444;
    margin: 6px 0 0;
    line-height: 1.4;
}

.icc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
    outline: none;
    line-height: 1.4;
}

.icc-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icc-button:not(:disabled):active {
    transform: scale(0.98);
}

.icc-button-outline {
    background: transparent !important;
    margin-top: 16px;
}

.icc-back-btn {
    margin-top: 12px;
}

/* Payment Section */
.icc-payment-section {
    display: block;
}

.icc-payment-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.icc-payment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.icc-payment-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.icc-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
}

.icc-payment-row:last-child {
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
    padding-top: 12px;
}

.icc-payment-imei {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 1px;
}

.icc-payment-total {
    font-weight: 700;
}

.icc-payment-price {
    font-size: 18px;
    font-weight: 700;
}

/* Payment Methods */
.icc-payment-methods {
    margin-bottom: 4px;
}

.icc-payment-method-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.icc-stripe-pr-btn {
    margin-bottom: 12px;
    min-height: 48px;
}

.icc-stripe-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.icc-stripe-card:focus-within {
    border-color: #00CBFE;
    box-shadow: 0 0 0 3px rgba(0, 203, 254, 0.12);
}

.icc-stripe-pay-btn {
    margin-bottom: 4px;
}

.icc-stripe-error {
    font-size: 13px;
    color: #ef4444;
    margin: 6px 0 10px;
    line-height: 1.4;
}

.icc-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: icc-spin 0.6s linear infinite;
}

.icc-payment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.icc-payment-divider::before,
.icc-payment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.icc-paypal-buttons {
    min-height: 55px;
}

/* Loading */
.icc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.icc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #00CBFE;
    border-radius: 50%;
    animation: icc-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.icc-loading p {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.icc-loading .icc-loading-sub {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 4px;
}

/* Results */
.icc-results {
    display: block;
}

.icc-results-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.icc-results-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.icc-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.icc-result-row:last-child {
    border-bottom: none;
}

.icc-result-highlight {
    background: rgba(0, 203, 254, 0.04);
    border-left: 3px solid #00CBFE;
    padding: 12px;
    border-radius: 0 6px 6px 0;
    margin: 4px 0;
    border-bottom: none;
}

.icc-result-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.icc-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icc-result-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.icc-result-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
    word-break: break-word;
    min-width: 0;
}

.icc-status-good {
    color: #10b981;
}

.icc-status-warn {
    color: #f59e0b;
}

.icc-status-bad {
    color: #ef4444;
}

/* Error */
.icc-api-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.icc-error-icon {
    color: #ef4444;
    margin-bottom: 12px;
}

.icc-api-error p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
    max-width: 300px;
    line-height: 1.5;
}

/* Footer */
.icc-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.icc-footer p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.icc-footer strong {
    color: #6b7280;
}

.icc-footer a {
    text-decoration: none;
    font-weight: 500;
}

.icc-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .icc-card {
        padding: 20px;
        border-radius: 10px;
    }

    .icc-header {
        gap: 10px;
    }

    .icc-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .icc-icon-wrap svg {
        width: 22px;
        height: 22px;
    }

    .icc-title {
        font-size: 17px;
    }

    .icc-subtitle {
        font-size: 13px;
    }

    .icc-input {
        font-size: 15px;
        padding: 10px 60px 10px 12px;
    }

    .icc-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .icc-result-value {
        text-align: left;
        padding-left: 24px;
    }

    .icc-payment-price {
        font-size: 16px;
    }
}
