/**
 * Art Framing Add-On v2.0 — Styles
 * Minimal structural CSS. Designer overrides via theme CSS using .afa- classes.
 */

.afa-framing-section {
    margin: 20px 0;
    clear: both;
}

.afa-framing-label {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* Tiles */
.afa-framing-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.afa-frame-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 0.9em;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    min-width: 200px;
    flex: 1;
}

.afa-frame-tile.afa-tile-disabled,
.afa-frame-tile[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.afa-frame-tile.afa-tile-available {
    opacity: 1;
    cursor: pointer;
    pointer-events: all;
    border-color: #999;
}

.afa-frame-tile.afa-tile-available:hover {
    border-color: #333;
}

.afa-frame-tile.afa-tile-selected {
    border-color: #000;
    background: #f8f8f8;
    font-weight: 600;
}

.afa-tile-label {
    flex: 1;
}

.afa-tile-price {
    white-space: nowrap;
    font-weight: 700;
}

/* Status */
.afa-framing-status {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    margin-bottom: 6px;
}

/* Total */
.afa-framing-total {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.afa-total-label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.afa-total-price {
    font-size: 1.3em;
    font-weight: 700;
}

.afa-total-breakdown {
    font-size: 0.8em;
    opacity: 0.55;
}

/* Responsive */
@media (max-width: 600px) {
    .afa-framing-tiles { flex-direction: column; }
    .afa-frame-tile { min-width: unset; width: 100%; }
}
