.tyffyn-gifting {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 420/500;
  margin: 0 auto;
}
.tyffyn-gifting img {
  display: block;
  max-width: 100%;
}
.tyffyn-gifting .handle,
.tyffyn-gifting .base {
  position: absolute;
  left: 9.5%;
  width: 78.6%;
  pointer-events: none;
  z-index: 10;
}
.tyffyn-gifting .handle {
  top: 4.6%;
}
.tyffyn-gifting .base {
  bottom: 5%;
}
.tyffyn-gifting .shell-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 5;
}
.tyffyn-gifting .shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  will-change: opacity;
}
.tyffyn-gifting .shell.shell-current {
  opacity: 1;
  z-index: 2;
}
.tyffyn-gifting .shell.shell-next {
  opacity: 0;
  z-index: 1;
}
@media (max-width: 991px) {
  .tyffyn-gifting {
    width: min(360px, 90vw);
  }
}
@media (max-width: 767px) {
  .tyffyn-gifting {
    width: min(300px, 85vw);
  }
}
@media (max-width: 480px) {
  .tyffyn-gifting {
    width: min(250px, 90vw);
  }
}

:root {
  --bg: #e6f4f1;
  --surf: #f5f5f7;
  --s2: #edf2f0;
  --s3: #e0eae7;
  --bor: #d0ddd9;
  --bor2: #b8c9c4;
  --acc: #007680;
  --acc2: #0095a3;
  --acc3: #33b3bf;
  --tx: #007680;
  --tx2: #4d7a80;
  --tx3: #8aa8ac;
  --r: 8px;
  --r2: 12px;
}

header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--bor);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
header h1 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--tx);
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.side {
  width: 252px;
  min-width: 252px;
  background: var(--surf);
  border-right: 1px solid var(--bor);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--bor);
  flex-shrink: 0;
  background: var(--bg);
}

.tab {
  flex: 1;
  padding: 9px 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--tx2);
  cursor: pointer;
  border-right: 1px solid var(--bor);
  transition: 0.15s;
  letter-spacing: 0.2px;
}
.tab:last-child {
  border-right: none;
}
.tab.active {
  color: var(--acc);
  border-bottom: 2px solid var(--acc);
  margin-bottom: -1px;
  background: var(--surf);
}
.tab:hover:not(.active) {
  color: var(--tx2);
  background: var(--s2);
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.tab-panel.active {
  display: flex;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem;
  overflow: auto;
  gap: 10px;
}

.sl {
  font-size: 16px;
  font-weight: 600;
  color: var(--tx3);
}

.gl {
  font-size: 16px;
  font-weight: 600;
  color: var(--acc);
}

.hr {
  height: 1px;
  background: var(--bor);
  flex-shrink: 0;
}

.ctrl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cr {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cr label {
  font-size: 12px;
  color: var(--tx3);
}
.cr span {
  font-size: 12px;
  color: var(--acc);
  font-weight: 500;
  min-width: 40px;
  text-align: right;
}

input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  background: var(--bor2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--acc2);
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px rgba(0, 118, 128, 0.4);
  transform: translateY(-1px);
  margin-top: -3.5px;
}
input[type=range]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--acc) var(--pct, 50%), var(--bor2) var(--pct, 50%));
  height: 3px;
  border-radius: 2px;
}

select {
  width: 100%;
  background: var(--s2);
  color: var(--tx);
  border: 1px solid var(--bor2);
  border-radius: var(--r);
  padding: 6px 8px;
  font-size: 12px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238aa8ac'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
select:focus {
  border-color: var(--acc);
}

input[type=color] {
  width: 32px;
  height: 26px;
  border: 1px solid var(--bor2);
  border-radius: 6px;
  padding: 2px;
  background: none;
  cursor: pointer;
}

.uzone {
  border: 1.5px dashed var(--bor2);
  border-radius: var(--r2);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  background: var(--s2);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.uzone:hover, .uzone.on {
  border-color: var(--acc);
  background: rgba(0, 118, 128, 0.06);
}
.uzone p {
  font-size: 14px;
  color: var(--tx3);
}
.uzone .fn {
  font-size: 11px;
  color: var(--acc);
  word-break: break-all;
  max-width: 200px;
}

.img-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: var(--s3);
  border-radius: var(--r);
  border: 1px solid var(--bor2);
}
.img-pill img {
  width: 36px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
}
.img-pill span {
  font-size: 11px;
  color: var(--tx2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.img-pill button {
  background: none;
  border: none;
  color: var(--tx3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.img-pill button:hover {
  color: var(--acc);
}

.bp {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0, 118, 128, 0.3);
  margin-top: 10px;
}
.bp:hover {
  background: linear-gradient(135deg, var(--acc2) 0%, var(--acc3) 100%);
  box-shadow: 0 4px 18px rgba(0, 118, 128, 0.45);
}

.bg2 {
  background: var(--s2);
  color: var(--tx2);
  border: 1px solid var(--bor2);
}
.bg2:hover {
  color: var(--tx);
  border-color: var(--tx2);
  background: var(--s3);
}

canvas {
  display: block;
  border-radius: 6px;
}

.cinfo {
  font-size: 11px;
  color: var(--tx3);
  text-align: center;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tog-row label {
  font-size: 12px;
  color: var(--tx3);
}

.toggle {
  width: 34px;
  height: 19px;
  background: var(--bor2);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}
.toggle.on {
  background: var(--acc);
}
.toggle::after {
  content: "";
  width: 15px;
  height: 15px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.toggle.on::after {
  left: 17px;
}

#colorPicker {
  position: fixed;
  top: 50px;
  right: 14px;
  z-index: 9999;
  background: var(--surf);
  border: 1px solid var(--bor);
  border-radius: var(--r2);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4);
  min-width: 170px;
  text-align: center;
}
#colorPicker .cp-title {
  font-size: 16px;
  font-weight: 700;
  padding: 5px 10px;
}

#colorSwatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 20px 10px;
  border-top: 1px solid var(--bor);
  border-bottom: 1px solid var(--bor);
}

.cswatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.cswatch:hover {
  transform: scale(1.12);
}

#colorLabel {
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  min-height: 16px;
  letter-spacing: 0.2px;
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.theme-dot:hover {
  transform: scale(1.25);
}
.theme-dot.active {
  border-color: var(--tx);
  transform: scale(1.15);
}

.theme-label {
  font-size: 10px;
  color: var(--tx3);
  letter-spacing: 0.6px;
  font-weight: 500;
  text-transform: uppercase;
}

.url-fetch-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.url-fetch-row input[type=text] {
  flex: 1;
  background: var(--s2);
  color: var(--tx);
  border: 1px solid var(--bor2);
  border-radius: var(--r);
  padding: 6px 8px;
  font-size: 11px;
  outline: none;
}
.url-fetch-row input[type=text]:focus {
  border-color: var(--acc);
}
.url-fetch-row input[type=text]::placeholder {
  color: var(--tx3);
}

.fetch-btn {
  background: var(--acc);
  color: #ffffff;
  border: none;
  border-radius: var(--r);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.15s;
  flex-shrink: 0;
}
.fetch-btn:hover {
  background: var(--acc2);
}

.fetch-status {
  font-size: 10px;
  color: var(--tx3);
  min-height: 14px;
  text-align: center;
}
.fetch-status.ok {
  color: #2d8f5c;
}
.fetch-status.err {
  color: #d95555;
}

.logo-preview-wrap {
  display: none;
  background: var(--s3);
  border-radius: var(--r);
  border: 1px solid var(--bor2);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-preview-row img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  padding: 2px;
}
.logo-preview-row span {
  font-size: 11px;
  color: var(--tx2);
  flex: 1;
}
.logo-preview-row button {
  background: none;
  border: none;
  color: var(--tx3);
  cursor: pointer;
  font-size: 14px;
}
.logo-preview-row button:hover {
  color: var(--acc);
}

/*# sourceMappingURL=corporate-gifting.css.map */
