/* ====================== WC Jersey Customizer CSS ====================== */

.single-product form.cart>.quantity,
.single-product form.cart>.single_add_to_cart_button,
.single-product .e-atc-qty-button-holder {
    display: none !important;
}

/* 主容器 */
.wjc-wrap {
    max-width: 585px;
    font-family: Arial, sans-serif;
    color: #000;
    font-size: 14px;
    margin: 20px 0;
}

/* 价格框 */
.wjc-price-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 14px 12px;
    margin-bottom: 16px;
}
.wjc-label { width: 80px; }
.wjc-price-list {
    display: flex;
    gap: 42px;
    flex-wrap: wrap;
}
.wjc-price-item strong {
    display: block;
    color: red;
    font-size: 16px;
}
.wjc-price-item span {
    display: block;
    font-size: 12px;
}

/* 信息行 */
.wjc-info-row {
    display: flex;
    align-items: center;
    margin: 12px 0;
}
.wjc-info-row span {
    width: 90px;
    color: #666;
}
.wjc-info-row strong {
    font-weight: 400;
}
.wjc-gender {
    background: #000;
    color: #fff;
    padding: 2px 6px;
    font-weight: 700 !important;
}

/* Size 列表 */
.wjc-size-list {
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
    margin-top: 14px;
}
.wjc-size-row {
    display: grid;
    grid-template-columns: 90px 1fr 130px;
    align-items: center;
    border-bottom: 1px dashed #e4e4e4;
    padding: 10px 0;
}
.wjc-size-row:last-child {
    border-bottom: 0;
}
.wjc-size-label { color: #666; }

.wjc-stepper {
    display: flex;
    justify-self: end;
}
.wjc-stepper button {
    width: 36px;
    height: 32px;
    background: #000;
    color: #fff;
    border: 0;
    cursor: pointer;
}
.wjc-stepper input {
    width: 56px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 8px;
}

/* Section */
.wjc-section {
    border-bottom: 1px solid #ddd;
}
.wjc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
}
.wjc-section-head label {
    font-weight: 400;
    cursor: pointer;
}
.wjc-arrow {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width: 20px;
    height: 20px;
    color: #999;
    cursor: pointer;
}
.wjc-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: .2s;
}
.wjc-section.open .wjc-arrow svg {
    transform: rotate(180deg);
}

.wjc-section-body {
    display: none;
    padding: 0 0 16px;
}
.wjc-section.open .wjc-section-body {
    display: block;
}

.wjc-subtitle {
    font-weight: 700;
    margin: 4px 0 12px;
}
.wjc-check {
    display: block;
    margin-bottom: 14px;
}

/* 数字和名字输入框 - 重点修复 */
.wjc-field-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    margin: 14px 0;
}
.wjc-field-row label {
    font-weight: 700;
}
.wjc-field-row input {
    height: 40px !important;
    border: 1px solid #aaa !important;
    padding: 8px 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #fff !important;
    font-size: 14px !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    box-sizing: border-box;
}

/* Patches */
.wjc-patch-select {
    position: relative;
    border: 1px solid #ccc;
    min-height: 60px;
    background: #fff;
}
.wjc-patch-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 48px;
    padding: 8px 38px 8px 8px;
}
.wjc-patch-selected > button {
    position: absolute;
    right: 10px;
    top: 12px;
    width: 26px;
    height: 26px;
    background: #000;
    border: 0;
    color: #999;
}
.wjc-patch-selected svg {
    width: 14px;
    fill: currentColor;
}
.wjc-tag {
    background: #2d93f5;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
}
.wjc-tag img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}
.wjc-tag button {
    background: transparent;
    border: 0;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.wjc-placeholder { color: #777; }

.wjc-patch-dropdown {
    display: none;
    position: absolute;
    left: -1px;
    right: -1px;
    top: 100%;
    z-index: 50;
    background: #fff;
    border: 1px solid #7eb6ff;
    max-height: 260px;
    overflow: auto;
}
.wjc-patch-select.open .wjc-patch-dropdown {
    display: block;
}
.wjc-patch-option {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}
.wjc-patch-option:hover {
    background: #eef6ff;
}
.wjc-patch-option img {
    width: 46px;
    height: 46px;
    object-fit: cover;
}
.wjc-patch-option input { display: none; }
.wjc-patch-option span b { display: block; font-weight: 400; }
.wjc-patch-option span small { display: block; color: #333; }

/* 总计与按钮 */
.wjc-total-row {
    padding: 18px 0;
}
.wjc-total-row span {
    color: red;
    font-weight: 700;
    margin-left: 10px;
}
.wjc-buttons {
    display: flex;
    gap: 72px;
}
.wjc-btn {
    background: #000 !important;
    color: #fff !important;
    border: 0 !important;
    padding: 13px 24px !important;
    min-width: 128px;
    font-weight: 700;
    line-height: 1.1 !important;
    margin: 0 !important;
    cursor: pointer;
    text-transform: none !important;
}
.wjc-message {
    margin-top: 10px;
    color: #c00;
}

/* 后台表格 */
.wjc-admin-table input {
    width: 100%;
}

/* 响应式 */
@media (max-width: 600px) {
    .wjc-size-row {
        grid-template-columns: 65px 1fr 130px;
    }
    .wjc-buttons {
        gap: 30px;
    }
    .wjc-field-row {
        grid-template-columns: 1fr;
    }
    .wjc-field-row input {
        margin-top: 8px;
    }
    .wjc-price-list {
        gap: 28px;
    }
}