/* משתני צבע הנשלטים מההגדרות */
:root {
	--ipc-bg-color: #ffffff;
	--ipc-text-color: #333333;
	--ipc-primary-btn-bg: #0073e6;
	--ipc-secondary-btn-bg: #f0f0f0;
	--ipc-secondary-btn-text: #333333;
	--ipc-checkbox-text-color: #333333;
    --ipc-bar-bg-color: #222222;
    --ipc-bar-text-color: #ffffff;
    --ipc-bar-btn-color: #0073e6;
}

/* --- עיצוב חלון בפינה --- */
#ipc-cookie-banner { position: fixed; z-index: 99999; background-color: var(--ipc-bg-color); color: var(--ipc-text-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); padding: 20px 25px; width: 90%; max-width: 420px; box-sizing: border-box; font-family: inherit; font-size: 14px; line-height: 1.6; transition: background-color 0.3s, color 0.3s; }
#ipc-cookie-banner.ipc-position-right { bottom: 20px; right: 20px; }
#ipc-cookie-banner.ipc-position-left { bottom: 20px; left: 20px; }
#ipc-cookie-banner .ipc-banner-content h4 { margin-top: 0; margin-bottom: 10px; font-size: 18px; color: var(--ipc-text-color); }
#ipc-cookie-banner .ipc-banner-content p { margin: 0 0 15px; }
#ipc-cookie-banner .ipc-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#ipc-cookie-banner .ipc-close-btn { position: absolute; top: 8px; left: 10px; background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--ipc-text-color); padding: 5px; opacity: 0.7; transition: opacity 0.2s; }
#ipc-cookie-banner .ipc-close-btn:hover, #ipc-cookie-banner .ipc-close-btn:focus { background-color: transparent !important; color: var(--ipc-text-color) !important; opacity: 1; text-decoration: none; }
#ipc-cookie-banner .ipc-btn { border-radius: 5px; padding: 10px 15px; font-size: 14px; font-weight: bold; cursor: pointer; text-align: center; border: 1px solid transparent; transition: filter 0.2s; }
#ipc-cookie-banner .ipc-btn-primary { background-color: var(--ipc-primary-btn-bg); color: #fff; }
#ipc-cookie-banner .ipc-btn-secondary { background-color: var(--ipc-secondary-btn-bg); color: var(--ipc-secondary-btn-text); border: 1px solid #ccc; }
#ipc-cookie-banner.ipc-theme-dark .ipc-btn-secondary { border-color: #555; }
#ipc-cookie-banner .ipc-btn:hover { filter: brightness(90%); }
#ipc-cookie-banner .ipc-privacy-link-wrapper { text-align: center; margin-bottom: 15px; margin-top: -5px; }
#ipc-cookie-banner .ipc-privacy-link-wrapper a { color: var(--ipc-primary-btn-bg); font-size: 13px; text-decoration: underline; opacity: 0.9; }

/* --- עיצוב חדש לשורה תחתונה --- */
.ipc-layout-bar {
    position: fixed;
    bottom: 20px;
    left: 2%;
    right: 2%;
    width: 96%;
    z-index: 99999;
    background-color: var(--ipc-bar-bg-color);
    color: var(--ipc-bar-text-color);
    padding: 15px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    display: flex !important;
    justify-content: center; /* יישור למרכז */
    align-items: center;
    gap: 20px;
    font-family: inherit;
    box-sizing: border-box;
    flex-wrap: wrap; /* מאפשר גלישה במסכים קטנים */
}
.ipc-layout-bar .ipc-bar-content { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; justify-content: center; }
.ipc-layout-bar .ipc-bar-content p { margin: 0; font-size: 14px; }
.ipc-layout-bar .ipc-bar-content a { color: var(--ipc-bar-text-color); text-decoration: underline; }
.ipc-layout-bar .ipc-bar-btn { background-color: var(--ipc-bar-btn-color); color: white; border: none; padding: 10px 25px; font-size: 14px; font-weight: bold; border-radius: 5px; cursor: pointer; white-space: nowrap; transition: filter 0.2s; }
.ipc-layout-bar .ipc-bar-btn:hover { filter: brightness(90%); }
.ipc-bar-actions {
	display: flex;
}
/* עיצוב תיבת הסימון בטפסים */
.ipc-form-consent-wrapper { display: flex; align-items: center; margin: 15px 0; font-size: 14px; font-family: inherit; color: var(--ipc-checkbox-text-color); }
.ipc-form-consent-wrapper.ipc-checkbox-boxed { background-color: #f9f9f9; border: 1px solid #e5e5e5; padding: 12px 15px; border-radius: 8px; }
.ipc-form-consent-wrapper a { color: var(--ipc-primary-btn-bg); text-decoration: underline; font-weight: bold; }
.ipc-form-consent-wrapper .ipc-linked-text { margin: 0 4px; }
.ipc-form-consent-wrapper input[type="checkbox"] { opacity: 0; position: absolute; width: 0; height: 0; }
.ipc-form-consent-wrapper label { display: flex; align-items: center; cursor: pointer; }
.ipc-form-consent-wrapper label::before { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 4px; margin-left: 10px; background-color: #fff; transition: all 0.2s; }
.ipc-form-consent-wrapper input[type="checkbox"]:checked + label::before { background-color: var(--ipc-primary-btn-bg); border-color: var(--ipc-primary-btn-bg); color: white; content: '\2713'; text-align: center; line-height: 20px; font-weight: bold; }
body.ltr .ipc-form-consent-wrapper label::before { margin-left: 0; margin-right: 10px; }

/* התאמות למסכים שונים */
@media (min-width: 768px) {
    .ipc-form-parent { position: relative; padding-bottom: 55px !important; }
    .ipc-form-consent-wrapper { position: absolute; bottom: 10px; right: 0; margin: 0; white-space: nowrap; }
    body.ltr .ipc-form-consent-wrapper { right: auto; left: 0; }
}

@media (max-width: 768px) {
    .ipc-layout-bar {
        width: 95%;
        left: 2.5%;
        right: 2.5%;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    #ipc-cookie-banner.ipc-position-right,
    #ipc-cookie-banner.ipc-position-left {
        bottom: 10px;
        left: 5%;
        right: auto;
        width: 90%;
    }
}