/* time-to-minutes-seconds-converter: EN/JA/ES/ID markup (.time-to-minutes-container) in the KO design system. Pairs with the KO split JS. */
.time-to-minutes-wrapper,
.time-to-minutes-wrapper *,
.time-to-minutes-wrapper *::before,
.time-to-minutes-wrapper *::after { box-sizing: border-box; }

.time-to-minutes-wrapper {
  --ttm-paper: #fffaf0;
  --ttm-paper-soft: #fffdf7;
  --ttm-paper-muted: #fff7e8;
  --ttm-line: #6b5745;
  --ttm-text: #2b2119;
  --ttm-muted: #655344;
  --ttm-emphasis: #5f4332;
  --ttm-grid-line: rgba(107, 87, 69, .055);
  --ttm-paper-end: #faf2e8;
  --ttm-panel-bg: rgba(255, 253, 247, .90);
  --ttm-button-bg: #fffdf7;
  --ttm-cta: #f2e3d3;
  --ttm-cta-hover: #e7d1ba;
  --ttm-green: #e3efd2;
  --ttm-total-row: rgba(227, 239, 210, .78);
  --ttm-focus: #4f7d94;
  --ttm-shadow: rgba(107, 87, 69, .16);
  --ttm-soft-line: rgba(107, 87, 69, .28);
  width: min(740px, calc(100vw - 32px));
  margin: 12px auto 0;
  color: var(--ttm-text);
  line-height: 1.42;
}
body[data-scheme="dark"] .time-to-minutes-wrapper,
body[data-scheme="inverse"] .time-to-minutes-wrapper {
  --ttm-paper: #2b2119;
  --ttm-paper-soft: #241c15;
  --ttm-paper-muted: #33271d;
  --ttm-line: #a98b6b;
  --ttm-text: #f2e4cf;
  --ttm-muted: #e7d2b8;
  --ttm-emphasis: #f2d39b;
  --ttm-grid-line: rgba(169, 139, 107, .075);
  --ttm-paper-end: #33271d;
  --ttm-panel-bg: rgba(36, 28, 21, .92);
  --ttm-button-bg: #241c15;
  --ttm-cta: #4a3828;
  --ttm-cta-hover: #584332;
  --ttm-green: #344a32;
  --ttm-total-row: rgba(52, 74, 50, .72);
  --ttm-focus: #d2aa55;
  --ttm-shadow: rgba(0, 0, 0, .34);
  --ttm-soft-line: rgba(169, 139, 107, .42);
}
.time-to-minutes-wrapper br { display: none !important; }
.time-to-minutes-wrapper :is(h2, h3, h4, p) { margin-top: 0; }

.time-to-minutes-wrapper .time-to-minutes-container {
  display: block;
  min-width: 0;
  padding: 0;
  color: var(--ttm-text);
  background:
    linear-gradient(90deg, var(--ttm-grid-line) 1px, transparent 1px),
    linear-gradient(var(--ttm-grid-line) 1px, transparent 1px),
    linear-gradient(135deg, var(--ttm-paper) 0%, var(--ttm-paper-end) 100%);
  background-size: 16px 16px, 16px 16px, auto;
  border: 2px solid var(--ttm-line);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--ttm-shadow);
}
.time-to-minutes-wrapper .calculator-header {
  padding: 13px 15px;
  background: linear-gradient(90deg, rgba(255, 253, 247, .99), rgba(255, 249, 238, .98) 64%, rgba(247, 223, 157, .30));
}
body[data-scheme="dark"] .time-to-minutes-wrapper .calculator-header,
body[data-scheme="inverse"] .time-to-minutes-wrapper .calculator-header {
  background: linear-gradient(90deg, rgba(36, 28, 21, .98), rgba(51, 39, 29, .98) 64%, rgba(74, 56, 40, .54));
}
.time-to-minutes-wrapper .tool-kicker {
  display: block;
  color: var(--ttm-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.time-to-minutes-wrapper .calculator-header h2 {
  margin: 2px 0 0;
  color: var(--ttm-text);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}
.time-to-minutes-wrapper .calculator-header .subtitle {
  margin: 5px 0 0;
  color: var(--ttm-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.time-to-minutes-wrapper .quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px 0;
  border-top: 2px solid var(--ttm-line);
}
.time-to-minutes-wrapper .calculator-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 12px;
  padding: 10px 12px 12px;
}
.time-to-minutes-wrapper :is(.input-section, .result-section, .special-section, .info-section) {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  background: var(--ttm-panel-bg);
  border: 2px solid var(--ttm-line);
  box-shadow: 3px 3px 0 var(--ttm-shadow);
}
.time-to-minutes-wrapper .special-section { grid-column: 1 / -1; }
.time-to-minutes-wrapper .info-section { margin: 0 12px 12px; }
.time-to-minutes-wrapper .section-title {
  margin: 0;
  padding-bottom: 7px;
  color: var(--ttm-emphasis);
  border-bottom: 1px dashed var(--ttm-soft-line);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.24;
}
.time-to-minutes-wrapper .section-help {
  margin: 0;
  color: var(--ttm-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.time-to-minutes-wrapper .time-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  background: var(--ttm-button-bg);
  border: 1px solid var(--ttm-line);
}
.time-to-minutes-wrapper .input-group {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
}
.time-to-minutes-wrapper .input-group span,
.time-to-minutes-wrapper .result-label {
  color: var(--ttm-muted);
  font-size: 11.8px;
  font-weight: 900;
  line-height: 1.25;
}
.time-to-minutes-wrapper .input-group input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 6px 4px;
  color: var(--ttm-text);
  background: var(--ttm-button-bg);
  border: 1px solid var(--ttm-line);
  border-radius: 0;
  box-shadow: none;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  -webkit-text-fill-color: currentColor;
}
.time-to-minutes-wrapper .button-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.time-to-minutes-wrapper :is(.btn, .btn-quick, .copy-btn) {
  appearance: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0;
  min-height: 34px !important;
  margin: 0;
  padding: 6px 8px !important;
  color: var(--ttm-text) !important;
  background: var(--ttm-button-bg) !important;
  border: 1px solid var(--ttm-line) !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 var(--ttm-shadow) !important;
  cursor: pointer;
  font: inherit;
  font-size: 12.4px !important;
  font-weight: 900;
  line-height: 1.12 !important;
  text-align: center;
  text-transform: none;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: var(--ttm-text) !important;
}
.time-to-minutes-wrapper .btn-primary { background: var(--ttm-cta) !important; }
.time-to-minutes-wrapper :is(.btn, .btn-quick, .copy-btn):hover {
  background: var(--ttm-cta-hover) !important;
  box-shadow: 2px 2px 0 var(--ttm-shadow) !important;
  transform: translate(1px, 1px);
}
.time-to-minutes-wrapper :is(.btn, .btn-quick, .copy-btn):focus-visible,
.time-to-minutes-wrapper .input-group input:focus-visible {
  outline: 3px solid var(--ttm-focus);
  outline-offset: 2px;
}
.time-to-minutes-wrapper .original-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
}
.time-to-minutes-wrapper .original-time .result-value {
  color: var(--ttm-muted);
  font-size: 12.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.time-to-minutes-wrapper .result-summary-grid {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.time-to-minutes-wrapper .result-summary-grid .result-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  background: var(--ttm-button-bg);
  border: 1px solid var(--ttm-line);
}
.time-to-minutes-wrapper .result-summary-grid .total-minutes {
  text-align: center;
  background: var(--ttm-green);
  border-width: 2px;
}
.time-to-minutes-wrapper .result-summary-grid .result-value {
  min-width: 0;
  color: var(--ttm-text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.time-to-minutes-wrapper .result-summary-grid .total-minutes .result-value { font-size: 30px; }
.time-to-minutes-wrapper .result-detail {
  min-height: 16px;
  color: var(--ttm-muted);
  font-size: 12.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.time-to-minutes-wrapper .formula-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.time-to-minutes-wrapper .formula-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 6px;
  background: var(--ttm-button-bg);
  border: 1px solid var(--ttm-line);
  font-size: 11.8px;
  font-weight: 900;
  line-height: 1.24;
  text-align: center;
  overflow-wrap: anywhere;
}
.time-to-minutes-wrapper .breakdown-card {
  padding: 6px 9px;
  background: var(--ttm-button-bg);
  border: 1px solid var(--ttm-line);
}
.time-to-minutes-wrapper .breakdown-card h4 {
  margin: 0 0 4px;
  color: var(--ttm-emphasis);
  font-size: 12.5px;
  font-weight: 900;
}
.time-to-minutes-wrapper .ttm-tool__breakdown-row {
  display: grid;
  grid-template-columns: minmax(88px, .24fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px dashed var(--ttm-soft-line);
}
.time-to-minutes-wrapper .ttm-tool__breakdown-row:first-child { border-top: 0; }
.time-to-minutes-wrapper .ttm-tool__breakdown-row.is-total {
  margin: 3px -4px -2px;
  padding: 7px 4px 4px;
  background: var(--ttm-total-row);
  font-weight: 900;
}
.time-to-minutes-wrapper .ttm-tool__breakdown-label {
  color: var(--ttm-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.32;
}
.time-to-minutes-wrapper .ttm-tool__breakdown-value {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.time-to-minutes-wrapper .info-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.time-to-minutes-wrapper .info-card {
  min-width: 0;
  padding: 8px 9px;
  background: var(--ttm-button-bg);
  border: 1px solid var(--ttm-line);
}
.time-to-minutes-wrapper .info-card h4 {
  margin: 0 0 3px;
  color: var(--ttm-emphasis);
  font-size: 12.5px;
  font-weight: 900;
}
.time-to-minutes-wrapper .info-card p {
  margin: 0;
  color: var(--ttm-muted);
  font-size: 12px;
  font-weight: 700;
}
.time-to-minutes-wrapper .time-to-minutes-toast {
  margin: 0 12px 12px;
  padding: 8px 10px;
  color: var(--ttm-text);
  background: var(--ttm-green);
  border: 1px solid var(--ttm-line);
  box-shadow: 3px 3px 0 var(--ttm-shadow);
  font-size: 13px;
  font-weight: 800;
}
.time-to-minutes-wrapper .time-to-minutes-toast[hidden] { display: none !important; }

@media (max-width: 560px) {
  .time-to-minutes-wrapper .calculator-main,
  .time-to-minutes-wrapper .info-content { grid-template-columns: minmax(0, 1fr); }
  .time-to-minutes-wrapper .calculator-header h2 { font-size: 20px; }
  .time-to-minutes-wrapper .quick-actions,
  .time-to-minutes-wrapper .formula-strip { grid-template-columns: minmax(0, 1fr); }
  .time-to-minutes-wrapper .ttm-tool__breakdown-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
