#cmc-field-tile-viewer {
    width: 84%;
    box-sizing: border-box;
    padding: 0 0 0 20px;
    position: relative;
    min-height: 300px;
}

.cmc-field-tile-disclaimer h5 {
    font-size: 11px;
    color: #777;
    font-weight: normal;
    margin-top: 25px;
    line-height: 1.5;
}

.ft-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 4px;
}

.ft-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    animation: ft-spin 0.8s linear infinite;
}

@keyframes ft-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#cmc-field-tile-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 20px 0;
}

.ft-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.ft-row-top {
    align-items: flex-start;
}

.ft-row-bottom {
    align-items: flex-end;
}

.ft-tile-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ft-tile-canvas {
    display: block;
    background-color: #fffff8;
    border: 1px solid #eee;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.15);
}

.ft-tile-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.ft-label-inch {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.ft-label-cm {
    font-size: 10px;
    color: #777;
}

#cmc-field-tile-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 12px;
}

#cmc-field-tile-select-color,
#cmc-field-tile-refresh {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: underline;
    cursor: pointer;
}

#cmc-field-tile-selected-name {
    font-size: 13px;
    color: #555;
    font-style: italic;
}

#cmc-field-tile-request-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

#cmc-field-tile-request-btn:hover {
    background-color: #444;
}

#cmc-ft-color-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

#cmc-ft-color-modal-close {
    position: absolute;
    top: 0px;
    right: 0;
    background: none;
    border: none;
    font-size: 48px;
    cursor: pointer;
    z-index: 1;
    color: #000;
}
