/* Product Features */
.orange {
    color: var(--e-global-color-primary);
}

.product-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    border: 1px solid rgb(0 0 0 / 30%);
    padding: 20px;
    border-radius: 12px;
}

.feature-icon {
    font-size: 47px;
}

.feature-text strong {
    font-size: 18px;
    display: block;
}

.feature-text small {
    font-size: 18px;
}

.feature-text br {
    display: none;
}

/* Variation Selectors */
.variation-selectors,
.custom-design-upload,
.cut-to-size-section .cut-to-size-section_body {
    background: #F8F8F8;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.variation-field,
.cut-to-size-section .form-field {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.variation-field:last-child {
    margin-bottom: 0;
}
.cut-to-size-section .form-field {
    margin-bottom: 0;
}
.variation-field label,
.cut-to-size-section .form-field label,
.preview-section h5 {
    min-width: 150px;
}
.variation-field select,
.form-field select,
.form-field input[type="number"] {
    padding: 21px 30px;
    border: 1px solid rgb(0 0 0 / 30%);
    border-radius: 100px;
    background-color: white;
    cursor: pointer;
    line-height: 1.2;
    color: #3e3e3e;
    outline: 0;
}

.variation-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.size-calculator-link {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.size-calculator-link a {
    color: #ff6464;
    text-decoration: none;
    font-weight: 600;
}

.size-calculator-link a:hover {
    text-decoration: underline;
}

.vari_txt {
    margin-bottom: 0;
    text-align: right;
}

.vari_txt a {
    font-weight: 600;
    color: var(--e-global-color-primary);
}

.vari_txt a:hover {
    color: var(--e-global-color-primary);
    text-decoration: underline;
}

/* Custom Design Upload */
.custom-design-upload {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-design-upload h4 {
    font-size: 22px !important;
    margin: 0;
}

.custom-design-upload .form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field textarea {
    width: 100%;
    padding: 24px 30px;
    border: 1px solid rgb(0 0 0 / 30%);
    border-radius: 20px;
    font-size: 14px;
    resize: vertical;
}

.file-upload-trigger {
    background-color: #ffffff !important;
    border-color: rgb(0 0 0 / 30%) !important;
    color: #3e3e3e !important;
    display: flex !important;
    align-items: center;
    gap: 15px;
}

.file-upload-trigger::before {
    content: "";
    background-image: url(/wp-content/uploads/2025/10/Download.png);
    background-size: contain;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
}

.file-upload-trigger:hover {
    border-color: #ff6464;
    background: #fff5f5;
}

.upload-icon {
    display: none;
}

.file-upload-info {
    margin-top: 10px;
    font-size: 13px;
    color: #28a745;
}

.file-name {
    font-weight: 600;
}

/* Cut To Size Section */

.cut-to-size-section>.form-field {
    padding-top: 60px;
    margin-bottom: 0;
}

.cut-to-size-section h4,
.preview-section h5 {
    margin: 0;
    font-size: 22px !important;
}
.cut-to-size-section h4 {
    margin-bottom: 40px;
}
.shape-inputs {
    margin-top: 20px;
}

.size-fields {
    display: grid;
    grid-template-columns: 1fr;
}

.info-box {
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 15px;
}

.archway-note {
    margin-bottom: 15px;
}

.size-fields .form-field {
    margin-bottom: 10px;
}

/* Preview Section */

.preview-section {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
    gap: 60px;
}

.preview-canvas {
    width: 100%;
    height: 259px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(0 0 0 / 30%);
}

#shape-preview {
    max-width: 200px;
    height: auto;
}

/* Price and Cart Section */
.product-price-section {
    display: flex;
    gap: 40px;
    flex-direction: column;
}

.price-display {
    font-size: 32px;
    font-weight: 600;
}

.quantity-and-cart {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgb(0 0 0 / 30%);
    border-radius: 40px;
    max-height: 60px;
    max-width: 220px;
}

.qty-btn {
    border: none !important;
    background-color: transparent !important;
    padding: 24px !important;
    color: #1A1A1A !important;
}

.quantity-selector input {
    border: none !important;
    font-size: 14px;
    font-weight: 600;
    background-color: transparent;
    padding: 0 !important;
    outline: 0;
    text-align: center;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

button.single_add_to_cart_button.button.alt {
    width: calc(100% - 220px);
    padding: 24px;
    font-size: 16px;
    border-radius: 100px;
    background-color: #E13F00;
    border-color: #E13F00;
    max-height: 60px;
    float: unset !important;
}

button.single_add_to_cart_button.button.alt:hover {
    background-color: #1A1A1A;
    border-color: #1A1A1A;
}

/* Price Breakdown Section */
.price-breakdown-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.price-breakdown-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}


.breakdown-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 25px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.breakdown-item span:first-child {
    color: #3e3e3e;
    font-weight: 500;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: #1a1a1a;
}

.breakdown-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Custom Price Breakdown for Cut-to-Size */
.custom-price-breakdown {
    margin: 40px 0 30px;
}

.custom-price-breakdown h5 {
    margin: 0;
    font-size: 22px !important;
}

.custom-price-breakdown .breakdown-item.total span:last-child {
    color: #059669;
}

/* Loading state */
.loading-colors {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-features {
        flex-direction: column;
        margin-bottom: 50px;
    }
    .variation-selectors, .custom-design-upload, .cut-to-size-section .cut-to-size-section_body {
        margin-bottom: 50px;
    }
    .variation-field, .cut-to-size-section .form-field, .preview-section {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }
    .vari_txt {
        text-align: center;
    }
    .product-price-section {
        gap: 20px;
    }
    .custom-product-configurator form {
        margin-bottom: 0;
    }
    .quantity-selector {
        max-width: 142px;
    }
    button.single_add_to_cart_button.button.alt {
        width: calc(100% - 142px);
    }
    .size-fields {
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .file-upload-trigger {
        width: 100% !important;
        font-size: 12px !important;
    }
}
@media (max-width: 360px) {
    .quantity-and-cart {
        flex-direction: column;
    }
    .quantity-selector, .button.single_add_to_cart_button.button.alt {
        width: 100%;
    } 
}