/* WooCommerce Antigro Designer — Frontend Styles */

/* ── Product page wrapper ── */
.wad-designer-wrap {
    margin: 12px 0 20px !important;
}

/* ── Design button — matches site's .cta-button exactly ── */
.wad-create-design-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 200px !important;
    text-align: center !important;
    background-color: #5b7ae6 !important;
    color: #ffffff !important;
    padding: 13px 40px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: 'Montserrat', sans-serif !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wad-create-design-btn:hover,
.wad-create-design-btn:focus {
    background-color: #4a63c5 !important;
    color: #ffffff !important;
}

.wad-create-design-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

/* ── Status text below button ── */
.wad-design-status {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #46b450;
}

/* ── Cart thumbnails ── */
.wad-cart-thumbnail {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 6px;
}

.wad-cart-no-thumb {
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}

/* ── Thumbnail loading state — product image shown as placeholder with spinner badge ── */
.wad-product-thumb-wrap {
    display: block;
    position: relative;
}

.wad-product-thumb-wrap img {
    opacity: 0.6;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wad-thumb-loading-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes wad-spin {
    to { transform: rotate(360deg); }
}

.wad-thumb-spinner {
    animation: wad-spin 1s linear infinite;
    transform-origin: center;
    display: block;
}

/* ── Status badges ── */
.wad-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 4px;
}

.wad-badge-accepted {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wad-badge-new {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* ── Edit design button in cart ── */
.wad-edit-design-btn {
    margin-top: 6px !important;
    font-size: 0.85em !important;
    padding: 4px 10px !important;
}

/* ── Flexbox reorder — button appears right after price ── */
.product-gallery-summary .entry-summary {
    display: flex;
    flex-direction: column;
}

.product-gallery-summary .entry-summary .product_title        { order: 1; }
.product-gallery-summary .entry-summary .price                { order: 2; }
.product-gallery-summary .entry-summary .wad-designer-wrap    { order: 3; }
.product-gallery-summary .entry-summary .divider              { order: 4; }
.product-gallery-summary .entry-summary .product_meta         { order: 5; }
.product-gallery-summary .entry-summary .html-content         { order: 6; }
.product-gallery-summary .entry-summary .shortcode-content    { order: 7; }
.product-gallery-summary .entry-summary .botiga-trust-badge-wrapper { order: 8; }
.product-gallery-summary .entry-summary .elements-order-end   { order: 99; }

