@charset "utf-8";

.coupon {
  opacity: 0;
  margin: 0 auto;
  padding-top: 180px;
}

.coupon.loaded {
  opacity: 1;
}

.inner-title {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: var(--color-primary);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  color: var(--color-text-white);
  background-color: var(--color-primary);
  transition: all 0.3s;
}
.button_delete {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: fit-content;
  height: 24px;
  margin: auto;
  padding: 2px 4px 2px 16px;
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: bold;
  background-color: transparent;
}
.button_delete::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 2px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background-image: url("/img/user/delete.svg");
}
@media (hover: hover) {
  a:hover,
  button:hover,
  .button:hover,
  .button_delete:hover {
    opacity: 0.8;
  }
}

/* セクション共通 */
.coupon_section {
  margin-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border-main);
}
.coupon_section_title {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: bold;
}

.coupon_input_description {
  margin-top: 12px;
  font-size: 14px;
  font-weight: normal;
}
.coupon_input_inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
}
.coupon_input_left {
  flex: 1;
}
.coupon_input_title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text-sub);
}
.coupon_input {
  display: flex;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border-radius: 4px;
  box-sizing: border-box;
  border: 1px solid var(--color-border-main);
  background: var(--color-background-white);
}
.coupon_input::placeholder {
  color: var(--color-text-placeholder);
  font-weight: bold;
}
.coupon_input_button {
  max-width: 240px;
}
@media (max-width: 767px) {
  .coupon_input_inner {
    flex-direction: column;
    align-items: center;
  }
  .coupon_input_left {
    width: 100%;
  }
  .coupon_input_button {
    max-width: 100%;
  }
}

.coupon_ticket_list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: stretch;
  gap: 24px 16px;
}
@media (max-width: 767px) {
  .coupon_ticket_list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .coupon_applied_section .coupon_ticket_list {
    gap: 24px;
  }
}
.coupon_ticket {
  margin: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.coupon_ticket-upper {
  position: relative;
  padding: 20px 16px 12px;
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--color-border-main);
  border-bottom: 1px dashed var(--color-border-main);
}
.coupon_ticket-lower {
  padding: 12px 16px 16px;
  border-radius: 0 0 6px 6px;
  border: 1px solid var(--color-border-main);
  border-top: none;
}
.coupon_ticket-upper .coupon_title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}
.coupon_ticket-upper .coupon_conditions {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-sub);
  text-align: center;
}
.coupon_ticket-upper .coupon_discount {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
.coupon_ticket-upper .coupon_remaining {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: bold;
  background-color: var(--color-background-gray-2);
}
.coupon_ticket-upper .coupon_expiredDate {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: bold;
}
.coupon_ticket-upper .coupon_expiredDate span {
  margin-left: 4px;
  font-size: 12px;
  color: var(--color-text-sub);
}
.coupon_ticket-upper .coupon_targets-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-sub);
}
.coupon_ticket-upper .coupon_targets {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: bold;
}
.coupon_ticket-upper .coupon_code {
  font-size: 10px;
  color: var(--color-text-sub);
}

.coupon_applied_section .coupon_ticket-upper {
  padding-top: 48px;
}
.coupon_applied_date {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 32px;
  border-radius: 6px 6px 0 0;
  background-color: var(--color-background-gray-1);
  font-size: 12px;
  font-weight: bold;
}

.coupon_applied_planName {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: bold;
}
.coupon_applied_delivery {
  margin-bottom: 8px;
  font-size: 12px;
}
.coupon_applied_delivery span {
  margin: 0 4px;
}
.coupon_note {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  color: var(--color-text-sub);
}
.coupon_note::before {
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: 0;
  width: 14px;
  height: 14px;
  background-image: url("/img/user/information-circle.svg");
}

.mt-8 {
  margin-top: 8px;
}
.mt-24 {
  margin-top: 24px;
}

.coupon_alert {
  color: var(--color-alert);
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

/* 確認ページ */
.coupon_selected {
  margin-top: 24px;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--color-border-main);
}
.coupon_selected .coupon_title {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: bold;
}
.coupon_selected .coupon_discountWrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.coupon_selected .coupon_conditions {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-sub);
}
.coupon_selected .coupon_discount {
  font-size: 18px;
  font-weight: bold;
}
.coupon_selected .coupon_remaining {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: bold;
  background-color: var(--color-background-gray-2);
}
.coupon_selected .coupon_expiredDate {
  font-size: 14px;
  font-weight: bold;
}
.coupon_selected .coupon_expiredDate span {
  margin-left: 4px;
  font-size: 12px;
  color: var(--color-text-sub);
}

.coupon_select-title {
  margin-top: 32px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}
.coupon_selectPlanList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.coupon_planWrap {
  display: block;
  width: 100%;
  padding: 0;
  background-color: var(--color-background-white);
  text-align: left;
  appearance: none;
  color: var(--color-text-main);
  font-family: var(--font-family-primary);
  transition: all 0.3s;
}
@media (hover: hover) {
  .coupon_planWrap:hover {
    opacity: 1;
    background-color: var(--color-background-gray-2);
  }
}
.coupon_plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 32px 16px 16px;
  border-radius: 4px;
  border: 1px solid var(--color-primary);
}
.coupon_plan::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("/img/user/arrow-right-large.svg");
}
.coupon_plan-deliveryDate {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-sub);
}
.coupon_plan-deliveryDate span {
  margin-left: 8px;
  color: var(--color-primary);
}
.coupon_plan-title {
  line-height: 1.4;
  font-size: 18px;
  font-weight: bold;
}
.coupon_plan-deliveryAddress {
  display: flex;
  gap: 8px;
  font-size: 12px;
}
.coupon_plan-deliveryAddress-title {
  word-break: keep-all;
}
.coupon_plan-alert {
  color: var(--color-alert);
  font-size: 12px;
  font-weight: bold;
}
.coupon_plan-note {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-main);
}

/* 確認モーダル */
.delete_confirm_text {
  line-height: 1.6;
}
.delete_confirm_button {
  width: 240px;
  margin: 24px auto 0;
}

/* 戻るボタン */
.coupon_list_buttons {
  max-width: 338px;
  margin: 32px auto 10% auto;
  padding:0;
  text-align: center;
}
.coupon_list_button {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 340px;
  height: 48px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s;
}
.coupon_list_button.--prev {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  background-color: var(--color-background-white);
}
.coupon_list_button.--prev:hover:disabled,
.coupon_list_button.--prev:active:disabled,
.coupon_list_button.--prev:focus:disabled {
  pointer-events: none;
}

.coupon_confirm_title {
  font-size: var(--font-size-16);
  line-height: var(--font-lineHeight-160);
  margin-bottom: var(--spacing-md-sm);
}

.coupon_confirm_message {
  font-size: var(--font-size-14);
  line-height: var(--font-lineHeight-160);
}

.coupon_confirm_amount_display {
  line-height: var(--font-lineHeight-160);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-lg);
}

.coupon_confirm_amount_display_left {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.coupon_confirm_total {
  font-size: var(--font-size-16);
}

.coupon_confirm_tax {
  font-size: var(--font-size-12);
  font-weight: normal;
}

.coupon_confirm_amount {
  font-size: var(--font-size-20);
}

.coupon_confirm_amount_unit {
  font-size: var(--font-size-14);
}
