:root {
--ehcc-bg: #e8e8e8;
--ehcc-card-bg: #ffffff;
--ehcc-text-primary: #1a1a1a;
--ehcc-text-secondary: #333333;
--ehcc-text-muted: #666666;
--ehcc-border: #dddddd;
--ehcc-border-light: #eeeeee;
--ehcc-border-lighter: #f0f0f0;
--ehcc-accent: #4CAA8D;
--ehcc-accent-hover: #3d9478;
--ehcc-input-bg: #ffffff;
--ehcc-shadow: rgba(0, 0, 0, 0.08);
--ehcc-logo-text: #1a1a1a;
} @media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]):not(.light-mode) {
--ehcc-bg: #1a1a1a;
--ehcc-card-bg: #2d2d2d;
--ehcc-text-primary: #f0f0f0;
--ehcc-text-secondary: #e0e0e0;
--ehcc-text-muted: #a0a0a0;
--ehcc-border: #404040;
--ehcc-border-light: #383838;
--ehcc-border-lighter: #333333;
--ehcc-input-bg: #363636;
--ehcc-shadow: rgba(0, 0, 0, 0.3);
--ehcc-logo-text: #f0f0f0;
}
} [data-theme="dark"],
.dark-mode,
.dark,
body.flavor-dark,
body.flavor-flavor-dark,
html.dark,
html.dark-mode {
--ehcc-bg: #1a1a1a;
--ehcc-card-bg: #2d2d2d;
--ehcc-text-primary: #f0f0f0;
--ehcc-text-secondary: #e0e0e0;
--ehcc-text-muted: #a0a0a0;
--ehcc-border: #404040;
--ehcc-border-light: #383838;
--ehcc-border-lighter: #333333;
--ehcc-input-bg: #363636;
--ehcc-shadow: rgba(0, 0, 0, 0.3);
--ehcc-logo-text: #f0f0f0;
} [data-color-scheme="dark"],
[data-wp-dark-mode="dark"],
[data-flavor="dark"] {
--ehcc-bg: #1a1a1a;
--ehcc-card-bg: #2d2d2d;
--ehcc-text-primary: #f0f0f0;
--ehcc-text-secondary: #e0e0e0;
--ehcc-text-muted: #a0a0a0;
--ehcc-border: #404040;
--ehcc-border-light: #383838;
--ehcc-border-lighter: #333333;
--ehcc-input-bg: #363636;
--ehcc-shadow: rgba(0, 0, 0, 0.3);
--ehcc-logo-text: #f0f0f0;
} .ehcc-calculator {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
}
.ehcc-calculator *,
.ehcc-calculator *::before,
.ehcc-calculator *::after {
box-sizing: border-box;
} .ehcc-calculator-card {
background: var(--ehcc-card-bg);
border-radius: 16px;
padding: 40px;
box-shadow: 0 2px 8px var(--ehcc-shadow);
margin-bottom: 30px;
}
@media (max-width: 600px) {
.ehcc-calculator-card {
padding: 24px 20px;
}
} .ehcc-logo {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.ehcc-logo svg {
height: 50px;
width: auto;
}
.ehcc-logo-text {
fill: var(--ehcc-logo-text);
}
.ehcc-logo-accent {
fill: var(--ehcc-accent);
} .ehcc-title {
text-align: center;
font-size: 28px;
font-weight: 700;
color: var(--ehcc-text-primary);
margin: 0 0 30px 0;
padding: 0;
} .ehcc-parent-section {
margin-bottom: 30px;
}
.ehcc-parent-title {
font-size: 18px;
font-weight: 600;
color: var(--ehcc-text-primary);
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 2px solid var(--ehcc-accent);
} .ehcc-form-group {
margin-bottom: 20px;
}
.ehcc-form-group label {
display: block;
font-size: 15px;
color: var(--ehcc-text-secondary);
margin-bottom: 8px;
font-weight: 400;
} .ehcc-select {
width: 100%;
padding: 14px 40px 14px 16px;
font-size: 16px;
border: 1px solid var(--ehcc-border);
border-radius: 8px;
background-color: var(--ehcc-input-bg);
color: var(--ehcc-text-secondary);
appearance: none;
cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
transition: border-color 0.2s ease;
}
.ehcc-select:focus {
outline: none;
border-color: var(--ehcc-accent);
}
.ehcc-select:hover {
border-color: var(--ehcc-accent);
} .ehcc-modifiers-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
@media (max-width: 600px) {
.ehcc-modifiers-grid {
grid-template-columns: 1fr;
}
} .ehcc-calculate-btn {
width: 100%;
padding: 16px;
font-size: 18px;
font-weight: 600;
color: #ffffff;
background-color: var(--ehcc-accent);
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s ease;
margin-top: 10px;
}
.ehcc-calculate-btn:hover {
background-color: var(--ehcc-accent-hover);
}
.ehcc-calculate-btn:focus {
outline: 2px solid var(--ehcc-accent);
outline-offset: 2px;
} .ehcc-results-section {
display: none;
margin-top: 30px;
padding-top: 30px;
border-top: 1px solid var(--ehcc-border-light);
}
.ehcc-results-section.ehcc-visible {
display: block;
}
.ehcc-results-title {
font-size: 20px;
font-weight: 600;
color: var(--ehcc-text-primary);
margin-bottom: 20px;
}
.ehcc-result-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid var(--ehcc-border-lighter);
}
.ehcc-result-item:last-child {
border-bottom: none;
}
.ehcc-color-info {
display: flex;
align-items: center;
}
.ehcc-color-preview {
width: 24px;
height: 24px;
border-radius: 50%;
margin-right: 12px;
border: 1px solid var(--ehcc-border);
flex-shrink: 0;
}
.ehcc-color-name {
font-size: 16px;
color: var(--ehcc-text-secondary);
}
.ehcc-probability {
font-size: 16px;
font-weight: 600;
color: var(--ehcc-accent);
flex-shrink: 0;
margin-left: 12px;
} .ehcc-faq-card {
background: var(--ehcc-card-bg);
border-radius: 16px;
padding: 40px;
box-shadow: 0 2px 8px var(--ehcc-shadow);
}
@media (max-width: 600px) {
.ehcc-faq-card {
padding: 24px 20px;
}
}
.ehcc-faq-title {
font-size: 24px;
font-weight: 700;
color: var(--ehcc-text-primary);
margin: 0 0 25px 0;
text-align: center;
}
.ehcc-faq-item {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid var(--ehcc-border-light);
}
.ehcc-faq-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.ehcc-faq-question {
font-size: 16px;
font-weight: 600;
color: var(--ehcc-text-primary);
margin-bottom: 10px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
}
.ehcc-faq-question::after {
content: '+';
font-size: 20px;
color: var(--ehcc-accent);
transition: transform 0.2s ease;
flex-shrink: 0;
margin-left: 10px;
}
.ehcc-faq-item.ehcc-active .ehcc-faq-question::after {
content: '-';
}
.ehcc-faq-answer {
font-size: 15px;
color: var(--ehcc-text-muted);
line-height: 1.6;
display: none;
padding-right: 30px;
}
.ehcc-faq-item.ehcc-active .ehcc-faq-answer {
display: block;
} .ehcc-faq-question:focus {
outline: 2px solid var(--ehcc-accent);
outline-offset: 2px;
} @media print {
.ehcc-calculator {
padding: 0;
}
.ehcc-calculator-card,
.ehcc-faq-card {
box-shadow: none;
border: 1px solid #ddd;
}
.ehcc-calculate-btn {
display: none;
}
.ehcc-results-section {
display: block !important;
}
}