:root {
    --cc-bg: #fff;
    --cc-text: #2c3e50;
    --cc-btn-primary-bg: linear-gradient(135deg, #CB20C8 0%, #7A2B86 100%);
    --cc-btn-primary-text: #fff;
    --cc-btn-primary-hover-bg: #7A2B86;
    --cc-btn-secondary-bg: transparent;
    --cc-btn-secondary-text: #CB20C8;
    --cc-btn-secondary-border: #CB20C8;
    --cc-btn-secondary-hover-bg: #CB20C8;
    --cc-btn-secondary-hover-text: #fff;
    --cc-toggle-bg-off: #d1d3d4;
    --cc-toggle-bg-on: #CB20C8;
    --cc-toggle-bg-readonly: #d1d3d4;
    --cc-overlay-bg: rgba(0, 0, 0, 0.7);
    --cc-webkit-scrollbar-bg: #f1f1f1;
    --cc-webkit-scrollbar-thumb: #CB20C8;
}

#cm {
    font-family: 'Mulish', sans-serif;
    background: var(--cc-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    padding: 30px;
}

#c-ttl {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cc-text);
    margin-bottom: 15px;
}

#c-txt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.c-bn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#c-p-bn {
    background: var(--cc-btn-primary-bg);
    color: var(--cc-btn-primary-text);
    box-shadow: 0 4px 15px rgba(203, 32, 200, 0.3);
}

#c-p-bn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 32, 200, 0.4);
}

#c-s-bn {
    background: var(--cc-btn-secondary-bg);
    color: var(--cc-btn-secondary-text);
    border: 2px solid var(--cc-btn-secondary-border);
}

#c-s-bn:hover {
    background: var(--cc-btn-secondary-hover-bg);
    color: var(--cc-btn-secondary-hover-text);
}

#cm-ov {
    background: var(--cc-overlay-bg);
}

.cc_div *, #cc--main * { transition: none !important; animation: none !important; }

#cm-ov, #cs-ov { pointer-events: none !important; }

#cm, #s-cnt { pointer-events: auto !important; z-index: 10000; }
#cm .c-bn, #s-cnt .c-bn { pointer-events: auto !important; cursor: pointer; }

#s-cnt {
    font-family: 'Mulish', sans-serif;
    background: var(--cc-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(203, 32, 200, 0.1);
    max-width: 520px;
    max-height: 86vh;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#s-hdr {
    background: linear-gradient(135deg, #CB20C8 0%, #7A2B86 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    position: relative;
}

#s-ttl {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
}

#s-c-bnc {
    display: flex;
    align-items: center;
    justify-content: center;
}

#s-bl {
    padding: 16px;
    max-height: 52vh;
    overflow-y: auto;
}

#s-bl .c-bl {
    padding: 20px;
    border: none;
    border-radius: 14px;
    margin: 12px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#s-bl .c-bl:first-child {
    background: linear-gradient(135deg, rgba(203,32,200,0.06) 0%, rgba(122,42,134,0.06) 100%);
}

.b-tl {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cc-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.b-tl.exp {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0;
    cursor: pointer;
    position: relative;
    padding-right: 24px;
    display: block;
}

.b-tl.exp:after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 0.75rem;
    color: var(--cc-text);
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.b-tl.exp[aria-expanded="true"]:after {
    transform: rotate(180deg);
}

.b-tl.exp:hover {
    color: #CB20C8;
}

.b-tl.exp:hover:after {
    opacity: 1;
}

.b-bn .t-lb {
    display: none;
}

.b-acc[aria-hidden="true"] {
    display: none !important;
}

.b-acc[aria-hidden="false"] {
    display: block !important;
}

.desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 8px;
}

.b-tg {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.b-tg, .b-tg * { cursor: pointer; }

.c-tgl {
    opacity: 0;
    width: 0;
    height: 0;
}

.c-tg {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cc-toggle-bg-off);
    border-radius: 26px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.c-tg:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.c-tgl:checked + .c-tg {
    background-color: var(--cc-toggle-bg-on);
    box-shadow: 0 2px 8px rgba(203, 32, 200, 0.3);
}

.c-tgl:checked + .c-tg:before {
    transform: translateX(24px);
}

.c-tg.c-ro {
    opacity: 0.5;
    cursor: not-allowed;
}

#s-bns {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
    flex-wrap: wrap;
}

#s-bns .c-bn {
    min-width: 110px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

#s-all-bn {
    background: linear-gradient(135deg, #CB20C8 0%, #7A2B86 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(203, 32, 200, 0.3);
}

#s-all-bn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(203, 32, 200, 0.4);
}

#s-rall-bn {
    background: #f8f9fa;
    color: var(--cc-text);
    border: 2px solid #e0e0e0;
}

#s-rall-bn:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
}

#s-sv-bn {
    background: white;
    color: #CB20C8;
    border: 2px solid #CB20C8;
}

#s-sv-bn:hover {
    background: #CB20C8;
    color: white;
}

#s-c-bn {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

#s-c-bn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#s-c-bn:after {
    content: "×";
    display: block;
}

.cc-link {
    color: #CB20C8;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.cc-link:hover {
    border-bottom-color: #CB20C8;
}

.desc .p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cc-webkit-scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--cc-webkit-scrollbar-thumb);
    border-radius: 4px;
}

.cc_div .box.bottom.right { right: 20px; left: auto; bottom: 20px; }
.cc_div .box.bottom.right.slide { right: 20px; left: auto; bottom: 20px; }

#s-cnt.box { right: 20px; left: auto; bottom: 20px; position: fixed; }
#s-cnt .b-tl { margin-top: 4px; }
#s-bl { max-height: 60vh; overflow: auto; }
#s-bns { position: sticky; bottom: 0; background: var(--cc-bg); padding: 12px 16px; border-top: 1px solid rgba(0,0,0,0.06); }
#s-bns .c-bn { min-width: 120px; }
#s-all-bn { background: linear-gradient(135deg, #CB20C8 0%, #7A2B86 100%); color: #fff; }
#s-all-bn:hover { transform: translateY(-1px); }
#s-rall-bn { background: #fff; color: var(--cc-text); border: 2px solid #e8e8e8; }
#s-sv-bn { background: #f7f7f9; color: var(--cc-text); border: 2px solid #eee; }

@media (max-width: 768px) {
    #cm { 
        padding: 24px; 
        font-size: 0.9rem; 
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
        border-radius: 16px 16px 0 0 !important;
    }
    #c-ttl { font-size: 1.3rem; margin-bottom: 16px; }
    #c-txt { font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; }
    #c-bns { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
    #c-bns button { width: 100%; padding: 14px; font-size: 0.95rem; }
    
    #s-cnt { 
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
    }
    #s-hdr { padding: 16px; }
    #s-ttl { font-size: 1.2rem; }
    #s-c-bn { width: 32px; height: 32px; font-size: 1.6rem; }
    #s-bl { 
        max-height: calc(100vh - 150px); 
        padding: 16px;
    }
    #s-bns { 
        padding: 16px;
        gap: 10px;
        flex-direction: column;
    }
    #s-bns .c-bn {
        width: 100%;
        min-width: auto;
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

