/* Cbk code snippet */
.cbk-code-container {
    margin: 20px 0;
    position: relative;
}

.cbk-code-block {
    white-space: pre;
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.cbk-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #61dafb;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    color: #282c34;
    transition: all 0.2s ease;
}

.cbk-copy-btn:hover {
    background: #4fa8c7;
}

.cbk-copy-btn.copied {
    background: #98c379;
    color: white;
}

/* Cbk timeline */
.cbk-timeline-main {
    max-width: 600px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr;
}

.cbk-timeline-main>br,
.cbk-timeline-main>p {
    display: none !important;
}

.cbk-timeline-entry {
    border-left: 2px solid #0056b3;
    padding-left: 20px;
    position: relative;
    padding-bottom: 30px;
    display: block;
}

.cbk-timeline-dot {
    width: 12px;
    height: 12px;
    background: #0056b3;
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 5px;
}


.cbk-timeline-label {
    color: #0056b3;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cbk-timeline-body p {
    margin: 0 !important;
    line-height: 1.6;
}

/**GDPR**/

.cbke-privacy-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 380px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    z-index: 999999;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cbke-privacy-popup .cbke-privacy-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1d2327;
}


.cbke-privacy-popup .cbke-cookie-options {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cbke-privacy-popup .cbke-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.cbke-privacy-popup .cbke-option:last-child {
    margin-bottom: 0;
}

.cbke-privacy-popup .cbke-option input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cbke-privacy-popup .cbke-privacy-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.cbke-privacy-popup .cbke-privacy-buttons button {
    height: 38px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cbke-privacy-popup .btn-accept {
    width: 100%;
    background: #2271b1;
    color: #ffffff;
}

.cbke-privacy-popup .btn-accept:hover {
    background: #1a5a8e;
}


.cbke-privacy-popup .cbke-secondary-actions {
    display: flex;
    gap: 8px;
}

.cbke-privacy-popup .btn-reject,
.cbke-privacy-popup .btn-save {
    flex: 1;
    background: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6 !important;
}

.cbke-privacy-popup .btn-reject:hover {
    background: #f8d7da;
    color: #a71d2a;
    border-color: #f5c6cb !important;
}

.cbke-privacy-popup .btn-save:hover {
    background: #dde2e6;
}

.cbke-privacy-popup .cbke-privacy-link {
    color: #2271b1;
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    margin-left: 5px;
}

.cbke-privacy-popup .cbke-privacy-link:hover {
    color: #135e96;
    text-decoration: none;
}


.cbke-privacy-popup .cbke-privacy-content p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/*Contact form*/
.cbke-contact-wrapper {
    max-width: 650px;
    margin: 2rem 0;
    font-family: var(--wp--preset--font-family--body);
}

.cbke-contact-wrapper .form-row {
    margin-bottom: 1.2rem;
}

.cbke-contact-wrapper input[type="text"],
.cbke-contact-wrapper input[type="email"],
.cbke-contact-wrapper textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--wp--preset--color--contrast-3, #ccc);
    border-radius: 0;
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.cbke-contact-wrapper input:focus,
.cbke-contact-wrapper textarea:focus {
    outline: 2px solid var(--wp--preset--color--contrast);
    outline-offset: -2px;
}

.cbke-contact-wrapper .gdpr-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cbke-contact-wrapper .gdpr-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.cbke-contact-wrapper button[type="submit"] {
    display: inline-block;
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cbke-contact-wrapper button[type="submit"]:hover {
    opacity: 0.9;
}

.cbke-contact-wrapper .cbk-contact-messages .contact-success-msg {
    background-color: #f0fdf4;
    color: #166534;
    padding: 1rem;
    border-left: 4px solid #22c55e;
    margin-bottom: 2rem;
}

.cbke-contact-wrapper .cbk-contact-messages .errors-container {
    background: #fee;
    border: 1px solid #f99;
    padding: 10px;
    margin-bottom: 20px;
    color: #a00;
}

.cbke-contact-wrapper .cbk-contact-messages .errors-container ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 480px) {
    .cbke-privacy-popup {
        left: 10px;
        right: 10px;
        width: auto;
    }
}