.tph-db-wrap,
.tph-db-wrap * {
  box-sizing: border-box;
}

.tph-db-wrap {
  width: 100%;
  display: flex;
  padding: 10px 0;
  overflow: hidden;
}

.tph-db-align-left {
  justify-content: flex-start;
}

.tph-db-align-center {
  justify-content: center;
}

.tph-db-align-right {
  justify-content: flex-end;
}

.tph-db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
  text-decoration: none !important;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  position: relative;
  isolation: isolate;
  appearance: none;
  -webkit-appearance: none;
}

.tph-db-btn:hover,
.tph-db-btn:focus,
.tph-db-btn:visited {
  text-decoration: none !important;
}

.tph-db-btn:hover {
  transform: translateY(-2px);
}

.tph-db-btn:focus-visible {
  outline: 3px solid rgba(0, 143, 124, .25);
  outline-offset: 3px;
}

.tph-db-size-small {
  padding: 11px 18px;
  font-size: 14px;
}

.tph-db-size-medium {
  padding: 14px 24px;
  font-size: 16px;
}

.tph-db-size-large {
  padding: 17px 30px;
  font-size: 18px;
}

.tph-db-full {
  width: 100%;
}

.tph-db-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  flex-shrink: 0;
}

.tph-db-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.tph-db-text {
  display: inline-block;
}

.tph-db-style-sunset {
  color: #fff !important;
  background: linear-gradient(135deg, #ff7a00, #ffb000);
  box-shadow: 0 12px 26px rgba(255, 122, 0, .28);
}

.tph-db-style-sunset:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #ff8a00, #ffc400);
  box-shadow: 0 16px 34px rgba(255, 122, 0, .38);
}

.tph-db-style-teal {
  color: #fff !important;
  background: linear-gradient(135deg, #008f7c, #00b894);
  box-shadow: 0 12px 26px rgba(0, 143, 124, .25);
}

.tph-db-style-teal:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #007f70, #00c9a7);
  box-shadow: 0 16px 34px rgba(0, 143, 124, .35);
}

.tph-db-style-sky {
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .25);
}

.tph-db-style-sky:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .34);
}

.tph-db-style-grape {
  color: #fff !important;
  background: linear-gradient(135deg, #8e03e4, #f67f0e);
  box-shadow: 0 12px 26px rgba(142, 3, 228, .22);
}

.tph-db-style-grape:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #7600c2, #ff8a1c);
  box-shadow: 0 16px 34px rgba(142, 3, 228, .32);
}

.tph-db-style-dark {
  color: #fff !important;
  background: #151515;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.tph-db-style-dark:hover {
  color: #fff !important;
  background: #000;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34);
}

.tph-db-style-soft {
  color: #111827 !important;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .12);
}

.tph-db-style-soft .tph-db-icon {
  background: #ffedd5;
  color: #ea580c;
}

.tph-db-style-soft:hover {
  color: #111827 !important;
  background: #ffedd5;
  border-color: #fdba74;
  box-shadow: 0 14px 30px rgba(249, 115, 22, .18);
}

.tph-db-style-outline {
  color: #008f7c !important;
  background: #fff;
  border: 2px solid #008f7c;
  box-shadow: 0 10px 22px rgba(0, 143, 124, .10);
}

.tph-db-style-outline .tph-db-icon {
  background: rgba(0, 143, 124, .10);
}

.tph-db-style-outline:hover {
  color: #fff !important;
  background: #008f7c;
  border-color: #008f7c;
  box-shadow: 0 14px 30px rgba(0, 143, 124, .22);
}

.tph-db-style-kids {
  color: #111827 !important;
  background: linear-gradient(135deg, #ffe66d, #ff9f1c);
  border: 2px solid rgba(17, 24, 39, .08);
  border-radius: 22px;
  box-shadow: 0 12px 0 rgba(17, 24, 39, .12), 0 16px 30px rgba(255, 159, 28, .22);
}

.tph-db-style-kids .tph-db-icon {
  background: rgba(255, 255, 255, .45);
}

.tph-db-style-kids:hover {
  color: #111827 !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 0 rgba(17, 24, 39, .12), 0 20px 36px rgba(255, 159, 28, .30);
}

.tph-db-style-minimal {
  color: #111827 !important;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.tph-db-style-minimal .tph-db-icon {
  background: #ffffff;
}

.tph-db-style-minimal:hover {
  color: #111827 !important;
  background: #e5e7eb;
  border-color: #d1d5db;
  box-shadow: none;
}

@media (max-width: 520px) {
  .tph-db-wrap {
    padding: 8px 0;
  }

  .tph-db-align-left,
  .tph-db-align-center,
  .tph-db-align-right {
    justify-content: center;
  }

  .tph-db-btn {
    width: 100%;
    border-radius: 14px;
  }

  .tph-db-size-small,
  .tph-db-size-medium,
  .tph-db-size-large {
    padding: 14px 16px;
    font-size: 15px;
  }
}


/* Stay-on-page inline timer */
.tph-db-has-timer.is-timer-running {
  display: none;
}

.tph-db-wrap.tph-db-timer-active {
  display: block;
  overflow: visible;
}

.tph-inline-timer,
.tph-inline-timer * {
  box-sizing: border-box;
}

.tph-inline-timer {
  width: min(100%, 520px);
  margin: 8px auto 0;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 14px 36px rgba(249, 115, 22, .14);
  text-align: left;
  animation: tphInlineTimerIn .22s ease both;
}

@keyframes tphInlineTimerIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tph-inline-timer-icon {
  width: 58px;
  min-width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff7a00, #ffb000);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .4px;
  box-shadow: 0 10px 22px rgba(255, 122, 0, .24);
}

.tph-inline-timer-content {
  flex: 1;
  min-width: 0;
}

.tph-inline-timer-title {
  margin: 0 0 5px !important;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.tph-inline-timer-message {
  margin: 0 0 12px !important;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.tph-inline-timer-count {
  width: 76px;
  height: 76px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 7px solid #ffedd5;
  background: #ffffff;
  color: #ff7a00;
  font-weight: 900;
}

.tph-inline-timer-count span {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.tph-inline-timer-count small {
  display: block;
  margin-top: 3px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tph-inline-timer-ready {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #008f7c, #00b894);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 143, 124, .24);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.tph-inline-timer-ready:hover,
.tph-inline-timer-ready:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #007f70, #00c9a7);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 143, 124, .30);
}

.tph-inline-timer.is-ready .tph-inline-timer-count {
  display: none;
}

.tph-inline-timer.is-ready .tph-inline-timer-ready {
  display: inline-flex;
}

.tph-inline-timer.is-ready {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
  box-shadow: 0 14px 36px rgba(0, 143, 124, .12);
}

@media (max-width: 520px) {
  .tph-inline-timer {
    display: block;
    text-align: center;
    padding: 18px 14px;
  }

  .tph-inline-timer-icon {
    margin: 0 auto 12px;
  }

  .tph-inline-timer-count {
    margin: 0 auto;
  }

  .tph-inline-timer-ready {
    max-width: 100%;
  }
}
