/* Custom Product Request Form - Main Wrapper */
.cpr-form-wrapper {
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Form Fields */
.cpr-form .cpr-field {
    margin-bottom: 24px;
}

.cpr-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cpr-form input[type="email"],
.cpr-form input[type="text"],
.cpr-form select,
.cpr-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.cpr-form textarea {
    resize: vertical;
    min-height: 120px;
}

.cpr-form input[type="file"] {
    padding: 6px 0;
}

.cpr-form small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.9em;
}

.required {
    color: #e74c3c;
}

/* Submit Button */
.cpr-submit {
    text-align: center;
    margin-top: 30px;
}

.cpr-submit button {
    background: #00af2d;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.cpr-submit button:hover {
    background: #005d87;
}

/* Success Message */
.cpr-success {
    padding: 20px;
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1em;
}

/* Error Message */
.cpr-error {
    padding: 15px;
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Back to Shop Button (on success message) */
.cpr-back-shop {
    margin-top: 25px;
}

.cpr-back-button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background 0.3s;
}

.cpr-back-button:hover {
    background: #218838;
}

/* Pricing Guide Section */
.cpr-pricing-guide {
    margin-top: 50px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.cpr-pricing-guide h3 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.cpr-pricing-guide table {
    width: 100%;
    border-collapse: collapse;
}

.cpr-pricing-guide th,
.cpr-pricing-guide td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.cpr-pricing-guide th {
    background: #f4f4f4;
    font-weight: 600;
}

/* Important Notice */
.cpr-important-notice {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    color: #856404;
}

.cpr-important-notice h4 {
    margin-top: 0;
    color: #664d03;
}

.cpr-important-notice p {
    margin: 12px 0;
    line-height: 1.5;
}

/* Color Picker Styling */
.cpr-form input[type="color"] {
    width: 80px;
    height: 45px;
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}
/* Product Preview Section */
.cpr-preview-section {
    margin: 32px 0 40px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cpr-preview-title {
    text-align: center;
    margin: 0 0 12px;
    color: #333;
}

.cpr-preview-desc {
    text-align: center;
    color: #555;
    margin: 0 0 24px;
    font-size: 0.95em;
}

.cpr-preview-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.cpr-preview-btn {
    padding: 10px 18px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.2s;
}

.cpr-preview-btn:hover,
.cpr-preview-btn.active {
    background: #00af2d;
    color: white;
    border-color: #00af2d;
}

.cpr-gallery {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.cpr-gallery.active {
    display: grid;
}

.cpr-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.cpr-gallery img:hover {
    transform: scale(1.04);
}

/* Simple Lightbox */
.cpr-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cpr-lightbox.active {
    display: flex;
}

.cpr-lightbox img {
    max-width: 92%;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.cpr-lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Size checkboxes */
#cpr-sizes-container {
    margin-top: 8px;
}

#cpr-sizes-container label {
    font-size: 1em;
    margin-right: 24px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

#cpr-sizes-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #00af2d; 
}

.invalid-group {
    border: 1px solid #e74c3c;
    padding: 12px;
    border-radius: 4px;
    background: #fff5f5;
}

/* Side checkboxes – similar to sizes */
#cpr-sides-container {
    margin-top: 8px;
}

#cpr-sides-container label {
    font-size: 1em;
    margin-right: 24px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

#cpr-sides-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #0073aa;
}

@media (max-width: 640px) {
    .cpr-preview-buttons {
        display: grid;
        margin-bottom: 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
}
		
	.cpr-preview-btn {
		font-size: 0.85em;
        padding: 3px 5px;
    }
}