.cp-info-container {
    display: block;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
}

.cp-info-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.cp-info-table {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

.cp-info-column {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

.cp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.cp-info-row[data-align="flex-start"] {
    justify-content: flex-start;
}

.cp-info-row[data-align="center"] {
    justify-content: center;
}

.cp-info-row[data-align="flex-end"] {
    justify-content: flex-end;
}

.cp-info-row[data-align="stretch"] {
    justify-content: space-between;
}

.cp-info-row[data-align="stretch"] .cp-info-attr {
    flex: 1;
}

.cp-info-row[data-align="stretch"] .cp-info-value {
    flex: 1;
    text-align: right;
}

.cp-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #666666;
}

.cp-info-icon i {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.cp-info-attr {
    font-weight: 400;
    color: #666666;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cp-info-value {
    font-weight: 500;
    color: #333333;
    text-align: right;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cp-info-expand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    color: #0073aa;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}

.cp-info-expand:hover {
    color: #005177;
    background-color: rgba(0, 115, 170, 0.1);
}

.cp-info-expand:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.cp-info-expand i {
    font-size: 10px;
    transition: transform 0.2s;
}

.cp-info-expand[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.cp-info-row[data-expandable="true"] .cp-info-value {
    display: inline-block;
    max-width: 100%;
}

.cp-info-row[data-expandable="true"].cp-collapsed .cp-info-value::after {
    content: '...';
    display: inline-block;
    margin-left: 4px;
}

.cp-info-empty {
    padding: 30px;
    text-align: center;
    color: #666;
}

/* Responsive grid columns - Desktop (default) */
@media (min-width: 1025px) {
    .cp-info-table[data-columns-desktop="1"] { grid-template-columns: 1fr; }
    .cp-info-table[data-columns-desktop="2"] { grid-template-columns: repeat(2, 1fr); }
    .cp-info-table[data-columns-desktop="3"] { grid-template-columns: repeat(3, 1fr); }
    .cp-info-table[data-columns-desktop="4"] { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) and (min-width: 768px) {
    .cp-info-table[data-columns-tablet="1"] { grid-template-columns: 1fr; }
    .cp-info-table[data-columns-tablet="2"] { grid-template-columns: repeat(2, 1fr); }
    .cp-info-table[data-columns-tablet="3"] { grid-template-columns: repeat(3, 1fr); }
    .cp-info-table[data-columns-tablet="4"] { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: up to 767px */
@media (max-width: 767px) {
    .cp-info-table[data-columns-mobile="1"] { grid-template-columns: 1fr; }
    .cp-info-table[data-columns-mobile="2"] { grid-template-columns: repeat(2, 1fr); }
    .cp-info-table[data-columns-mobile="3"] { grid-template-columns: repeat(3, 1fr); }
    .cp-info-table[data-columns-mobile="4"] { grid-template-columns: repeat(4, 1fr); }
    
    /* Stack columns on very small screens if more than 2 */
    .cp-info-table[data-columns-mobile="3"],
    .cp-info-table[data-columns-mobile="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small mobile: up to 480px - force single column */
@media (max-width: 480px) {
    .cp-info-table {
        grid-template-columns: 1fr !important;
    }
    
    .cp-info-row {
        gap: 8px;
    }
    
    .cp-info-value {
        text-align: left;
    }
    
    .cp-info-row[data-align="stretch"] .cp-info-value {
        text-align: left;
    }
    
    .cp-info-column {
        padding: 12px;
    }
    
    .cp-info-container {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    .cp-info-expand {
        display: none;
    }
    
    .cp-info-row[data-expandable="true"] .cp-info-value {
        max-width: none;
    }
    
    .cp-info-table {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}