/* WooCommerce Custom Measurement Field Styles */

.wc-custom-measurement-fields {
    clear: both;
}

.custom-fields-title {
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 700;
}

.color-input {
    width: 60px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
}

.custom-field-info-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: #666;
    transition: color 0.2s ease;
}

.custom-field-info-btn:hover {
    color: #000;
}

.custom-field-info-btn svg {
    width: 12px;
    height: 12px;
}

.woocommerce-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-label {
    font-weight: 600;
    color: #666;
}

.custom-measurement-input.border-error {
    border-bottom-color: #ef4444 !important;
}

/* Modal Styles */
.custom-field-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.custom-field-modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-field-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.custom-field-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-field-modal-close:hover {
    color: #000;
}

.custom-field-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-image {
    margin-bottom: 20px;
    text-align: center;
}

.modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.modal-instruction {
    line-height: 1.6;
    font-size: 15px;
}

@media (max-width: 768px) {
    .custom-field-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}


.collector-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.collector-row span.text-lg {
    font-size: 1.5rem;
    color: #007cba;
    font-weight: bold;
    min-width: 30px;
}

#collector-rows-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
}
