.wccp-checkbox-container {
    padding: 15px;
    background: var(--element-bg);
    border: 1px solid var(--element-border);
    border-radius: var(--border-radius);
}

.wccp-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wccp-checkbox-container h4 {
    margin-bottom: 15px;
}

.wccp-services-title {
    margin: 0;
}

.wccp-checkbox-label-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wccp-checkbox-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.2s;
}


.wccp-checkbox-label:hover {
    background: #f0f0f0;
}

.wccp-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.wccp-service-price {
    float: right;
    color: #777;
    font-weight: bold;
}

.wccp-checkbox-label .wccp-service-price {
    transition: color 0.2s;
}

.wccp-checkbox-label input:checked+.wccp-service-price {
    color: #4CAF50;
}

.wccp-total-extra {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    text-align: right;
    font-size: 1.1em;
}

.wccp-extra-label {
    margin-right: 10px;
    font-weight: bold;
}

.wccp-extra-total {
    color: #4CAF50;
    font-weight: bold;
}

/* Tooltip styles */
.wccp-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    margin: 0 4px;
}

.wccp-question-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #666;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s;
}

.wccp-tooltip-trigger:hover .wccp-question-mark,
.wccp-tooltip-trigger:focus .wccp-question-mark {
    background: #2271b1;
}

.wccp-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 90vw;
    padding: 14px 16px;
    background: #1e1e1e;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    text-align: left;
}

.wccp-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e1e1e transparent transparent transparent;
}

.wccp-tooltip-trigger:hover .wccp-tooltip-content,
.wccp-tooltip-trigger:focus .wccp-tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Make sure images inside tooltip look good */
.wccp-tooltip-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
    border-radius: 4px;
}

/* Loading state for services */
.wccp-checkbox-container.wccp-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.wccp-checkbox-container.wccp-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: wccp-spin 0.6s linear infinite;
    z-index: 10;
}

@keyframes wccp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Also disable the checkboxes visually */
.wccp-checkbox-container.wccp-loading .wccp-service-checkbox {
    cursor: not-allowed;
}

/* Personal price active: services are included and locked on */
.wccp-personal-note {
    margin: 0 0 15px;
    padding: 8px 12px;
    background: #eaf5ea;
    border: 1px solid #b7dfb7;
    border-radius: 3px;
    font-size: 0.9em;
    color: #2e7d32;
}

.wccp-personal-active .wccp-checkbox-label {
    cursor: default;
}

.wccp-personal-active .wccp-checkbox-label:hover {
    background: #fff;
}

.wccp-personal-active .wccp-service-checkbox {
    cursor: not-allowed;
}