

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Rubik+Mono+One&display=swap');

:root {
    --banner-bg: #0A5F45; /* цвет фона */
    --accent-color-primary: #FFFD59; /* цвет даты и кнопки */
    --accent-color-secondary: #FF9500; /* второй цвет кнопки */
    --font-family: "Rubik Mono One", sans-serif;
    --second-family: "Open Sans", sans-serif;
    --font-size-descr: 13px; /* размер шрифта - первая строка */
    --font-size-date: 14px;  /* размер шрифта - дата */
    --font-size-title: 18px; /* размер шрифта - 3я строка */
    --font-size-btn: 13px; /* размер шрифта - кнопка */
    
}

.custom-banner-wrapper {
		position: fixed;
		z-index: 500;
    bottom: 6px;
    max-width: 100%;
    width: 600px;
    padding: 16px 60px;
    background: var(--banner-bg);
    overflow: hidden;
}

.custom-banner-content {
		display: flex;
    justify-content: space-between;
    align-items: center;
    grid-gap: 4px;
}

.custom-banner-text {
    text-align: center;
}

.custom-banner-text__descr {
		margin-bottom: 6px;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: var(--font-size-descr);
    color: #fff;
}

.custom-banner-text__date {
		margin-bottom: 2px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-date);
    color: #fffd59;
}

.custom-banner-text__title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: var(--font-size-title);
    color: #fff;
}

.custom-banner-btn {
	flex-shrink: 0;
	max-width: 150px;
}

.custom-banner-btn a {
	position: relative;
	display: flex;
  align-items: center;
	min-height: 30px;
  margin-bottom: 6px;
	padding: 0 9px;
  background: var(--accent-color-primary);
	font-family: var(--second-family);
	font-weight: 600;
	font-size: var(--font-size-btn);
	text-align: center;
	color: var(--banner-bg);
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	border-radius: 15px;
}

.custom-banner-btn a:after {
	content: "";
    position: absolute;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent-color-secondary);
    border-radius: 15px;
    transform: translate(-4px, 4px);
}

.custom-banner-close {
    position: absolute;
    top: -4px;
    right: 7px;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
}

@media (max-width: 768px) {
	.custom-banner-wrapper {
    bottom: 50px;
	}
}


@media (max-width: 600px) {
		:root {
	    --font-size-title: 14px;
	    --font-size-btn: 13px;
	}
	
		.custom-banner-wrapper {
	    padding: 12px 24px 12px 20px;
	}
	
	.custom-banner-text {
	    text-align: left;
	}
}

@media (max-width: 375px) {
    :root {
        --font-size-title: 13px;
        --font-size-date: 13px;
        --font-size-btn: 10px;
    }
    
    .custom-banner-wrapper {
	    padding: 6px 24px 7px 12px;
	}
	
    
    .custom-banner-text__descr,
    .custom-banner-text__date {
	    margin-bottom: 0;
	}
}

