/* BẢNG GIÁ WorkGPT – shortcode [workgpt_bang_gia]. Font theo theme của trang. Đổi màu ở 4 biến dưới. */
.wgp {
  --wgp-blue: #0b4aa6;
  --wgp-blue-2: #1565d8;
  --wgp-red: #DC143C;
  --wgp-text: #333;
  font-family: inherit;
  color: var(--wgp-text);
  box-sizing: border-box;
}
.wgp *, .wgp *::before, .wgp *::after { box-sizing: inherit; }
/* Luôn chiếm đủ bề ngang, kể cả khi widget nằm trong container Elementor xếp ngang */
.wgp { width: 100%; }
.elementor-widget-shortcode:has(.wgp), .elementor-widget:has(> .elementor-widget-container .wgp) { width: 100%; max-width: 100%; flex: 1 1 100%; }
.wgp-cot .wgp-panels { width: 100%; }
.wgp ul.wgp-feats { list-style: none; margin: 0; padding: 0; }
.wgp .wgp-feats li::before, .wgp .wgp-feats li::marker { content: none; display: none; }
.wgp .wgp-feats li { padding: 0; background: none; display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.55; }
.wgp .wgp-feats svg { flex: 0 0 auto; }
.wgp h3 { margin: 0; padding: 0; }
.wgp a.wgp-btn { text-decoration: none; }
.wgp-empty { padding: 12px 16px; border: 1px dashed #e2303f; color: #b42318; border-radius: 8px; font-size: 14px; }

/* Nút chung */
.wgp .wgp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px; border: 0;
  background: var(--wgp-red); color: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(226, 48, 63, .35);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wgp .wgp-btn:hover, .wgp .wgp-btn:focus-visible { color: #fff; background: #c81f2e; transform: translateY(-2px); box-shadow: 0 12px 22px rgba(226, 48, 63, .4); }
.wgp .wgp-btn:focus-visible { outline: 3px solid rgba(11, 74, 166, .35); outline-offset: 3px; }

/* ================= Kiểu "tron" ================= */
.wgp-tron { --wgp-navy: #0b4596; --wgp-line: #e5e8ef; }
.wgp-tron .wgp-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); /* chiếm đủ bề ngang khung → thẳng mép với các khối khác */
  gap: 25px; width: 100%; margin: 0; padding: 180px 0px; align-items: start;
}
.wgp-tron .wgp-card {
  position: relative; background: #FFFFFF; border-radius: 16px;
  box-shadow: 0 0 20px 0 #E9F0FF;
  padding: 142px 50px 44px; margin-top: 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.wgp-tron .wgp-card.is-featured { margin-top: 0; }
.wgp-tron .wgp-circle {
  position: absolute; top: -112px; left: 50%; transform: translateX(-50%);
  width: 209px; height: 209px; border-radius: 50%; padding: 0 8px;
  background: var(--wgp-navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 0 0 14px #fff, 0 -6px 20px 8px #E9F0FF;
}
.wgp .wgp-circle h3 { margin: 0; color: #fff; font-size: 28px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.wgp .wgp-circle p { margin: 0; color: #fff; font-size: 14px; line-height: 1.3; opacity: .9; }
.wgp .wgp-price {
  width: 100%; margin: 0 0 40px; padding: 0 0 22px; border-bottom: 1px solid #00000033;
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; column-gap: 6px;
}
.wgp-tron .wgp-price strong { color: var(--wgp-navy); font-size: clamp(26px, 2.5vw, 40px); font-weight: 700; line-height: 1.2; white-space: nowrap; letter-spacing: -.01em; }
.wgp-tron .wgp-price span { color: #222222; font-size: 18px; white-space: nowrap; font-weight: 500; }
.wgp-tron ul.wgp-feats { display: grid; gap: 25px; margin: 0 0 40px; padding: 0; width: 100%; max-width: 255px; text-align: left; font-size: 16px; font-weight: 400; color: #222222; }
.wgp-tron .wgp-feats li { gap: 12px; line-height: 1.25; }
.wgp-tron .wgp-feats svg { width: 15px; height: 15px; margin-top: 2px; color: var(--wgp-navy); }
.wgp-tron .wgp-btn {
  margin-top: auto; width: 240px; max-width: 100%; height: 60px; padding: 10px;
  border-radius: 100px; font-size: 14px; font-weight: 700;
  background: #DC143C; box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .2);
}
.wgp-tron .wgp-btn:hover, .wgp-tron .wgp-btn:focus-visible {
  background: #B8102F; box-shadow: 0 6px 14px 0 rgba(0, 0, 0, .25);
}

/* ================= Kiểu "the" (START / PRO) ================= */
.wgp-the { position: relative; z-index: 2; --wgp-navy: #0B4596; text-align: left; }
.wgp-the .wgp-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 390px)); justify-content: center; gap: 30px; }
/* Dải nền xanh tự vẽ (nen="xanh"): chỉ phủ nửa trên của thẻ */
.wgp-the.has-band { padding-top: 40px; }
.wgp-the.has-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 0;
  background: var(--wgp-band-img, none) center / cover no-repeat, linear-gradient(180deg, #3D8BFF 0%, #1E66E8 55%, #0A3FA6 100%);
  background-blend-mode: soft-light, normal;
  border-radius: 0 0 24px 0;
}
.wgp-the .wgp-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 24px; padding: 34px 40px 30px;
  border: 7px solid #EEF3FF; background-clip: padding-box;
  box-shadow: 0 14px 34px rgba(16, 52, 120, .14);
  display: flex; flex-direction: column;
}
.wgp-the .wgp-tag { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; color: #333; line-height: 1.3; }
.wgp-the .wgp-star {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(180deg, #3D8BFF, #0B4596); display: inline-flex; align-items: center; justify-content: center;
}
.wgp-the .wgp-star svg { width: 18px; height: 18px; }
.wgp-the .wgp-rank {
  color: var(--wgp-navy); font-size: 40px; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em;
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #D6E2F5;
}
.wgp-the ul.wgp-feats { display: grid; gap: 14px; font-size: 14px; color: #333; margin: 0 0 26px; }
.wgp-the .wgp-feats li { gap: 10px; line-height: 1.45; align-items: center; }
.wgp-the .wgp-feats svg { width: 20px; height: 20px; fill: #0B57D0; margin: 0; }
/* Nút: bình thường = viền đỏ (kiểu PRO) · rê chuột vào thẻ = đỏ đặc (kiểu START) */
.wgp-the .wgp-btn {
  margin-top: auto; width: 100%; height: 48px; padding: 0 20px; border-radius: 100px;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  background: #fff; color: #DC143C; border: 1.5px solid #DC143C; box-shadow: none; transform: none;
}
.wgp-the .wgp-card { transition: box-shadow .2s ease, transform .2s ease; }
.wgp-the .wgp-card:hover { box-shadow: 0 18px 40px rgba(16, 52, 120, .2); transform: translateY(-4px); }
.wgp-the .wgp-card:hover .wgp-btn, .wgp-the .wgp-btn:focus-visible {
  background: #DC143C; color: #fff; border-color: #DC143C; box-shadow: 0 6px 14px rgba(220, 20, 60, .28); transform: none;
}
.wgp-the .wgp-card .wgp-btn:hover { background: #B8102F; border-color: #B8102F; color: #fff; }

/* Thẻ tràn ra ngoài khối xanh (de_xuong / de_len): không cho khung Elementor cắt mất */
.e-con:has(> .e-con-inner > .elementor-widget .wgp-the), .e-con:has(> .elementor-widget .wgp-the) { overflow: visible !important; }

/* ================= Kiểu "cot" ================= */
.wgp-cot { text-align: center; }
.wgp-cot .wgp-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wgp-cot .wgp-tabs { display: inline-flex; gap: 16px; margin-bottom: 32px; }
.wgp-cot .wgp-tab {
  min-width: 110px; padding: 13px 24px; border-radius: 999px; cursor: pointer; user-select: none;
  background: #e2e2e4; color: #666; font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.wgp-cot .wgp-tab:hover { color: var(--wgp-blue); }
.wgp-cot .wgp-panel { display: none; }
.wgp-cot .wgp-panels {
  text-align: left; background: #fff; border-radius: 16px;
  box-shadow: 0 0 0 1px #eef2fb, 0 10px 34px rgba(16, 52, 120, .10); overflow: hidden;
}
.wgp-cot .wgp-panel { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.wgp-cot .wgp-col { padding: 28px 22px 30px; border-right: 1px solid #eef1f6; display: flex; flex-direction: column; }
.wgp-cot .wgp-col:last-child { border-right: 0; }
.wgp-cot .wgp-col.is-featured { background: #f5f9ff; }
.wgp-cot .wgp-col-name { font-size: 20px; font-weight: 700; color: #111; }
.wgp-cot .wgp-col-name small { font-size: 14px; font-weight: 600; }
.wgp-cot .wgp-col-price { margin-top: 18px; font-size: 21px; font-weight: 700; color: #555; }
.wgp-cot .wgp-col-term { margin-top: 4px; color: #555; font-size: 15px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid #e7e9ee; min-height: 1.5em; }
.wgp-cot .wgp-feats { display: grid; gap: 18px; font-size: 15px; color: #555; margin-bottom: 22px !important; }
.wgp-cot .wgp-feats svg { width: 16px; height: 16px; margin-top: 3px; color: #555; }
.wgp-cot .wgp-btn-sm { margin-top: auto; align-self: flex-start; padding: 9px 20px; font-size: 13px; box-shadow: none; }
/* Rê chuột vào cột: nền xanh, chữ trắng */
.wgp-cot .wgp-col { transition: background-color .2s ease, color .2s ease; }
.wgp-cot .wgp-col:hover { background: #0B4596; }
.wgp-cot .wgp-col:hover .wgp-col-name,
.wgp-cot .wgp-col:hover .wgp-col-price,
.wgp-cot .wgp-col:hover .wgp-col-term,
.wgp-cot .wgp-col:hover .wgp-feats,
.wgp-cot .wgp-col:hover .wgp-feats svg { color: #fff; }
.wgp-cot .wgp-col:hover .wgp-col-term { border-bottom-color: #fff; }
.wgp-cot .wgp-col:hover .wgp-btn { background: #fff; color: #0B4596; }
/* Tab đang chọn (hỗ trợ tối đa 6 tab) */
.wgp-in-0:checked ~ .wgp-tabs .wgp-tab-0, .wgp-in-1:checked ~ .wgp-tabs .wgp-tab-1, .wgp-in-2:checked ~ .wgp-tabs .wgp-tab-2,
.wgp-in-3:checked ~ .wgp-tabs .wgp-tab-3, .wgp-in-4:checked ~ .wgp-tabs .wgp-tab-4, .wgp-in-5:checked ~ .wgp-tabs .wgp-tab-5 {
  background: #fff; color: #555; border-color: var(--wgp-blue);
}
.wgp-in-0:checked ~ .wgp-panels .wgp-panel-0, .wgp-in-1:checked ~ .wgp-panels .wgp-panel-1, .wgp-in-2:checked ~ .wgp-panels .wgp-panel-2,
.wgp-in-3:checked ~ .wgp-panels .wgp-panel-3, .wgp-in-4:checked ~ .wgp-panels .wgp-panel-4, .wgp-in-5:checked ~ .wgp-panels .wgp-panel-5 { display: grid; }
.wgp-in:focus-visible ~ .wgp-tabs .wgp-tab { outline: 0; }
.wgp-in-0:focus-visible ~ .wgp-tabs .wgp-tab-0, .wgp-in-1:focus-visible ~ .wgp-tabs .wgp-tab-1, .wgp-in-2:focus-visible ~ .wgp-tabs .wgp-tab-2,
.wgp-in-3:focus-visible ~ .wgp-tabs .wgp-tab-3 { outline: 3px solid rgba(11, 74, 166, .3); outline-offset: 2px; }

/* ================= Điện thoại / máy tính bảng ================= */
@media (max-width: 1024px) {
  .wgp-tron .wgp-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); row-gap: 140px; padding-top: 110px; }
  .wgp .wgp-circle h3 { font-size: 24px; }
  .wgp-tron .wgp-card, .wgp-tron .wgp-card.is-featured { margin-top: 0; }
  .wgp-cot .wgp-panels { overflow-x: auto; }
  .wgp-cot .wgp-panel { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .wgp-cot .wgp-col { border-bottom: 1px solid #eef1f6; }
}
@media (max-width: 600px) {
  .wgp-tron .wgp-card { padding: 116px 24px 36px; }
  .wgp-tron .wgp-circle { width: 176px; height: 176px; top: -88px; }
  .wgp-tron .wgp-price strong { font-size: 28px; }
  .wgp .wgp-circle h3 { font-size: 22px; }
  .wgp-the .wgp-card { padding: 28px 24px 26px; }
  .wgp-the .wgp-rank { font-size: 34px; }
  .wgp-the.has-band::before { height: 30%; }
  .wgp-cot .wgp-panel { grid-template-columns: 1fr 1fr; }
  .wgp-cot .wgp-tab { min-width: 0; padding: 11px 18px; }
}
@media (max-width: 400px) { .wgp-cot .wgp-panel { grid-template-columns: 1fr; } }