/* Frontend Styles for WoWoodShop Product Customization */

.wws-customization-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.wws-field-group {
    display: flex;
    flex-direction: column;
}

.wws-field-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.wws-field-input:focus {
    outline: none;
    border-color: #2271b1;
}

.wws-field-input::placeholder {
    color: #999;
}

/* Photo Upload Styles */
.wws-photo-upload-wrapper {
    position: relative;
}

.wws-photo-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wws-photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 120px;
}

.wws-photo-upload-label:hover {
    border-color: #2271b1;
    background: #f5f5f5;
}

.wws-upload-icon {
    color: #666;
    margin-bottom: 8px;
}

.wws-upload-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.wws-upload-hint {
    font-size: 12px;
    color: #999;
}

.wws-photo-preview {
    position: relative;
    margin-top: 15px;
    display: inline-block;
    max-width: 100%;
}

.wws-preview-image {
    max-width: 250px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.wws-remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.wws-remove-photo:hover {
    background: #c82333;
}

.wws-remove-photo svg {
    width: 16px;
    height: 16px;
}

/* Loading State */
.wws-uploading {
    opacity: 0.6;
    pointer-events: none;
}

.wws-uploading .wws-upload-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wws-preview-image {
        max-width: 100%;
    }
}

/* Engraving Field Styles */
.wws-engraving-group {
    position: relative;
}

.wws-engraving-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.wws-engraving-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.wws-engraving-checkbox-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.wws-engraving-price {
    color: #2271b1;
    font-weight: 600;
    margin-left: 5px;
}

.wws-engraving-text-wrapper {
    padding-left: 30px;
}

/* Gift Wrap Field Styles */
.wws-giftwrap-group {
    position: relative;
}

.wws-giftwrap-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.wws-giftwrap-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.wws-giftwrap-checkbox-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.wws-giftwrap-price {
    color: #2271b1;
    font-weight: 600;
    margin-left: 5px;
}

/* Order Details Styles */
.wws-order-customization {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.wws-order-customization strong {
    color: #2c3e50;
    margin-right: 8px;
}

.wws-order-photo img {
    margin-top: 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}
