.bg-voting-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.bg-voting-header {
text-align: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px solid #e1e1e1;
}
.bg-voting-header h2 {
margin: 0 0 10px;
color: #333;
font-size: 2.2em;
}
.bg-voting-date {
margin: 0 0 15px;
color: #666;
font-size: 1.1em;
}
.bg-voting-status {
padding: 10px 15px;
border-radius: 5px;
font-weight: 500;
}
.bg-voting-status.loading {
background-color: #e3f2fd;
color: #1976d2;
border: 1px solid #bbdefb;
}
.bg-voting-status.success {
background-color: #e8f5e8;
color: #2e7d32;
border: 1px solid #c8e6c9;
}
.bg-voting-status.error {
background-color: #ffebee;
color: #c62828;
border: 1px solid #ffcdd2;
}
.bg-voting-notice {
background-color: #f5f5f5;
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
border-left: 4px solid #2196f3;
}
.bg-voting-notice p {
margin: 0 0 10px;
}
.bg-voting-notice p:last-child {
margin-bottom: 0;
}
.bg-privacy-notice {
font-size: 0.9em;
color: #666;
}
.bg-voting-form {
margin-bottom: 30px;
}
.bg-voting-form.bg-voting-submitted {
opacity: 0.6;
pointer-events: none;
}
.bg-voting-success {
text-align: center;
padding: 32px 24px;
background-color: #e8f5e8;
border: 1px solid #c8e6c9;
border-radius: 10px;
margin: 24px 0;
color: #2e7d32;
box-shadow: 0 4px 14px rgba(46, 125, 50, 0.12);
}
.bg-voting-success-icon {
font-size: 3em;
line-height: 1;
margin-bottom: 10px;
}
.bg-voting-success-title {
margin: 0 0 8px;
color: #2e7d32;
font-size: 1.5em;
}
.bg-voting-success-text {
color: #4a4a4a;
margin: 0 0 18px;
line-height: 1.5;
}
.bg-voting-home-button {
display: inline-block;
background-color: #ea564e;
color: #fff !important;
padding: 12px 28px;
border-radius: 6px;
font-weight: 600;
text-decoration: none;
transition: background-color 0.2s ease, transform 0.2s ease;
}
.bg-voting-home-button:hover {
background-color: #c8443d;
transform: translateY(-1px);
text-decoration: none;
}
.bg-pre-submit-note {
background-color: #fff7f5;
border: 1px solid #ea564e;
color: #333;
padding: 14px 18px;
border-radius: 6px;
margin: 0 0 18px;
line-height: 1.5;
font-size: 0.95em;
}
.bg-pre-submit-note p:first-child { margin-top: 0; }
.bg-pre-submit-note p:last-child { margin-bottom: 0; }
.bg-modal {
display: none;
position: fixed;
inset: 0;
z-index: 2147483647;
align-items: center;
justify-content: center;
isolation: isolate;
}
.bg-modal.is-open {
display: flex;
}
.bg-modal-backdrop {
position: absolute;
inset: 0;
background-color: rgba(0, 0, 0, 0.55);
}
.bg-modal-dialog {
position: relative;
background-color: #fff;
max-width: 520px;
width: calc(100% - 32px);
border-radius: 10px;
padding: 24px;
box-shadow: 0 12px 40px rgba(0,0,0,0.25);
z-index: 1;
max-height: calc(100vh - 32px);
overflow-y: auto;
}
.bg-modal-dialog h3 {
margin: 0 0 12px;
color: #333;
font-size: 1.25em;
}
.bg-modal-body p {
line-height: 1.5;
margin: 0 0 12px;
}
.bg-confirm-missing {
margin: 0 0 12px;
padding-left: 20px;
max-height: 160px;
overflow-y: auto;
color: #555;
}
.bg-confirm-missing:empty {
display: none;
}
.bg-modal-warning {
background-color: #fff3cd;
border: 1px solid #ffe39a;
color: #5b4500;
padding: 10px 12px;
border-radius: 6px;
margin-bottom: 0;
}
.bg-modal-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 18px;
flex-wrap: wrap;
}
.bg-modal-button {
border: none;
border-radius: 6px;
padding: 10px 18px;
font-size: 0.95em;
cursor: pointer;
font-weight: 600;
}
.bg-modal-cancel {
background-color: #eee;
color: #333;
}
.bg-modal-cancel:hover {
background-color: #ddd;
}
.bg-modal-confirm {
background-color: #ea564e;
color: #fff;
}
.bg-modal-confirm:hover {
background-color: #c8443d;
}
body.bg-modal-open {
overflow: hidden;
}
.bg-voting-preview-banner {
background-color: #fff3cd;
border: 1px solid #ffe39a;
color: #5b4500;
padding: 12px 16px;
border-radius: 6px;
margin-bottom: 18px;
font-size: 0.95em;
line-height: 1.4;
}
.bg-voting-window {
margin: 4px 0 0;
color: #555;
font-size: 0.95em;
}
.bg-voting-intro {
background-color: #fff7f5;
border-left: 4px solid #ea564e;
padding: 14px 18px;
margin: 0 0 25px;
border-radius: 6px;
color: #333;
line-height: 1.5;
}
.bg-voting-intro p:first-child {
margin-top: 0;
}
.bg-voting-intro p:last-child {
margin-bottom: 0;
}
.bg-butcher-section {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
padding: 25px;
margin-bottom: 25px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.bg-butcher-name {
margin: 0 0 15px;
color: #333;
font-size: 1.4em;
border-bottom: 2px solid #ea564e;
padding-bottom: 8px;
display: flex;
align-items: center;
gap: 12px;
}
.bg-stand-number {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 2.4em;
height: 2.4em;
min-width: 2.4em;
padding: 0 0.3em;
border-radius: 50%;
background-color: #ea564e;
color: #fff;
font-weight: 700;
font-size: 1em;
line-height: 1;
box-shadow: 0 2px 6px rgba(234, 86, 78, 0.35);
border: 2px solid #fff;
outline: 1px solid rgba(234, 86, 78, 0.5);
text-align: center;
font-variant-numeric: tabular-nums;
}
.bg-butcher-description {
margin-bottom: 15px;
color: #666;
line-height: 1.5;
}
.bg-butcher-website {
margin-bottom: 20px;
}
.bg-butcher-website a {
color: #2196f3;
text-decoration: none;
font-weight: 500;
}
.bg-butcher-website a:hover {
text-decoration: underline;
}
.bg-sausages-list {
display: grid;
gap: 20px;
}
.bg-sausage-item {
background-color: #fafafa;
border: 1px solid #e0e0e0;
border-radius: 6px;
padding: 20px;
transition: box-shadow 0.2s ease;
}
.bg-sausage-item:hover {
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.bg-sausage-info {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
flex-wrap: wrap;
gap: 10px;
}
.bg-sausage-name {
margin: 0;
color: #333;
font-size: 1.1em;
}
.bg-sausage-type {
padding: 4px 12px;
border-radius: 20px;
font-size: 0.85em;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.bg-sausage-type-classic {
background-color: #e3f2fd;
color: #1976d2;
}
.bg-sausage-type-creative {
background-color: #fce4ec;
color: #c2185b;
}
.bg-rating-controls {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
}
.bg-rating-stars {
display: flex;
gap: 5px;
}
.bg-rating-star {
background: none;
border: none;
font-size: 1.5em;
cursor: pointer;
padding: 5px;
border-radius: 4px;
transition: all 0.2s ease;
opacity: 0.3;
transform: scale(1);
}
.bg-rating-star:hover,
.bg-rating-star.hover {
opacity: 0.7;
transform: scale(1.1);
background-color: rgba(255, 107, 53, 0.1);
}
.bg-rating-star.active {
opacity: 1;
transform: scale(1.1);
background-color: rgba(255, 107, 53, 0.2);
}
.bg-rating-star:focus {
outline: 2px solid #2196f3;
outline-offset: 2px;
}
.bg-rating-clear {
background-color: transparent;
border: 1px solid #ddd;
color: #888;
width: 32px;
height: 32px;
padding: 0;
border-radius: 50%;
font-size: 1.2em;
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
flex: 0 0 auto;
}
.bg-rating-clear-icon {
display: block;
line-height: 1;
transform: translateY(-1px);
}
.bg-rating-clear:hover {
background-color: #f3f3f3;
color: #ea564e;
border-color: #ea564e;
}
.bg-voting-submit {
text-align: center;
margin-top: 30px;
padding-top: 30px;
border-top: 2px solid #e1e1e1;
}
.bg-submit-button {
background-color: #ea564e;
color: white;
border: none;
padding: 15px 40px;
font-size: 1.1em;
font-weight: 600;
border-radius: 6px;
cursor: pointer;
transition: all 0.3s ease;
min-width: 180px;
}
.bg-submit-button:hover:not(:disabled) {
background-color: #e55722;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}
.bg-submit-button:disabled {
background-color: #ccc;
color: #999;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.bg-voting-messages {
margin-top: 20px;
}
.bg-message {
padding: 15px 20px;
border-radius: 6px;
margin-bottom: 10px;
font-weight: 500;
}
.bg-message-success {
background-color: #e8f5e8;
color: #2e7d32;
border: 1px solid #c8e6c9;
}
.bg-message-error {
background-color: #ffebee;
color: #c62828;
border: 1px solid #ffcdd2;
}
.bg-no-voting,
.bg-voting-error {
text-align: center;
padding: 40px 20px;
}
.bg-no-voting .bg-voting-notice,
.bg-voting-error .bg-voting-notice {
border-left-color: #ff9800;
} @media (max-width: 768px) {
.bg-voting-container {
padding: 15px;
}
.bg-voting-header h2 {
font-size: 1.8em;
}
.bg-butcher-section {
padding: 18px;
}
.bg-sausage-info {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
.bg-rating-controls {
justify-content: space-between;
width: 100%;
gap: 8px;
}
.bg-rating-star {
font-size: 1.5em;
padding: 6px;
}
.bg-submit-button {
padding: 12px 30px;
font-size: 1em;
min-width: 150px;
}
}
@media (max-width: 480px) {
.bg-voting-container {
padding: 10px;
}
.bg-voting-header h2 {
font-size: 1.5em;
} .bg-butcher-section {
background-color: transparent;
border: none;
box-shadow: none;
padding: 0;
margin-bottom: 28px;
position: relative;
}
.bg-butcher-section::before {
content: '';
display: block;
height: 3px;
width: 48px;
background-color: #ea564e;
border-radius: 2px;
margin-bottom: 10px;
}
.bg-butcher-name {
font-size: 1.2em;
margin: 0 0 14px;
padding-bottom: 6px;
border-bottom: 1px solid #eee;
gap: 8px;
}
.bg-stand-number {
width: 2em;
height: 2em;
min-width: 2em;
font-size: 0.9em;
border-width: 2px;
}
.bg-butcher-description {
font-size: 0.95em;
margin-bottom: 10px;
}
.bg-butcher-website {
margin-bottom: 12px;
}
.bg-sausages-list {
gap: 12px;
} .bg-sausage-item {
background-color: #fafafa;
border: none;
border-radius: 8px;
padding: 12px 12px 14px;
}
.bg-sausage-item:hover {
box-shadow: none;
}
.bg-sausage-name {
font-size: 1em;
}
.bg-sausage-type {
padding: 2px 9px;
font-size: 0.75em;
letter-spacing: 0.3px;
}
.bg-rating-controls {
gap: 4px;
}
.bg-rating-stars {
gap: 2px;
flex: 1 1 auto;
justify-content: space-between;
} .bg-rating-star {
font-size: 1.9em;
padding: 6px 4px;
min-width: 44px;
min-height: 44px;
opacity: 0.35;
}
.bg-rating-star.active {
transform: scale(1.05);
}
.bg-rating-clear {
width: 36px;
height: 36px;
font-size: 1.3em;
}
} @media (prefers-contrast: high) {
.bg-voting-container {
border: 2px solid #000;
}
.bg-butcher-section {
border: 2px solid #000;
}
.bg-sausage-item {
border: 1px solid #000;
}
.bg-rating-star.active {
background-color: #000;
color: #fff;
}
} @media (prefers-reduced-motion: reduce) {
.bg-rating-star,
.bg-submit-button,
.bg-sausage-item {
transition: none;
}
.bg-submit-button:hover:not(:disabled) {
transform: none;
}
}