/* WooCommerce Product Customizer Frontend Styles */

/* Customizer Container */
#wc-customizer-container {
    margin: 20px 0;
}

#wc-personalize-btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: #003399;
    color: #fff;
    width: 100%;
    border-radius: 50px;
    border: none;
    padding: 14px;
}

.wc-delivery-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.wc-preorder-info {
    color: #003399;
    display: inline-block;
}

/* Modal Styles */
.wc-customizer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.wc-customizer-modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-width: 720px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.wc-customizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.wc-customizer-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.wc-customizer-close {
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.wc-customizer-close:hover {
    color: #333;
}

.wc-customizer-body {
    padding: 10px 15px;
}

.wc-customizer-left,
.wc-customizer-right {
    width: 330px;
}

.wc-customizer-left h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

/* Preview Styles */
.wc-customizer-preview {
    border: 2px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
}

.wc-preview-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

#wc-background-preview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Preview Overlay Elements */
.wc-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Text Preview ("NAME") */
#wc-text-preview {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #ffd700;
    line-height: 1.2;
}

/* Image Preview ("PHOTO") */
#wc-image-preview {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    border: 3px solid #000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Image inside circle */
#wc-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Uploaded Image Styling */
.wc-image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.wc-upload-icon {
    font-size: 24px;
}

.wc-image-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 80px;
    height: 80px;
}

.wc-image-upload-area {
    cursor: pointer;
    padding: 10px 20px;
    background-color: #eee;
    border-radius: 4px;
    border: 1px dashed #ccc;
    text-align: center;
    font-size: 14px;
}

/* Character Counter */
.wc-char-count {
    font-size: 10px;
    color: #666;
    position: absolute;
    right: 3px;
    bottom: 0px;
}

/* Customizer Terms */
.wc-customizer-terms {
    font-size: 12px;
    color: #666;
}

.wc-color-option {
    position: relative;
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    display: inline-block; 
    margin: 10px; 
    cursor: pointer; 
}

.wc-color-option.selected::before {
    content: "✔";
    color: #000;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#wc-background-preview {
    width: 100%; 
    height: 100%;
}

#wc-custom-text {
    margin-top: 10px;
    border-radius: 5px;
    padding: 10px;
    height: 50px;
    font-size: 13px;
}

.wc-error-message {
    margin-top: 5px;
    font-size: 12px;
    color: #e74c3c;
}

.wc-required {
    color: #e74c3c;
    font-weight: bold;
}

.wc-upload-note {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.wc-customizer-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.wc-customizer-terms p {
    font-size: 12px;
    line-height: 1.5;
}

button#wc-add-to-cart-custom {
    background-color: #003399 !important;
    color: #fff;
    width: 100%;
    border-radius: 50px;
    border: none;
    padding: 14px;
}

.wc-customizer-field {
    position: relative;
    margin-top: 10px;
    margin-bottom: 20px;
}

.wc-upload-icon-text {
    font-size: 12px;
}

.wc-no-background-msg {
    background-color: #f9f9f9;
    margin: 10px 0;
}

.wc-no-background-msg p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.wc-no-background-msg small {
    font-size: 12px;
    font-style: italic;
}

.notice.notice-success {
    border-left: 4px solid #00a32a;
    background-color: #f0f8f0;
    padding: 8px 12px;
}

.wc-item-meta li p a {
    display: none !important;
}

@media screen and (max-width: 767px) {
    .wc-customizer-modal-content {
        width: 300px;
    }

    .wc-customizer-modal-content {
        top: 62px;
        border-radius: 0;
    }

    .wc-customizer-left, .wc-customizer-right {
        width: 270px;
    }

    #wc-image-preview {
        bottom: 61px;
        width: 90px;
        height: 90px;
    }

    #wc-text-preview {
        top: 90px;
        font-size: 9px;
    }
}