/* MyShop Plugin */

.myshop-support-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr);
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid #c8d5e2;
  border-radius: 4px;
  background: #fff;
}

.myshop-game-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 280px;
  background: #17231f;
}

.myshop-game-hero-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.myshop-game-title-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(66%, 500px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .75));
}

.myshop-support-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
}

.myshop-support-copy h2 {
  margin: 0 0 8px;
}

.myshop-support-copy p {
  margin: 0;
}

.myshop-payment-trust {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e1e8ef;
}

.myshop-payment-trust img {
  display: block;
  width: 152px;
  max-width: 45%;
  height: auto;
}

.myshop-token-guide {
  margin: 22px 0;
  padding: 22px 24px;
  border: 1px solid #c8b77f;
  border-top: 4px solid #214b3e;
  background: linear-gradient(135deg, #fbf8ef 0%, #eef3ee 100%);
  box-shadow: 0 7px 20px rgba(22, 47, 39, .07);
}
.myshop-token-guide__header h2 { margin: 3px 0 7px; color: #173c31; font-family: Georgia, "Times New Roman", serif; font-size: 23px; }
.myshop-token-guide__header > p:last-child { margin: 0; color: #44554e; line-height: 1.7; }
.myshop-token-guide__eyebrow { margin: 0; color: #9a7424; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.myshop-token-guide__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 13px; padding: 0; list-style: none; }
.myshop-token-guide__steps li { display: flex; gap: 10px; min-width: 0; padding: 14px; border: 1px solid #d5c9a8; background: rgba(255,255,255,.76); }
.myshop-token-guide__steps li > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #214b3e; color: #fff4cf; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.myshop-token-guide__steps h3 { margin: 2px 0 6px; color: #214b3e; font-size: 15px; }
.myshop-token-guide__steps p { margin: 0; color: #4e5b55; font-size: 13px; line-height: 1.65; }
.myshop-token-guide__steps a { color: #1d5140; font-weight: 700; text-decoration: underline; text-decoration-color: #b48a24; text-underline-offset: 2px; }
.myshop-token-guide__note { margin: 0; padding: 10px 12px; border-left: 3px solid #b48a24; background: #f3eddd; color: #5a5548; font-size: 12px; line-height: 1.65; }
.myshop-token-guide__link { margin: 13px 0 0; text-align: right; }
.myshop-token-guide__link a { color: #1d5140; font-weight: 700; text-decoration: none; }
.myshop-token-guide__link a:before { content: "◆"; margin-right: .45em; color: #b48a24; font-size: .72em; }
@media(max-width:700px){.myshop-token-guide{margin:16px 0;padding:18px 15px}.myshop-token-guide__header h2{font-size:20px}.myshop-token-guide__steps{grid-template-columns:1fr}.myshop-token-guide__steps li{padding:12px}}

.product_edit {
  margin-top: 5px;
  margin-bottom: 5px;
}

.myshop-support-wall {
  margin: 30px 0 18px;
  padding: 28px;
  border: 1px solid #b7aa82;
  border-radius: 6px;
  background: linear-gradient(145deg, #f7f4ea 0%, #edf2ed 100%);
  box-shadow: 0 8px 24px rgba(22, 47, 39, .08);
}

.myshop-support-wall__header { text-align: center; }
.myshop-support-wall__icon { display: block; width: 104px; height: 104px; margin: -8px auto 5px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(27,55,45,.2)); transition: transform .2s ease, filter .2s ease; }
.myshop-support-wall__header:hover .myshop-support-wall__icon { filter: drop-shadow(0 7px 11px rgba(27,55,45,.28)); transform: translateY(-2px) rotate(-1deg); }
.myshop-support-wall__header h2 { margin: 3px 0 8px; color: #193d32; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.myshop-support-wall__header > p:last-child { max-width: 720px; margin: 0 auto 22px; color: #4e5c56; }
.myshop-support-wall__eyebrow { margin: 0; color: #9a7424; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.myshop-support-comments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.myshop-support-comment { position: relative; margin: 0; padding: 17px 18px; border: 1px solid #cbd5ce; border-left: 5px solid #779184; border-radius: 4px; background: rgba(255,255,255,.82); }
.myshop-support-comment p { margin: 10px 0 0; color: #26352f; line-height: 1.7; }
.myshop-support-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.myshop-support-comment__meta strong { color: #193d32; font-size: 16px; }
.myshop-support-comment__meta time { margin-left: auto; color: #77827d; font-size: 12px; }
.myshop-support-tier { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #dce5df; color: #365248; font-size: 11px; font-weight: 700; }
.myshop-support-comment--tier-2 { border-color: #c9b87d; border-left-color: #315e4d; background: linear-gradient(135deg,#fbf8ef,#edf2ed); }
.myshop-support-comment--tier-2 .myshop-support-tier { border: 1px solid #c9a84f; background: #214b3e; color: #fff8df; }
.myshop-support-comment--tier-3 { border: 1px solid #c7a952; border-left: 6px solid #b48a24; background: linear-gradient(135deg,#fffdf5,#f7efd9); box-shadow: 0 4px 14px rgba(137,102,24,.10); }
.myshop-support-comment--tier-3 .myshop-support-tier { background: #ead69a; color: #674c0d; }
.myshop-support-comment--tier-4 { grid-column: 1 / -1; padding: 22px 24px; border: 1px solid #c5a64b; border-left: 8px solid #d0aa38; background: linear-gradient(135deg,#173b31,#245244); box-shadow: 0 8px 22px rgba(18,57,45,.22); }
.myshop-support-comment--tier-4 p,.myshop-support-comment--tier-4 .myshop-support-comment__meta strong { color: #fffdf2; }
.myshop-support-comment--tier-4 .myshop-support-comment__meta time { color: #c9d7d1; }
.myshop-support-comment--tier-4 .myshop-support-tier { background: #d9b34a; color: #18382f; }
.myshop-support-empty { padding: 18px; border: 1px dashed #b9c6bd; text-align: center; color: #69766f; }
.myshop-support-form { margin-top: 20px; border-top: 1px solid #cfc4a5; padding-top: 15px; }
.myshop-support-form summary { cursor: pointer; color: #294f75; font-weight: 700; }
.myshop-support-form form { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(220px,1fr); gap: 13px 16px; margin-top: 16px; }
.myshop-support-form label { display: flex; flex-direction: column; gap: 5px; color: #29463c; font-weight: 600; }
.myshop-support-form label:nth-of-type(3) { grid-column: 1 / -1; }
.myshop-support-form input,.myshop-support-form textarea,.myshop-token-result input { box-sizing: border-box; width: 100%; border: 1px solid #aebdb5; border-radius: 3px; padding: 9px 10px; background: #fff; color: #1f2e29; font: inherit; }
.myshop-support-form__help { grid-column: 1 / -1; margin: 0; color: #65716b; font-size: 12px; }
.myshop-support-form button { justify-self: start; }
.myshop-support-notice { padding: 11px 14px; border-radius: 3px; }
.myshop-support-notice--success { border: 1px solid #84ad92; background: #e9f5ec; color: #285f3b; }
.myshop-support-notice--error { border: 1px solid #c58f87; background: #fff0ee; color: #842f25; }
.myshop-token-result { max-width: 760px; margin: 24px auto; padding: 28px; border: 1px solid #c5a64b; border-radius: 6px; background: #f8f4e8; }
.myshop-token-result__credential { margin: 18px 0; padding: 18px; background: #fff; border-left: 5px solid #b48a24; }
.myshop-token-result label { display: block; margin: 12px 0; font-weight: 700; }
.myshop-token-result button { margin-bottom: 8px; }

/* Keep product/order tables inside Geeklog's center content column. */
.myshop-table-wrap {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.myshop-table {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.myshop-table th,
.myshop-table td {
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  border-bottom: 1px solid #c8d5e2;
  padding: 9px 10px;
}

/* Happa brand palette: forest green, warm ivory, and restrained antique gold. */
.myshop-table thead th {
  background-color: #1f4438;
  color: #f8f1dd;
  border-top: 1px solid #b8953f;
  border-bottom: 2px solid #c9a84f;
  font-weight: 600;
}

.myshop-table.uk-table-striped tbody tr:nth-of-type(odd),
.myshop-table tbody tr:nth-of-type(odd) {
  background-color: #f7f4ea;
}

.myshop-table.uk-table-hover tbody tr:hover,
.myshop-table tbody tr:hover {
  background-color: #e2ebe3;
}

.myshop-table img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .myshop-support-intro {
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, .75fr);
  }

  .myshop-game-hero {
    height: 240px;
  }

  .myshop-support-copy {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  .myshop-support-wall__icon { width: 86px; height: 86px; margin-top: -4px; }
  .myshop-support-wall { padding: 20px 15px; }
  .myshop-support-comments,.myshop-support-form form { grid-template-columns: 1fr; }
  .myshop-support-comment--tier-4,.myshop-support-form label:nth-of-type(3),.myshop-support-form__help { grid-column: 1; }
  .myshop-support-comment__meta time { width: 100%; margin-left: 0; }
  .myshop-support-intro {
    display: block;
  }

  .myshop-game-hero {
    height: 180px;
  }

  .myshop-game-title-logo {
    width: 70%;
  }

  .myshop-support-copy {
    padding: 12px;
  }

  .myshop-payment-trust img {
    width: 120px;
    max-width: 48%;
  }

  .myshop-table-wrap {
    overflow: visible;
  }

  .myshop-table {
    display: block;
    min-width: 0 !important;
  }

  .myshop-table thead,
  .myshop-table tbody {
    display: block;
  }

  .myshop-table thead tr,
  .myshop-table tbody tr {
    display: grid;
    grid-template-columns: minmax(88px, 22%) minmax(120px, 1fr) minmax(96px, 25%) 70px;
  }

  .myshop-table thead th {
    display: block;
    padding: 8px 7px;
  }

  .myshop-table thead th:nth-child(5) {
    display: none;
  }

  .myshop-table tbody tr {
    margin-bottom: 12px;
    border-bottom: 1px solid #c8d5e2;
  }

  .myshop-table tbody td {
    display: block;
    padding: 10px 7px;
    border-bottom: 0;
  }

  .myshop-product-media {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .myshop-product-description {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .myshop-product-price {
    grid-column: 3;
    grid-row: 1;
  }

  .myshop-product-quantity {
    grid-column: 4;
    grid-row: 1;
  }

  .myshop-product-action {
    grid-column: 3 / 5;
    grid-row: 2;
    padding-top: 2px !important;
  }

  .myshop-product-action form {
    margin: 0;
  }

  .myshop-product-action .uk-button {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
  }
}
