/* 易包裹 WooCommerce Plugin Styles */

/* Checkout address section */
.ebg-checkout-address-section {
    margin: 0 0 2em;
    padding: 1.2em 1.5em;
    background: #f9f6f2;
    border: 1px solid #e0d8d0;
    border-radius: 6px;
}
.ebg-section-title {
    margin: 0 0 1em;
    font-size: 1.1em;
    color: #333;
}

/* Warehouse address card */
.ebg-warehouse-address {
    margin-bottom: 1.5em;
    padding: 0.8em 1em;
    background: #fff8ee;
    border-left: 4px solid #f59e0b;
    border-radius: 0 4px 4px 0;
}
.ebg-warehouse-label {
    font-size: 0.9em;
    color: #92400e;
    margin: 0 0 0.5em;
    font-weight: 600;
}
.ebg-warehouse-card {
    font-size: 0.9em;
    line-height: 1.7;
    color: #444;
}
.ebg-copy-warehouse {
    margin-top: 6px !important;
    font-size: 0.85em !important;
    padding: 4px 10px !important;
}

/* Address book */
.ebg-address-book-label {
    font-weight: 600;
    margin: 0 0 0.8em;
    font-size: 0.95em;
}
.ebg-addr-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s;
}
.ebg-addr-item:hover {
    border-color: #e4460a;
}
.ebg-addr-item.ebg-addr-selected {
    border-color: #e4460a;
    background: #fff5f2;
}
.ebg-addr-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ebg-addr-item.ebg-addr-selected .ebg-addr-radio {
    border-color: #e4460a;
}
.ebg-addr-item.ebg-addr-selected .ebg-addr-dot {
    width: 10px;
    height: 10px;
    background: #e4460a;
    border-radius: 50%;
    display: block;
}
.ebg-addr-details {
    flex: 1;
    font-size: 0.9em;
    line-height: 1.6;
}
.ebg-addr-phone {
    color: #666;
    font-size: 0.9em;
}
.ebg-addr-line {
    color: #555;
}
.ebg-no-addresses {
    color: #666;
    font-size: 0.9em;
}
.ebg-loading {
    color: #999;
    font-size: 0.9em;
}
.ebg-addr-default-badge {
    display: inline-block;
    background: #e4460a;
    color: #fff;
    font-size: 0.75em;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
.ebg-addr-idcard {
    color: #888;
    font-size: 0.82em;
}

/* SSO section on login page */
.ebg-sso-section {
    margin-top: 1.5em;
}
.ebg-sso-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1em;
    color: #aaa;
    font-size: 0.9em;
}
.ebg-sso-divider::before,
.ebg-sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.ebg-sso-toggle-btn {
    width: 100%;
    text-align: center;
    background: #fff !important;
    border: 2px solid #e4460a !important;
    color: #e4460a !important;
    font-weight: 600 !important;
    padding: 10px !important;
}
.ebg-sso-toggle-btn:hover {
    background: #fff5f2 !important;
}
.ebg-sso-form {
    margin-top: 1em;
    padding: 1em;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}
.ebg-sso-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #555;
}
.ebg-sso-form .input-text {
    width: 100%;
    margin-bottom: 0.8em;
}
.ebg-sso-submit {
    width: 100%;
    background: #e4460a !important;
    border-color: #e4460a !important;
    color: #fff !important;
}
.ebg-sso-message {
    margin-bottom: 0.8em;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Account section */
.ebg-account-section {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}
.ebg-account-section h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

/* Status dot */
.ebg-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.ebg-dot--green { background: #4caf50; }
.ebg-dot--grey  { background: #aaa; }

.ebg-connected-status {
    font-weight: 500;
    margin-bottom: 0.5em;
}

/* Balance display */
.ebg-balance-display {
    font-size: 1.05em;
    margin: 0.5em 0 1em;
}
.ebg-balance-display strong {
    color: #e4460a;
    font-size: 1.1em;
}

/* Connect form */
.ebg-connect-form {
    max-width: 360px;
    margin-top: 1em;
}
.ebg-connect-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #555;
}
.ebg-connect-form .input-text {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}
.ebg-connect-form .button {
    margin-top: 0.5em;
}

/* Messages */
.ebg-connect-message {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
}
.ebg-msg--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.ebg-msg--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Checkout notice */
.ebg-checkout-connect-notice {
    margin-bottom: 1.5em;
}
.ebg-show-connect-form {
    margin-left: 8px;
    font-weight: 600;
    text-decoration: underline;
}
.ebg-inline-connect-form {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #e0e0e0;
}

/* Payment gateway fields */
.ebg-payment-info {
    padding: 1em;
    background: #f9f4ee;
    border-left: 4px solid #e4460a;
    border-radius: 0 4px 4px 0;
    margin-top: 0.5em;
}
.ebg-balance-line {
    margin: 0 0 0.5em;
    font-size: 0.95em;
}
.ebg-balance-line .ebg-balance-amount {
    font-size: 1.15em;
    color: #e4460a;
}
.ebg-notice {
    padding: 0.8em 1em;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9em;
}
.ebg-notice--error {
    background: #ffebee;
    border-color: #ef9a9a;
}

/* Password toggle */
.ebg-password-wrap {
    position: relative !important;
    display: block !important;
}
.ebg-password-wrap .ebg-password {
    padding-right: 42px !important;
    width: 100% !important;
    box-sizing: border-box;
}
.ebg-pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.ebg-pw-toggle:hover svg {
    stroke: #555;
}
