/* Cookie Banner Styles */
.pdn-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #0014ab;
    color: #fff;
    padding: 20px 25px;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, .3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pdn-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pdn-cookie-banner__text {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 15px;
}

.pdn-cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
}

.pdn-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pdn-cookie-banner__btn {
    border: 0;
    border-radius: 30px;
    padding: 10px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pdn-cookie-banner__btn--accept {
    background: #0d6efd;
    color: #fff;
}

.pdn-cookie-banner__btn--accept:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.pdn-cookie-banner__btn--reject {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.pdn-cookie-banner__btn--reject:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pdn-cookie-banner__link {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 10px;
}

/* Settings View */
.pdn-cookie-banner__settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.pdn-cookie-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.pdn-cookie-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Floating Widget */
.pdn-cookie-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background: #0014ab;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 999998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pdn-cookie-widget svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* CF7 Consent Styles */
.pdn-consent-wrapper {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.pdn-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.pdn-consent-checkbox {
    margin-top: 3px;
    cursor: pointer;
}

.wpcf7-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Blocking Overlay */
.pdn-forms-blocked {
    filter: grayscale(1);
    opacity: 0.5;
    position: relative;
    pointer-events: none; /* Блокируем взаимодействие с формой */
}

.pdn-blocked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    background: rgba(255, 255, 255, 0.1);
}

.pdn-blocked-overlay__content {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    /* Capture clicks on the pill */
}

.pdn-overlay-link {
    color: #ffd8e4;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.pdn-overlay-link:hover {
    opacity: 0.8;
}