/* Clean Blue Design System */
:root {
    --color-white: #FFFFFF;
    --color-bg: #F5F7FA;
    --color-primary: #00A3D9;
    /* Clean Blue */
    --color-primary-light: #E0F7FA;
    --color-primary-dark: #008CB8;
    --color-text: #333333;
    --color-border: #E5E5E5;
    --color-shadow: rgba(0, 0, 0, 0.05);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius-lg: 16px;
    --radius-md: 12px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
}

/* Scoped to container to avoid WP conflict, though body reset might be needed carefully */
.sce-container {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;

    background-color: var(--color-white);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* Centered in WP content */
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px var(--color-shadow);
    padding: var(--spacing-lg);
    box-sizing: border-box;
}

/* Header */
.sce-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.sce-header h2 {
    font-weight: 300;
    font-size: 28px;
    margin: 0 0 16px;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.sce-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Sections */
.sce-section {
    margin-bottom: 48px;
}

.sce-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Grid & Cards */
.sce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sce-card {
    position: relative;
    cursor: pointer;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px transparent;
    text-decoration: none;
    /* Reset for WP */
}

.sce-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px var(--color-shadow);
    transform: translateY(-2px);
}

.sce-card.active {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
}

/* Checkbox (Hidden) */
.sce-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Checkbox Card Content */
.sce-card-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding-left: 36px;
    position: relative;
}

.sce-card-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 1px solid #CCC;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: #FFF;
    box-sizing: border-box;
}

.sce-card.active .sce-card-content::before {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Counter Card Styles */
.sce-card-counter {
    cursor: default;
    /* Not clickable as a whole */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.sce-card-counter:hover {
    transform: none;
    /* Disable hover lift for counters to avoid jitter when clicking btns */
}

.sce-card-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: baseline;
}

/* Counter Controls */
.sce-counter-control {
    display: flex;
    align-items: center;
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    /* Pill shape */
    padding: 2px;
    width: 100%;
    justify-content: space-between;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.sce-counter-control button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #F0F0F0;
    color: #555;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sce-counter-control button:hover {
    background-color: #E0E0E0;
}

.sce-counter-control button.active {
    background-color: var(--color-primary);
    color: #FFF;
}

.sce-counter-control input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* Labels & Prices */
.sce-label {
    font-size: 15px;
    font-weight: 500;
}

.sce-price {
    font-size: 14px;
    color: #666;
    font-family: inherit;
}

.sce-card.active .sce-price {
    color: var(--color-primary);
    font-weight: 600;
}

/* Info Card */
.sce-card-info-box {
    cursor: default;
    background-color: #FAFAFA;
}

/* Discount Area */
.sce-discount-area {
    margin-bottom: 16px;
    font-size: 14px;
    color: #FF5252;
    /* Alert/Discount color */
}

.sce-discount-item {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Footer & Total */
.sce-footer {
    margin-top: 60px;
    text-align: center;
    background: #FAFDFF;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--color-primary-light);
}

.sce-total-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.sce-total-price {
    color: var(--color-primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 30px;
}

.sce-currency {
    font-size: 32px;
    font-weight: 300;
    margin-right: 8px;
}

#sce-total-amount {
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    font-feature-settings: "tnum";
}

.sce-tax {
    font-size: 14px;
    color: #999;
    margin-left: 8px;
}

.sce-note {
    font-size: 12px;
    color: #AAA;
    margin-top: 24px;
    line-height: 1.5;
}

/* Action Button */
.sce-action-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    /* Full rounded */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 163, 217, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
    appearance: none;
}

.sce-action-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 217, 0.4);
}

.sce-action-btn:active {
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .sce-container {
        padding: 24px 16px;
        margin: 10px;
    }

    #sce-total-amount {
        font-size: 48px;
    }
}