/**
 * Dog Walking Business Pricing Styles - Updated Price Column
 */

/* Common Styles */
.dwb-pricing-container {
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dwb-pricing-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.dwb-pricing-description {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.dwb-book-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
}

.dwb-book-button:hover {
    background-color: #005a87;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}

.dwb-button-container {
    text-align: center;
    margin-top: 30px;
}

.dwb-no-services {
    text-align: center;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 5px;
    color: #666;
    font-style: italic;
}

/* Responsive visibility classes - FIXED */
.dwb-desktop-only {
    display: block;
}

.dwb-mobile-only {
    display: none !important; /* Added !important to ensure it stays hidden */
}

/* ===== TABLE LAYOUT STYLES ===== */
.dwb-pricing-table-wrapper {
    overflow-x: auto;
}

.dwb-pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.dwb-pricing-table th, 
.dwb-pricing-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    vertical-align: top;
}

.dwb-pricing-table th.dwb-price-column {
    text-align: left;
}

.dwb-pricing-table thead th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-top: none;
}

.dwb-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.dwb-pricing-table tr:nth-child(even) {
    background-color: #fafafa;
}

.dwb-pricing-table tr:hover {
    background-color: #f5f5f5;
}

/* Table: Service column styles */
.dwb-pricing-table .dwb-service-name {
    width: 25%;
}

.dwb-pricing-table .dwb-service-name strong {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.dwb-pricing-table .dwb-service-duration {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.dwb-pricing-table .dwb-service-duration:before {
    content: "\f469"; /* WordPress dashicon: clock */
    font-family: dashicons;
    margin-right: 5px;
    font-size: 14px;
    line-height: 1;
    padding-top: 3px;
}

/* Table: Description column */
.dwb-pricing-table .dwb-service-description {
    width: 55%;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Table: Price column - Updated */
.dwb-pricing-table .dwb-service-price {
    width: 20%;
    text-align: left;
}

.dwb-pricing-table .dwb-price-main {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 5px;
}

.dwb-pricing-table .dwb-price-extra-pet {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}

.dwb-pricing-table .dwb-price-extra-pet .dashicons {
    font-size: 14px;
    padding-top: 4px;
}

/* ===== CARD LAYOUT STYLES ===== */
.dwb-service-list {
    display: grid;
    grid-gap: 30px;
    margin-bottom: 30px;
    grid-auto-rows: 1fr;
}

.dwb-service-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dwb-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dwb-service-card .dwb-service-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dwb-service-card .dwb-service-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.dwb-service-card .dwb-service-price {
    color: #0073aa;
    font-size: 18px; /* Match table price size */
    font-weight: 700;
    white-space: nowrap;
}

.dwb-service-card .dwb-service-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dwb-service-card .dwb-service-description {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
    min-height: 70px; /* Ensure minimum height for consistency */
}

.dwb-service-card .dwb-service-features {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.dwb-service-card .dwb-service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

/* Make sure we're using the same clock icon for duration in both card and table */
.dwb-service-card .dwb-service-feature .dwb-service-feature-icon {
    display: inline-flex;
    margin-right: 10px;
    font-size: 16px;
    color: #0073aa;
    width: 20px;
    justify-content: center;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .dwb-service-list:not(.dwb-mobile-only) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 767px) {
    /* Switch from table to cards */
    .dwb-desktop-only {
        display: none !important; /* Added !important to ensure it stays hidden */
    }
    
    .dwb-mobile-only {
        display: grid !important; /* Changed to grid since it's a grid container and added !important */
    }
    
    .dwb-service-list {
        grid-template-columns: 1fr !important;
    }
    
    /* Old table responsive styles - kept for backwards compatibility */
    .dwb-pricing-table {
        display: block;
    }
    
    .dwb-pricing-table thead {
        display: none;
    }
    
    .dwb-pricing-table tbody, 
    .dwb-pricing-table tr, 
    .dwb-pricing-table td {
        display: block;
        width: 100%;
    }
    
    .dwb-pricing-table tr {
        margin-bottom: 20px;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .dwb-pricing-table td {
        text-align: right;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #eaeaea;
    }
    
    .dwb-pricing-table td:last-child {
        border-bottom: 0;
    }
    
    .dwb-pricing-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: 600;
        color: #555;
    }
}