/**
 * WooCommerce Custom Price - Frontend Styles
 */

.wc-custom-price-field {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wc-custom-price-field h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.wc-custom-price-description,
.wc-custom-name-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.wc-custom-name-section,
.wc-custom-price-section {
    margin-bottom: 20px;
}

.wc-custom-name-section:last-child,
.wc-custom-price-section:last-child {
    margin-bottom: 0;
}

.wc-custom-name-input-wrapper {
    margin-bottom: 15px;
}

.wc-custom-name-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.wc-custom-name-input:focus {
    outline: none;
    border-color: #96588a;
    box-shadow: 0 0 0 1px #96588a;
}

.wc-custom-price-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 250px;
}

.wc-custom-price-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #555;
    pointer-events: none;
}

.wc-custom-price-input {
    width: 100%;
    padding: 12px 12px 12px 35px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.wc-custom-price-input:focus {
    outline: none;
    border-color: #96588a;
    box-shadow: 0 0 0 1px #96588a;
}

.wc-custom-price-input::placeholder {
    color: #999;
}

/* Remove spinner arrows in Chrome, Safari, Edge, Opera */
.wc-custom-price-input::-webkit-outer-spin-button,
.wc-custom-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinner arrows in Firefox */
.wc-custom-price-input[type=number] {
    -moz-appearance: textfield;
}

/* Admin styles */
.wc-custom-price-options {
    padding: 10px 0;
}

.wc-custom-price-options .form-field {
    margin-bottom: 15px;
}

.wc-custom-price-options label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-custom-price-field {
        padding: 15px;
    }
    
    .wc-custom-price-input-wrapper {
        max-width: 100%;
    }
}
