:root {
    --site-primary-color: #a3226d;
    --site-text-color: #4a4a4a;
    --site-text-light: #7a7a7a;
    --site-border-color: #ca0476;
    --site-background-light: #f7f7f7;
    --site-background-white: #ffffff;
}


.discount-panel-compact {
    font-family: 'Open Sans', sans-serif; background: var(--site-background-white);
    border: 1px solid var(--site-border-color); border-radius: 4px; padding: 15px 40px;
    width: 100%; max-width: 550px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 20px auto 20px auto;
	position: relative;
    padding-top: 30px; 
	box-shadow: 0 0 10px rgba(139, 68, 109, 0.4);
}
.header-compact {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--site-border-color); padding-bottom: 12px; margin-bottom: 20px;
	margin-left: -20px;
    margin-right: -20px;
}
.main-stats h3 {
    font-size: 18px; font-weight: 500; margin: 0 0 15px 0; color: var(--site-text-color); text-transform: none;
}
.main-stats p { font-size: 15px; color: var(--site-text-light); margin: 0; }
.main-stats p strong { color: var(--site-text-color); font-weight: 600; }
.current-discount-box {
    background-color: var(--site-primary-color); color: white; text-align: center;
    border-radius: 4px; padding: 8px 8px; min-width: 110px;
}
.current-discount-box .label { display: block; font-size: 11px; opacity: 1; line-height: 1; }
.current-discount-box .value { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.progress-bar-area-compact { position: relative; padding-bottom: 25px; }
.progress-track { height: 6px; background-color: #efefef; border-radius: 3px; position: relative; }
.progress-fill { height: 100%; background: var(--site-primary-color); border-radius: 3px; transition: width 0.8s ease-in-out; }
.progress-tick-marker { position: absolute; top: 0; height: 100%; width: 2px; background-color: rgba(255, 255, 255, 0.8); transform: translateX(-1px); z-index: 1; }
.user-marker { position: absolute; top: -15px; transform: translateX(-50%); z-index: 2; transition: left 0.8s ease-in-out; font-size: 14px; color: var(--site-primary-color); }

/* --- ПОЧАТОК ЗМІН --- */

/* Контейнер для підписів тепер є просто точкою відліку */
.tier-labels-container {
    position: relative; /* Необхідно для абсолютного позиціонування дочірніх елементів */
    height: 20px;     /* Задаємо висоту, щоб під ним був простір */
    margin-top: 6px;
}

/* Кожен підпис тепер позиціонується абсолютно */
.tier-marker-compact {
    position: absolute;   /* Головна зміна! */
    top: 0;
    transform: translateX(-50%); /* Ідеальне центрування відносно точки 'left' */
    font-size: 12px;
    font-weight: 600;
    color: var(--site-text-light);
	white-space: nowrap;
}
.tier-marker-compact::before {
    content: '|';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%); /* Центруємо риску всередині батьківського елемента */
    color: #ccc;
}
.tier-marker-compact.achieved { color: var(--site-text-color); }
.tier-marker-compact.achieved::before { color: var(--site-primary-color); }

/* --- КІНЕЦЬ ЗМІН --- */

.summary-text-compact {
    margin-top: 5px; padding: 12px; background-color: var(--site-background-light);
    border-radius: 4px; text-align: center; font-size: 14px; font-weight: 400; margin-left: -20px; margin-right: -20px;
}
.summary-text-compact strong { color: var(--site-primary-color); font-weight: 700; }

.panel-title {
    position: absolute;
    top: 0; /* Притискаємо до верхньої межі */
    left: 20px; /* Відступ зліва */
    
    /* Магія: піднімаємо блок на половину його висоти, щоб він став по центру межі */
    transform: translateY(-50%); 
    
    /* Фон потрібен, щоб "прорізати" межу під ним */
    background-color: var(--site-background-white); 
    
    padding: 0 10px; /* Відступи по боках від тексту */
}

/* Стилізація тексту заголовка */
.panel-title span {
    color: var(--site-text-light); /* Сірий колір, як ви хотіли */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase; /* Великі літери */
    letter-spacing: 0.5px; /* Трохи розріджуємо літери */
}

.header-compact .main-stats p {
    font-size: 14px;
}

/* Контейнер для посилання */
.rules-link-container {
    border-top: 1px solid var(--site-border-color);
    margin-top: 15px;
    padding-top: 12px;
    text-align: center; /* Цей рядок центрує посилання */
}

/* Стилізація самого посилання (ваш обраний стиль) */
.rules-link {
    display: inline-flex;
    align-items: center;
    color: var(--site-text-light);
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    transition: color 0.2s ease-in-out;
}

/* Ефект при наведенні миші (ваш обраний стиль) */
.rules-link:hover {
    color: var(--site-primary-color);
    text-decoration-style: solid;
}

.rules-link-container .fa {
    font-size: 16px;
    margin-right: 6px;  
	align-items: center;
	color: var(--site-text-light);	
}