/* AIPCB List Inserter Block Styles */

.aipcb-list-inserter-block {
    margin: 20px 0;
    padding: 0;
}

.aipcb-component-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.aipcb-component-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.aipcb-component-list li:last-child {
    border-bottom: none;
}

.aipcb-component-list li strong {
    font-weight: 600;
}

.aipcb-component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.aipcb-component-name {
    flex: 1;
    margin-right: 15px;
    font-size: 16px;
}

.aipcb-price-display {
    font-weight: bold;
    color: #7D5860;
    white-space: nowrap;
    text-align: right;
    min-width: 80px;
    font-size: 16px;
}

.aipcb-total-cost {
    margin: 15px 0;
    font-size: 16px;
}

.aipcb-total-cost strong {
    color: #7D5860;
    font-size: 18px;
}

.aipcb-total-cost em {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.aipcb-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.aipcb-amazon-cart-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    background-color: #ff9900;
    color: #111;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.aipcb-amazon-cart-btn:hover {
    background-color: #ff7700;
    color: #111;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.aipcb-customize-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #0073aa;
    background-color: #fff;
    color: #0073aa;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.aipcb-customize-btn:hover {
    background-color: #0073aa;
    color: #fff;
    transform: translateY(-1px);
}

.aipcb-amazon-cart-btn:active,
.aipcb-customize-btn:active {
    transform: scale(0.98);
}

/* Editor styles */
.aipcb-list-inserter-editor {
    min-height: 200px;
}

.aipcb-list-inserter-editor .components-panel__body {
    border: none;
}

.aipcb-list-inserter-editor .components-base-control {
    margin-bottom: 16px;
}

.aipcb-list-inserter-editor .components-base-control__label {
    font-weight: 600;
    margin-bottom: 4px;
}

/* Responsive */
@media (min-width: 600px) {
    .aipcb-action-buttons {
        flex-direction: row;
    }
    
    .aipcb-amazon-cart-btn,
    .aipcb-customize-btn {
        width: auto;
        flex: 1;
    }
}
