#custom-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: none;
    font-family: inherit;
}

.custom-cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.custom-cookie-content {
    flex: 1;
}

.custom-cookie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.custom-cookie-text {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.custom-cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.custom-cookie-btn {
    border: 1px solid #d6d6d6;
    background: #fff;
    color: #222;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-cookie-save:hover {
    background: #000;
    color: #ffffff !important;
}

.custom-cookie-btn:hover {
    background: #f5f5f5;
    color: #000000 !important;
}

.custom-cookie-accept {
    background: #222;
    color: #fff;
    border-color: #222;
}

.custom-cookie-accept:hover {
    background: #000;
    color: #ffffff !important;
}

.custom-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
}

.custom-cookie-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.custom-cookie-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% - 40px);
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.custom-cookie-close {
    position: absolute;
	padding: 0px;
    top: 15px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.custom-cookie-close:hover{
	padding: 0 !important;
}

.custom-cookie-close:active{
	position: absolute !important;
}

.custom-cookie-dialog-header {
    padding-right: 35px;
    margin-bottom: 25px;
}

.custom-cookie-dialog-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #222;
}

.custom-cookie-dialog-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.custom-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #eee;
}

.custom-cookie-category-info {
    flex: 1;
}

.custom-cookie-category h3 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #222;
}

.custom-cookie-category p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
}

.custom-cookie-toggle {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

.custom-cookie-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.custom-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-cookie-switch span {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.custom-cookie-switch span:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.custom-cookie-switch input:checked + span {
    background: #222;
}

.custom-cookie-switch input:checked + span:before {
    transform: translateX(20px);
}

.custom-cookie-privacy {
    margin-top: 20px;
}

.custom-cookie-privacy a {
    font-size: 13px;
    color: #222;
    text-decoration: underline;
}

.custom-cookie-dialog-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.custom-cookie-save {
    background: #222;
    border-color: #222;
    color: #fff;
}

#custom-cookie-reopen {
    position: fixed;
    left: 15px;
    bottom: 15px;
    z-index: 999998;
    display: flex !important;
    align-items: center;
    gap: 7px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#custom-cookie-reopen img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {

    .custom-cookie-banner-inner {
        padding: 15px;
        display: block;
    }

    .custom-cookie-title {
        margin-bottom: 5px;
    }

    .custom-cookie-actions {
        margin-top: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .custom-cookie-btn {
        padding: 10px 8px;
        font-size: 12px;
    }

    .custom-cookie-dialog {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		margin: 0;
		padding: 22px;
	}

    .custom-cookie-category {
        gap: 12px;
    }

}