/* ==========================================================================
   pCon Frontend Styles
   BEM naming: block__element--modifier
   Blocks: pcon-config, pcon-configurator
   ========================================================================== */

/* ---------------------------------------------------------------------------
   pcon-config — Configuration details (cart, checkout, order)
   --------------------------------------------------------------------------- */

.pcon-config {
    margin: 8px 0 0;
    padding: 0;
}

.pcon-config__list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    font-size: 0.875em;
    line-height: 1.5;
}

.pcon-config__label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.pcon-config__label::after {
    content: ":";
}

.pcon-config__value {
    margin: 0;
    color: #333;
    word-break: break-word;
}

.pcon-config__label--id {
    color: #888;
    font-weight: 400;
    font-size: 0.9em;
}

.pcon-config__value--id {
    color: #888;
    font-family: monospace;
    font-size: 0.9em;
}

.pcon-config__id {
    font-size: 0.85em;
    color: #888;
}

/* --- Cart context --- */

.pcon-config--cart {
    margin-top: 10px;
}

/* Hide WooCommerce default variation rendering for pCon items in cart —
   BEM markup via woocommerce_after_cart_item_name replaces it */
.pcon-configured-item .variation {
    display: none;
}

/* --- Order context --- */

.pcon-config--order {
    margin-top: 8px;
}

/* --- Thumbnails --- */

.pcon-config__thumbnail {
    object-fit: contain;
    border-radius: 4px;
    background: #f8f8f8;
}

/* ---------------------------------------------------------------------------
   pcon-configurator — Iframe widget (shortcode)
   --------------------------------------------------------------------------- */

.pcon-configurator {
    position: relative;
    width: 100%;
}

.pcon-configurator__iframe {
    border: 0;
    display: block;
    width: 100%;
}

.pcon-configurator__error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}
