:root {
    --chisel-primary: #DA1D5D;
    --chisel-light-gray: #f5f5f5;
    --chisel-medium-gray: #e0e0e0;
    --chisel-dark-gray: #333333;
}

.woocommerce-MyAccount-content > .chisel-dashboard:nth-of-type(2) {
    display: none;
}

.woocommerce-MyAccount-navigation > ul > li:first-child {
    display: none;
}

.chisel-dashboard, .chisel-profile {
    font-family: Arial, sans-serif;
    color: var(--chisel-dark-gray);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.chisel-dashboard h2, .chisel-profile h2 {
    color: var(--chisel-primary);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.chisel-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.chisel-dashboard-box {
    background-color: var(--chisel-light-gray);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chisel-dashboard-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.chisel-dashboard-box h3 {
    color: var(--chisel-primary);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.chisel-dashboard-box p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.chisel-dashboard-box .button {
    background-color: var(--chisel-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chisel-dashboard-box .button:hover {
    background-color: #b81a4d;
}

.chisel-profile form {
    background-color: var(--chisel-light-gray);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chisel-profile .form-row {
    margin-bottom: 20px;
}

.chisel-profile label {
    display: block;
    margin-bottom: 8px;
    color: var(--chisel-dark-gray);
    font-weight: 600;
}

.chisel-profile input[type="text"],
.chisel-profile input[type="email"],
.chisel-profile input[type="tel"],
.chisel-profile input[type="date"],
.chisel-profile input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--chisel-medium-gray);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.chisel-profile input[type="text"]:focus,
.chisel-profile input[type="email"]:focus,
.chisel-profile input[type="tel"]:focus,
.chisel-profile input[type="date"]:focus,
.chisel-profile input[type="password"]:focus {
    border-color: var(--chisel-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(218, 29, 93, 0.2);
}

.chisel-profile fieldset {
    margin-top: 30px;
    border: 1px solid var(--chisel-medium-gray);
    padding: 20px;
    border-radius: 6px;
}

.chisel-profile legend {
    color: var(--chisel-primary);
    font-weight: 700;
    padding: 0 10px;
    font-size: 18px;
}

.chisel-profile button[type="submit"] {
    background-color: var(--chisel-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.chisel-profile button[type="submit"]:hover {
    background-color: #b81a4d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chisel-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .chisel-dashboard, .chisel-profile {
        padding: 15px;
    }

    .chisel-dashboard h2, .chisel-profile h2 {
        font-size: 24px;
    }

    .chisel-dashboard-box {
        padding: 20px;
    }

    .chisel-profile form {
        padding: 20px;
    }
}

/* Animation for dashboard boxes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chisel-dashboard-box {
    animation: fadeIn 0.5s ease-out forwards;
}

.chisel-dashboard-box:nth-child(1) { animation-delay: 0.1s; }
.chisel-dashboard-box:nth-child(2) { animation-delay: 0.2s; }
.chisel-dashboard-box:nth-child(3) { animation-delay: 0.3s; }
.chisel-dashboard-box:nth-child(4) { animation-delay: 0.4s; }

/* Custom styling for form elements */
.chisel-profile input[type="date"]::-webkit-calendar-picker-indicator {
    color: var(--chisel-primary);
}

.chisel-profile input[type="tel"]::placeholder,
.chisel-profile input[type="date"]::placeholder {
    color: #999;
}

/* Error state for form inputs */
.chisel-profile input.error {
    border-color: #ff3860;
}

.chisel-profile .error-message {
    color: #ff3860;
    font-size: 14px;
    margin-top: 5px;
}

/* Success message styling */
.chisel-profile .success-message {
    background-color: #23d160;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.add-to-compare,
.remove-from-compare {
    background-color: var(--chisel-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    font-size: 14px;
}

.add-to-compare:hover,
.remove-from-compare:hover {
    background-color: #b81a4d;
}

.remove-from-compare {
    background-color: #888;
}

.remove-from-compare:hover {
    background-color: #666;
}

.chisel-order-tracking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.chisel-order-tracking-table th,
.chisel-order-tracking-table td {
    padding: 10px;
    border: 1px solid var(--chisel-medium-gray);
    text-align: left;
}

.chisel-order-tracking-table th {
    background-color: var(--chisel-light-gray);
    font-weight: bold;
}

.order-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.status-processing { background-color: #c6e1c6; color: #5b841b; }
.status-completed { background-color: #c8d7e1; color: #2e4453; }
.status-on-hold { background-color: #f8dda7; color: #94660c; }
.status-pending { background-color: #e5e5e5; color: #777; }
.status-cancelled { background-color: #eba3a3; color: #761919; }

.view-order {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--chisel-primary);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 10px;
}

.order-status-select {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid var(--chisel-medium-gray);
}

.chisel-loyalty {
    max-width: 800px;
    margin: 0 auto;
}

.chisel-loyalty-summary {
    background-color: var(--chisel-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.chisel-loyalty-points {
    font-size: 36px;
    font-weight: bold;
    color: var(--chisel-primary);
}

.chisel-loyalty-history-table {
    width: 100%;
    border-collapse: collapse;
}

.chisel-loyalty-history-table th,
.chisel-loyalty-history-table td {
    padding: 10px;
    border: 1px solid var(--chisel-medium-gray);
    text-align: left;
}

.chisel-loyalty-history-table th {
    background-color: var(--chisel-light-gray);
    font-weight: bold;
}

#chisel-redeem-points {
    background-color: var(--chisel-primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chisel-redeem-points:hover {
    background-color: #b81a4d;
}

.chisel-loyalty-points-available {
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--chisel-light-gray);
    border-radius: 4px;
}

button.add-to-compare {
    display: none !important;
}