/* File: css/tctt-giveaway.css */
.tctt-giveaway-wrapper,
.tctt-giveaway-success {
  /* max-width: 400px; */
  margin: 0 auto;
  text-align: left;
  color: var(--e-global-color-text);
  background: #000;
  border-radius: 10px;
  font-family: var(--e-global-typography-text-font-family);
  font-weight: var(--e-global-typography-text-font-weight);
  position: relative; /* NEW - allows badge to be positioned */
  padding: 20px;
}

.giveaway-heading h2 {
  font-size: 2.7rem;
  font-weight: var(--e-global-typography-primary-font-weight);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--e-global-typography-primary-font-family);
  font-weight: 700;
  color: var(--e-global-color-text)!important;
}

.giveaway-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  max-width: 300px; /* NEW */
  /* margin-left: auto; */ /* NEW */
  margin-right: auto; /* NEW */
}

.giveaway-details li {
  text-align: left;
  font-size: 1rem;
  margin: 0.3rem 0;
  position: relative;
  padding-left: 1.2rem;
  font-family: var(--e-global-typography-secondary-font-family);
  font-weight: 700;
  color: var(--e-global-color-text);
}

.giveaway-details li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--e-global-color-secondary);
  font-size: 1.1rem;
  line-height: 1;
}

.giveaway-badge {
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-text);
  font-weight: var(--e-global-typography-accent-font-weight);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.1;
  font-family: var(--e-global-typography-accent-font-family);
  transform: rotate(6deg);
  text-align: left;
  position: absolute; /* NEW */
  top: 100px;          /* NEW */
  right: 20px;        /* NEW */
  z-index: 10;         /* NEW - keeps it above content */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Optional for pop */
}

.giveaway-badge strong {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  display: block;
  margin-top: 0.2rem;
}

.tctt-giveaway-wrapper label {
  display: block;
  text-align: left;
  font-size: 1rem;
  margin: 1rem 0 0.3rem;
  font-family: var(--e-global-typography-secondary-font-family);
  color: var(--e-global-color-text);
  font-weight: 700;
}

.tctt-giveaway-wrapper input,
.tctt-giveaway-wrapper select,
.tctt-giveaway-wrapper textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: #222 !important;
  color: var(--e-global-color-text) !important;
  border-radius: 5px;
  font-size: 0.9rem;
  box-sizing: border-box;
  font-family: var(--e-global-typography-text-font-family);
  font-weight: var(--e-global-typography-text-font-weight);
  appearance: none;
}

.tctt-giveaway-wrapper input::placeholder,
.tctt-giveaway-wrapper textarea::placeholder {
  color: #aaa !important;
  opacity: 1;
}

.tctt-giveaway-wrapper select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%204%205%22%3E%3Cpath%20fill=%22%23c9ad86%22%20d=%22M2%200L0%202h4L2%200zM2%205L0%203h4l-2%202z%22/%3E%3C/svg%3E')!important;
  background-repeat: no-repeat!important;
  background-position: right 0.7rem center!important;
  background-size: 0.65rem auto!important;
}

button#giveaway-submit,
button#copy-coupon,
.tctt-copy-coupon,
.tctt-copy-coupon-simple,
button#go-to-prop,
.go-to-prop-btn {
  width: 100%;
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-text);
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 1.5rem;
  cursor: pointer;
  font-family: var(--e-global-typography-primary-font-family);
}

button#giveaway-submit:hover,
button#copy-coupon:hover,
.tctt-copy-coupon:hover,
.tctt-copy-coupon-simple:hover,
button#go-to-prop:hover,
.go-to-prop-btn:hover,
.tctt-competition-wrapper .tctt-competition-submit:hover {
  background: #00b67a;
}
button#copy-coupon,
.tctt-copy-coupon,
.tctt-copy-coupon-simple,
button#go-to-prop,
.go-to-prop-btn {
  margin-top:0;
  margin-bottom: 1rem;
}

/* Specific overrides for simple copy button and text to prevent uppercase */
.tctt-copy-coupon-simple {
  text-transform: none !important;
}

.tctt-giveaway-success p.tctt-giveaway-text-preserve {
  text-transform: none !important;
}

.giveaway-terms-text {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-secondary-font-family);
}

.giveaway-terms-text a {
  color: var(--e-global-color-secondary);
  text-decoration: underline;
}

/* Original styles continue */

button#giveaway-submit:disabled,
.tctt-copy-coupon-simple:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Competition register form button */
.tctt-competition-wrapper .tctt-competition-submit-wrap {
  margin-top: 1.5rem;
}

.tctt-competition-wrapper .tctt-competition-submit {
  width: 100%;
  display: block;
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-text);
  padding: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--e-global-typography-primary-font-family);
}

.success-title {
  text-align: center;
  font-size: 2.7rem;
  font-weight: var(--e-global-typography-primary-font-weight);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--e-global-typography-primary-font-family);
  font-weight: 700;
  color: var(--e-global-color-text);
}

.tctt-giveaway-success p{
  text-align: center;
  font-size: 1.5rem;
  font-weight: var(--e-global-typography-primary-font-weight);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--e-global-typography-primary-font-family);
  font-weight: 700;
  color: var(--e-global-color-text);
}

.coupon-footer p{
  font-size: 1rem;
  margin-top: 1rem;
  line-height: 1;
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-secondary-font-family);
}
