/* wp-content/plugins/simple-custom-cart/css/style.css */

.simple-custom-cart-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.simple-custom-cart-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.simple-custom-cart-container p {
    text-align: center;
    color: #666;
    font-size: 1.1em;
}

.simple-custom-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.simple-custom-cart-table th,
.simple-custom-cart-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.simple-custom-cart-table th {
    background-color: #eef;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

.simple-custom-cart-table tbody tr:nth-child(even) {
    background-color: #f6f6f6;
}

.simple-custom-cart-table input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1em;
}

.scc-remove-button,
.scc-update-button,
.scc-clear-button,
.scc-add-to-cart-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 10px; /* Space between buttons */
}

.scc-remove-button {
    background-color: #dc3232; /* Red for remove */
}

.scc-update-button {
    background-color: #22a032; /* Green for update */
}

.scc-clear-button {
    background-color: #f0ad4e; /* Orange for clear */
}

.scc-add-to-cart-button {
    background-color: #0073aa; /* Blue for add to cart */
}

.scc-remove-button:hover,
.scc-update-button:hover,
.scc-clear-button:hover,
.scc-add-to-cart-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.scc-remove-button:active,
.scc-update-button:active,
.scc-clear-button:active,
.scc-add-to-cart-button:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.scc-add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: #fefefe;
}

.scc-add-to-cart-form label {
    font-weight: bold;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .simple-custom-cart-table,
    .simple-custom-cart-table thead,
    .simple-custom-cart-table tbody,
    .simple-custom-cart-table th,
    .simple-custom-cart-table td,
    .simple-custom-cart-table tr {
        display: block;
    }

    .simple-custom-cart-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .simple-custom-cart-table tr {
        border: 1px solid #e0e0e0;
        margin-bottom: 10px;
        border-radius: 5px;
        overflow: hidden;
    }

    .simple-custom-cart-table td {
        border: none;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .simple-custom-cart-table td:before {
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #444;
    }

    .simple-custom-cart-table td:nth-of-type(1):before { content: "Item:"; }
    .simple-custom-cart-table td:nth-of-type(2):before { content: "Price:"; }
    .simple-custom-cart-table td:nth-of-type(3):before { content: "Quantity:"; }
    .simple-custom-cart-table td:nth-of-type(4):before { content: "Subtotal:"; }
    .simple-custom-cart-table td:nth-of-type(5):before { content: "Actions:"; }