body {
    font-family: Arial, sans-serif;
    padding: 40px;
}

h2 {
    margin-bottom: 10px;
}

img {
    width: 100%;
    height: auto;
}

.custom-select {
    user-select: none;
    position: relative;
    margin-bottom: 32px;
    margin-top: 12px;
    font-family: Nunito Sans;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    color: #333;
}

.custom-select.disabled {
    color: gray; 
    pointer-events: none;
    background-color: #f7f7f7;
}

.selected {
    padding: 10px;
    border: 1px solid #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 4px;
}

/* chevron (dolů) */
.selected::after{
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translateY(-60%) rotate(45deg);
    transition: transform .15s ease;
}

.custom-select.open .selected::after{
    transform: translateY(-35%) rotate(-135deg);
}



.custom-select.disabled .selected {
    background-color: #f7f7f7;
}

.custom-select.disabled .selected::after{
    border-right: 2px solid gray;
    border-bottom: 2px solid gray;
}

.options {
    display: none;
    border: 1px solid #c0c0c0;
    
    background: white;
    position: absolute;
    width: 100%;
    z-index: 100;
    border-radius: 4px;
    margin-top: 3px;

    /* ✨ přidané kvůli scrollování */
    max-height: 500px;
    overflow-y: auto;
}

.option {
    margin: 5px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.option.disable {
    color: gray;

}

.option:hover {
    background: #eee;
}

.icon {
    width: 25px;
    height: 25px;
}

img.icon[src=""],
img.icon:not([src]) {
    width: 0px;
}

.glitter-checkbox {
    margin-top: 0px !important;
    appearance: none;
    width: 43px;
    height: 43px;
    border: 1px solid #aaa;
    border-radius: 3px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.glitter-checkbox::before {
    content: "";
    width: 12px;
    height: 20px;
    border: 1px solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.glitter-checkbox:checked {
    margin-top: 0px;
}

.glitter-checkbox:checked::before {
    opacity: 1;
}


.cp-title {
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 36px;
    line-height: 39px;
    text-transform: uppercase;
    color: #333333;
    text-align: left;
    margin-top: 0;
    margin-bottom: 40px;
}

.cp-title-small {
    text-align: left;
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 21px;
    line-height: 23px;
    margin-bottom: 24px;
}

.cp-config-box {
    padding: 24px;
    padding-top: 36px !important;
    padding-bottom: 8px;
    border: 1px solid #e1e1e1;
}

.cp-select-title {
    text-align: left;
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 13px;
    line-height: 14px;
    text-transform: uppercase;
    color: #333333;
}
.cp-select-title.disabled {
    color: #999999;
}

.cp-text-box {
    padding: 24px;
    padding-top: 21px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e1e1e1;
    border-left: 1px solid #e1e1e1;
    border-right: 1px solid #e1e1e1;
    text-align: left;
    position: relative;
}

.cp-text-box .cp-header {
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 13px;
    line-height: 15px;
    text-transform: uppercase;
}

.cp-text-box .cp-header img {
    width: 30px;
    margin-right: 12px;
}

.cp-text-box .cp-text {
    margin-top: 16px;
    font-family: Nunito Sans;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
}

.cp-preview-content {
    border-top: 1px solid #e1e1e1;
}

.cp-vinyl-type {
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 13px;
    line-height: 14px;
    text-align: center;
    color: #999999;
}

.cp-preview-text {
    color: #333333;
    margin-top: 15px;
    text-align: left;
    font-family: Nunito Sans;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
}

.cp-preview-text a {
    color: #333333;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.cp-preview-text a:hover {
    color: #333333 !important;
    font-weight: 700;
    text-decoration: none;
}

.cp-variants-wrap {
    margin-top: -15px;
    float: right;
    padding: 2px;
    border: 1px solid #C0C0C0;
    border-radius: 4px;
    color: gray;
    background-color: #f7f7f7;
    cursor: pointer;
}

.cp-variant {
    float: left;
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 15px;
    line-height: 16px;
    border: 1px solid #f7f7f7;
    padding: 12px;
    margin: 1px;
}

.cp-variant.active {
    background-color: #fff;
    border: 1px solid #C0C0C0;
    border-radius: 4px;
    color: #333;
}

.cp-download-btn {
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
}
.cp-download-btn img {
    width: 28px;
    height: 28px;
}
.cp-download-btn {
    float: right;
    padding: 9px;
    margin-left: 10px;
    margin-top: -15px;
}

#cp-toast {
    position: absolute;
    top: 70%;          /* pod textem */
    left: 10%;
    margin-top: 4px;
    background: black;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

#cp-toast.show {
    opacity: 1;
}
