/* Inquiry 按钮 */
.wic-inquiry-btn {
    background-color: #2271b1 !important;
    color: #fff !important;
    border-color: #2271b1 !important;
    margin-bottom: 10px;
    width: 100%;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.wic-inquiry-btn:hover,
.wic-inquiry-btn:focus {
    background-color: #135e96 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}

/* Mini cart 中按钮宽度自适应 */
.widget_shopping_cart .wic-inquiry-btn {
    width: 100%;
    margin-top: 6px;
}

/* Modal 遮罩层 */
.wic-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.wic-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Modal 容器 */
.wic-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: wicFadeIn 0.25s ease;
}

@keyframes wicFadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ---- Modal Header ---------------------------------------- */
.wic-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
    border-radius: 8px 8px 0 0;
}

.wic-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #1d2327;
}

.wic-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.wic-modal-close:hover { color: #c00; }

/* Modal Body */
.wic-modal-body {
    padding: 24px;
}

/* 表单组件 */
.wic-form-group {
    margin-bottom: 18px;
}

.wic-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d2327;
    font-size: 0.9rem;
}

.wic-form-group .required {
    color: #cc1818;
    margin-left: 2px;
}

.wic-form-group input[type="text"],
.wic-form-group input[type="email"],
.wic-form-group input[type="tel"],
.wic-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #1d2327;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.wic-form-group input:focus,
.wic-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
}

.wic-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/*  产品列表区域 */
.wic-products-list {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background: #fafafa;
    min-height: 60px;
}

.wic-loading {
    color: #888;
    font-style: italic;
    margin: 0;
    text-align: center;
    padding: 10px 0;
}

/* 产品列表项 */
.wic-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.wic-product-item:last-child { border-bottom: none; }

.wic-product-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.wic-product-info {
    flex: 1;
    min-width: 0;
}
.wic-product-info .name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wic-product-info .meta {
    font-size: 0.82rem;
    color: #666;
    margin-top: 2px;
}

/* 空购物车提示 */
.wic-no-products {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    padding: 12px 0;
    margin: 0;
}

/* 消息提示 */
.wic-form-message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.wic-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.wic-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/*  提交按钮 */
.wic-form-actions {
    text-align: right;
}
.wic-form-actions .button {
    min-width: 140px;
    font-size: 1rem;
    padding: 12px 28px;
}

/* 超额提示横幅（购物车页面 */
.wic-threshold-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 0.93rem;
}

/* 隐藏结账按钮（JS配合使用）*/
.wic-hide-checkout .checkout-button {
    display: none !important;
}
