.enc-wrapper {
--enc-primary: #27AE7E;
--enc-primary-hover: #229e71;
--enc-bg: #ffffff;
--enc-bg-secondary: #fafafa;
--enc-bg-accent: #f0faf5;
--enc-text: #1a1a1a;
--enc-text-secondary: #666666;
--enc-text-muted: #888888;
--enc-border: #dddddd;
--enc-border-light: #eeeeee;
--enc-shadow: rgba(0, 0, 0, 0.08);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
line-height: 1.6;
color: var(--enc-text);
max-width: 600px;
margin: 0 auto;
padding: 20px 0;
}
.enc-wrapper *,
.enc-wrapper *::before,
.enc-wrapper *::after {
box-sizing: border-box;
} .enc-card {
background: var(--enc-bg);
padding: 40px;
border-radius: 16px;
box-shadow: 0 4px 20px var(--enc-shadow);
} .enc-title {
font-size: 24px;
font-weight: 700;
color: var(--enc-text);
margin: 0 0 8px 0;
text-align: center;
}
.enc-subtitle {
font-size: 14px;
color: var(--enc-text-secondary);
text-align: center;
margin: 0 0 32px 0;
} .enc-form {
margin: 0;
padding: 0;
}
.enc-form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 24px;
}
.enc-form-group {
margin: 0;
}
.enc-label {
display: block;
font-size: 16px;
font-weight: 600;
color: var(--enc-text);
margin-bottom: 8px;
}
.enc-input,
.enc-select {
width: 100%;
padding: 14px 18px;
font-size: 16px;
border: 1px solid var(--enc-border);
border-radius: 12px;
background-color: var(--enc-bg);
color: var(--enc-text);
transition: border-color 0.2s ease;
}
.enc-input:focus,
.enc-select:focus {
outline: none;
border-color: var(--enc-primary);
}
.enc-select {
appearance: none;
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='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
cursor: pointer;
padding-right: 40px;
} .enc-button {
width: 100%;
padding: 18px;
font-size: 18px;
font-weight: 600;
color: #ffffff;
background-color: var(--enc-primary);
border: none;
border-radius: 12px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.enc-button:hover,
.enc-button:focus {
background-color: var(--enc-primary-hover);
}
.enc-button:focus {
outline: 2px solid var(--enc-primary);
outline-offset: 2px;
} .enc-result {
display: none;
margin-top: 32px;
}
.enc-result.enc-show {
display: block;
}
.enc-result-header {
background-color: var(--enc-bg-accent);
padding: 20px 24px;
border-radius: 12px;
text-align: center;
margin-bottom: 24px;
}
.enc-result-title {
font-size: 14px;
color: var(--enc-text);
margin: 0 0 4px 0;
}
.enc-result-value {
font-size: 42px;
font-weight: 700;
color: var(--enc-primary);
}
.enc-result-unit {
font-size: 18px;
color: var(--enc-primary);
} .enc-section {
margin-bottom: 24px;
}
.enc-section-title {
font-size: 16px;
font-weight: 700;
color: var(--enc-text);
margin: 0 0 12px 0;
padding-bottom: 8px;
border-bottom: 2px solid var(--enc-primary);
} .enc-nutrient-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.enc-nutrient-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background-color: var(--enc-bg-secondary);
border-radius: 8px;
}
.enc-nutrient-label {
font-size: 14px;
color: var(--enc-text-secondary);
}
.enc-nutrient-value {
font-size: 14px;
font-weight: 600;
color: var(--enc-text);
} .enc-note {
font-size: 12px;
color: var(--enc-text-muted);
margin-top: 16px;
padding: 12px;
background-color: var(--enc-bg-secondary);
border-radius: 8px;
border-left: 3px solid var(--enc-primary);
} .enc-faq {
margin-top: 32px;
}
.enc-faq-title {
font-size: 20px;
font-weight: 700;
color: var(--enc-text);
margin: 0 0 16px 0;
}
.enc-faq-item {
border: 1px solid var(--enc-border-light);
border-radius: 8px;
margin-bottom: 8px;
overflow: hidden;
}
.enc-faq-question {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 16px;
background-color: var(--enc-bg-secondary);
border: none;
cursor: pointer;
font-size: 15px;
font-weight: 600;
color: var(--enc-text);
text-align: left;
transition: background-color 0.2s ease;
}
.enc-faq-question:hover,
.enc-faq-question:focus {
background-color: #f5f5f5;
}
.enc-faq-question:focus {
outline: 2px solid var(--enc-primary);
outline-offset: -2px;
}
.enc-faq-icon {
font-size: 20px;
color: var(--enc-primary);
transition: transform 0.2s ease;
flex-shrink: 0;
margin-left: 16px;
}
.enc-faq-item.enc-active .enc-faq-icon {
transform: rotate(45deg);
}
.enc-faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
background-color: var(--enc-bg);
}
.enc-faq-item.enc-active .enc-faq-answer {
max-height: 300px;
}
.enc-faq-answer-content {
padding: 16px;
font-size: 14px;
color: var(--enc-text-secondary);
line-height: 1.7;
} .screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}  @media (prefers-color-scheme: dark) {
.enc-wrapper {
--enc-bg: #1e1e1e;
--enc-bg-secondary: #2d2d2d;
--enc-bg-accent: #1a2e24;
--enc-text: #e0e0e0;
--enc-text-secondary: #aaaaaa;
--enc-text-muted: #888888;
--enc-border: #404040;
--enc-border-light: #404040;
--enc-shadow: rgba(0, 0, 0, 0.3);
}
.enc-select {
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='%23e0e0e0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
.enc-faq-question:hover,
.enc-faq-question:focus {
background-color: #383838;
}
} body.dark-mode .enc-wrapper,
body.darkmode .enc-wrapper,
body.night-mode .enc-wrapper,
body.is-dark .enc-wrapper,
body[data-theme="dark"] .enc-wrapper,
html.dark .enc-wrapper,
html.dark-mode .enc-wrapper,
.wp-dark-mode-active .enc-wrapper {
--enc-bg: #1e1e1e;
--enc-bg-secondary: #2d2d2d;
--enc-bg-accent: #1a2e24;
--enc-text: #e0e0e0;
--enc-text-secondary: #aaaaaa;
--enc-text-muted: #888888;
--enc-border: #404040;
--enc-border-light: #404040;
--enc-shadow: rgba(0, 0, 0, 0.3);
}
body.dark-mode .enc-select,
body.darkmode .enc-select,
body.night-mode .enc-select,
body.is-dark .enc-select,
body[data-theme="dark"] .enc-select,
html.dark .enc-select,
html.dark-mode .enc-select,
.wp-dark-mode-active .enc-select {
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='%23e0e0e0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
body.dark-mode .enc-faq-question:hover,
body.dark-mode .enc-faq-question:focus,
body.darkmode .enc-faq-question:hover,
body.darkmode .enc-faq-question:focus,
body.night-mode .enc-faq-question:hover,
body.night-mode .enc-faq-question:focus,
body.is-dark .enc-faq-question:hover,
body.is-dark .enc-faq-question:focus,
body[data-theme="dark"] .enc-faq-question:hover,
body[data-theme="dark"] .enc-faq-question:focus,
html.dark .enc-faq-question:hover,
html.dark .enc-faq-question:focus,
html.dark-mode .enc-faq-question:hover,
html.dark-mode .enc-faq-question:focus,
.wp-dark-mode-active .enc-faq-question:hover,
.wp-dark-mode-active .enc-faq-question:focus {
background-color: #383838;
} @media (max-width: 600px) {
.enc-card {
padding: 24px 20px;
}
.enc-form-row {
grid-template-columns: 1fr;
}
.enc-nutrient-grid {
grid-template-columns: 1fr;
}
.enc-title {
font-size: 20px;
}
.enc-result-value {
font-size: 32px;
}
}