/* ==========================================
   PT Oil Price Page - page-oil-price-pt.css
   Typography & layout aligned with Figma (FC Iconic)
   ========================================== */

   .pt-oil-font {
    font-family: 'FCIconic';
  }
  
  /* === Hero Section — Frame: white #FFFFFF, padding 64×56 desktop === */
  .pt-hero-section {
    padding: 64px 0;
    background: #ffffff;
  }
  
  .pt-hero-section .container {
    padding-left: 56px;
    padding-right: 56px;
    max-width: 1280px;
  }
  
  .pt-hero-section .row {
    align-items: center;
    gap: 24px;
  }
  
  /* md+ (768px): match Figma — keep columns on one line (override Bootstrap .row flex-wrap) */
  @media (min-width: 768px) {
    .pt-hero-section .row,
    .pt-cta-section .row {
      flex-wrap: nowrap;
    }
  
    /* Hero text / illustration column widths (override Bootstrap col-md-7 + col-md-5) */
    .pt-hero-section .row > .col-md-7,
    .pt-hero-section .row > .col-md-5 {
      min-width: 0;
    }
  
    .pt-hero-section .row > .col-md-7 {
      flex: 0 0 43.333333%;
      width: 43.333333%;
      max-width: 43.333333%;
    }
  
    .pt-hero-section .row > .col-md-5 {
      flex: 0 0 47.666667%;
      width: 47.666667%;
      max-width: 47.666667%;
    }
  }
  
  .pt-hero-title {
    margin: 0 0 32px;
  }
  
  /* Desktop/Heading/H1 — 600, 60px / 72px, letter-spacing 0.0025em, #222222 */
  .pt-hero-h1 {
    font-family: 'FCIconic';
    font-style: normal;
    font-weight: 600;
    font-size: 60px;
    line-height: 72px;
    letter-spacing: 0.0025em;
    color: #222222;
    margin: 0;
    max-width: 472px;
  }
  
  .pt-hero-desc-wrap {
    /*display: flex;*/
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 472px;
  }
  
  /* ISV Font/16 Body — 400, 16px / 24px, letter-spacing 0.25px */
  .pt-hero-desc {
    font-family: 'FCIconic';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.25px;
    color: #222222;
    margin: 0;
  }
  
  /* === Price Section — #F5F5F5, padding 64×56 === */
  .pt-price-section {
    padding: 64px 0;
    background: #f5f5f5;
  }
  
  .pt-price-section .container {
    padding-left: 56px;
    padding-right: 56px;
    max-width: 1280px;
  }
  
  /* Desktop/Heading/H2 — 600, 40px / 60px, center, #222222 */
  .pt-date-heading {
    font-family: 'FCIconic';
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 60px;
    text-align: center;
    color: #222222;
    margin: 0 0 32px;
  }
  
  /* === Price Card Wrapper === */
  .pt-price-card-wrapper {
    max-width: 540px;
    margin: 0 auto;
  }
  
  /* Edit-new-BG-Card.png — full-card background (gradient + illustration baked in) */
  .pt-price-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
    background-color: #1dd4b4;
    background-image: url('../images/PT_BG-New.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top right;
  }
  
  /* === Card Header === */
  .pt-card-header {
    /* background-image applied via wp_add_inline_style (bg-pt-oil.jpg) */
    padding: 20px 22px 22px;
    position: relative;
  }
  
  /* Decorative circles in header background */
  .pt-card-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
  }
  
  .pt-card-header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 60px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
  }
  
  /* Top bar: Logo (left) + Share button (right) */
  .pt-card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    position: relative;
    z-index: 10;
  }
  
  .pt-card-logo {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }
  
  /* Share button — Figma: #FFFFFF, radius 8px, 40×40 */
  .pt-share-btn {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    padding: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
  }
  
  /* ID selector: win over theme button resets */
  button#pt-share-btn.pt-share-btn {
    background-color: #ffffff;
  }
  
  button#pt-share-btn.pt-share-btn:hover {
    background-color: #f5f5f5;
  }
  
  .pt-share-btn:hover {
    background-color: #f5f5f5;
  }
  
  .pt-share-btn svg {
    width: 16px;
    height: 16px;
    display: block;
  }
  
  /* Card Title row */
  .pt-card-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
  }
  
  .pt-card-title-text {
    flex: 1;
  }
  
  .pt-card-main-title {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* PT Badge */
  .pt-pt-badge {
    display: inline-block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  }
  
  .pt-card-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    margin: 0;
  }
  
  /* === Content Box: white inset — Figma shadow 0 0 5px, radius 8px === */
  .pt-card-content-box {
    margin: 0 14px 0px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
  
  /* === Card Body (Table) === */
  .pt-card-body {
    background: #ffffff;
    padding:10px;
  }
  
  /* Price Table — thead: dark bar, rounded top, teal first col, white price cols */
  .pt-price-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    /* Keep tbody visible; rounding is handled by thead corners + parent .pt-card-content-box overflow */
    overflow: visible;
  }
  
  .pt-price-table thead tr {
    background: #212121;
  }
  
  .pt-price-table thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
  }
  
  .pt-price-table thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
  }
  
  /* Base thead cell — price + diff columns use white */
  .pt-price-table thead th {
    font-family: 'FCIconic';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
  }
  
  .pt-price-table thead th:first-child {
    color: #1de6c1;
    text-align: center;
    width: 35%;
    font-weight: 700;
  }
  
  /* Columns 2 & 3: fixed width + force wrap so header text fits in 2 lines */
  .pt-price-table thead th:nth-child(2),
  .pt-price-table thead th:nth-child(3) {
    width: 22%;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    color: #ffffff;
  }
  
  .pt-price-table thead th:nth-child(4) {
    width: 21%;
    color: #ffffff;
    font-weight: 700;
  }
  
  /* Two-line price headers (thead only — never target tbody cells) */
  .pt-price-table thead .pt-th-date {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
    color: #ffffff;
    opacity: 1;
  }
  
  .pt-price-table thead .pt-th-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    color: #ffffff;
    opacity: 1;
  }
  
  .pt-price-table tbody tr {
    border-bottom: none;
    transition: background 0.15s;
  }
  
  .pt-price-table tbody tr:nth-child(odd) {
    background: #f5f5f5;
  }
  
  .pt-price-table tbody tr:nth-child(even) {
    background: #ffffff;
  }
  
  .pt-price-table tbody tr:last-child {
    border-bottom: none;
  }
  
  .pt-price-table tbody tr:hover {
    filter: brightness(0.99);
  }
  
  .pt-price-table tbody td {
    font-family: 'FCIconic';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.25px;
    padding: 8px 16px;
    text-align: center;
    color: #222222;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
  }
  
  .pt-price-table tbody td:first-child {
    text-align: center;
    font-weight: 600;
    color: #222222;
  }
  
  /* Difference — Figma red #E41D3D, green #00A371 */
  .pt-diff-up {
    color: #e41d3d;
    font-weight: 600;
  }
  
  .pt-diff-down {
    color: #00a371;
    font-weight: 600;
  }
  
  .pt-diff-neutral {
    color: #222222;
    font-weight: 600;
  }
  
  /* === Card Footer — outside white table box, on full-frame teal gradient (Image 1) === */
  /* Matches Image 4: dark teal text for contrast on bright cyan gradient at bottom */
  .pt-card-footer {
    background: transparent;
    padding: 0 0 10px 0;
  }
  
  /* Footer note — Figma: 14px / 22px, semibold, center, #222222 */
  .pt-card-footer p {
    font-family: 'FCIconic';
    margin: 0;
    font-size: 10px;
    line-height: 22px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: #222222;
    text-align: center;
  }
  
  .pt-card-footer p + p {
    margin-top: 2px;
  }
  
  /* === Loading / Empty state === */
  .pt-loading-row td {
    font-family: 'FCIconic';
    text-align: center !important;
    padding: 28px 16px !important;
    color: #666;
    font-size: 14px;
    line-height: 22px;
  }
  
  /* === Share — Floating Popup === */
  
  /* Wrapper: provides positioning context for the popup */
  .pt-share-btn-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 50;
  }
  
  /* Floating popup — hidden by default, drops DOWN from button */
  .pt-share-popup {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
  }
  
  .pt-share-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  
  /* Upward arrow (points to the share button above) */
  .pt-share-popup-arrow {
    position: absolute;
    top: -7px;
    bottom: auto;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ffffff;
    border-top: none;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.06));
  }
  
  /* Individual icon buttons inside the popup */
  .pt-share-popup-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
  }
  
  .pt-share-popup-item:hover {
    transform: translateY(-2px);
    opacity: 0.85;
  }
  
  /* External SVG assets (LINE / FB / X / copy) */
  .pt-share-popup-icon {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    pointer-events: none;
  }
  
  /* Copy link + Download image icon buttons */
  .pt-copy-link-btn,
  .pt-download-btn {
    background: #f2f2f2;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #333;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  
  .pt-copy-link-btn:hover,
  .pt-download-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
  }
  
  .pt-copy-link-btn.copied {
    background: #d4f5ed;
    color: #0d5a40;
  }
  
  /* === CTA Section — #EBFEF9, padding 40×56 === */
  .pt-cta-section {
    padding: 40px 0;
    background: #ebfef9;
  }
  
  .pt-cta-section .container {
    padding-left: 56px;
    padding-right: 56px;
    max-width: 1280px;
  }
  
  /* Figma horizontal gap 96px between CTA columns (md+, 768px+) */
  @media (min-width: 768px) {
    .pt-cta-section .pt-cta-row {
      --bs-gutter-x: 6rem;
    }
  }
  
  .pt-cta-left,
  .pt-cta-right,
  .pt-cta-right-wrap {
    text-align: left;
  }
  
  /* Lead — mobile: 32/48, 0.25px; desktop (768+): 40/60, 0.25% — FC Iconic SemiBold */
  .pt-cta-left .pt-cta-lead {
    font-family: 'FCIconic';
    font-size: 32px;
    font-weight: 600;
    font-style: normal;
    line-height: 48px;
    letter-spacing: 0.25px;
    color: #000000;
    margin: 0 0 24px;
  }

  @media (min-width: 768px) {
    .pt-cta-left .pt-cta-lead {
      font-size: 40px;
      line-height: 60px;
      letter-spacing: 0.0025em;
    }
  }
  
  /* Primary button — #1DE6C1, radius 8px, label 20px/30px #222222 */
  .pt-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1de6c1;
    color: #222222;
    font-family: 'FCIconic';
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.25px;
    padding: 13px 16px;
    min-height: 56px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 0;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
  }
  
  .pt-cta-btn:hover {
    background: #17d4b3;
    color: #222222;
    transform: translateY(-1px);
  }
  
  /* Sub line — 600, 24px / 36px, 0.25px (same mobile & desktop) */
  .pt-cta-right .pt-cta-sub {
    font-family: 'FCIconic';
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    line-height: 36px;
    letter-spacing: 0.25px;
    color: #000000;
    margin: 0 0 8px;
  }

  /* Sub16-Reg — 400, 16px / 24px, #222222 */
  .pt-cta-right .pt-cta-copy {
    font-family: 'FCIconic';
    color: #222222;
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.25px;
    margin: 0;
  }
  
  .pt-cta-right a {
    color: #222222;
    font-weight: 600;
    text-decoration: underline;
  }
  
  .pt-cta-right a:hover {
    color: #000000;
  }
  
  /* CTA illustration (mobile: between headline and copy; desktop: top of right column) */
  .pt-cta-illustration {
    text-align: center;
    margin: 1.75rem 0;
  }
  
  .pt-cta-illustration-img {
    max-width: min(100%, 420px);
    height: auto;
  }
  
  /* === Responsive: Tablet (container padding; typography md range) === */
  @media (max-width: 991px) {
    .pt-hero-section .container,
    .pt-price-section .container,
    .pt-cta-section .container {
      padding-left: 24px;
      padding-right: 24px;
    }
  
    .pt-hero-section {
      padding: 48px 0 40px;
    }
  
    .pt-hero-title {
      margin-bottom: 0px;
    }
  
    .pt-hero-h1 {
      font-size: 40px;
      line-height: 52px;
    }
  
    .pt-date-heading {
      font-size: 32px !important;
      line-height: 48px !important;
    }
  }
  
  /* === Responsive: Mobile (single column — center hero stack) === */
  @media (max-width: 767px) {
    .pt-hero-section .container,
    .pt-price-section .container,
    .pt-cta-section .container {
      padding-left: 20px;
      padding-right: 20px;
    }
  
    .pt-hero-section {
      text-align: center;
    }
  
    .pt-hero-h1 {
      font-size: 32px;
      line-height: 48px;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
  
    .pt-hero-desc-wrap {
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
      align-items: center;
    }
  
    .pt-hero-desc {
      text-align: center;
    }
  
    .pt-hero-desc {
      font-size: 15px;
      line-height: 23px;
    }
  
    .pt-date-heading {
      font-size: 32px !important;
      line-height: 48px !important;
      margin-bottom: 24px;
    }
  
    .pt-price-section {
      padding: 48px 0 56px;
    }
  .pt-pt-badge{
      width:22px;
      height:22px;
      
  }
  
  .pt-card-logo{
      height:18px;
      
  }
    .pt-price-card-wrapper {
      max-width: calc(100vw - 32px);
    }
  
    /* Mobile: cover so gradient fills full card, character anchored top-right */
    .pt-price-card {
      background-size: cover;
      background-position: top right;
    }
  
    .pt-card-header {
      padding: 5px 10px;
    }
  
    .pt-card-main-title {
      font-size: 1.3rem;
    }
  
    .pt-price-table thead th {
      padding: 10px 8px;
      font-size: 0.78rem;
    }
  
    .pt-price-table tbody td {
      padding: 4px;
      font-size: 0.78rem;
    }
  
    .pt-price-table thead .pt-th-date {
      font-size: 0.85rem;
      font-weight: 700;
      margin-bottom: 2px;
    }
  
    .pt-price-table thead .pt-th-label {
      font-size: 0.7rem;
      font-weight: 400;
    }
  
    .pt-price-table tbody td:first-child {
      padding-left: 10px;
    }
  
    .pt-price-table thead th:first-child {
      padding-left: 10px;
    }
  
    .pt-cta-section {
      padding: 32px 0;
    }
  
    .pt-cta-btn {
      font-size: 18px;
      line-height: 28px;
      width: 100%;
      max-width: 320px;
    }
  
    .pt-share-sheet {
      padding: 20px 20px 28px;
    }
    
    .pt-card-main-title {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 0;
    margin: 0px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
      }
      
      .pt-card-footer p{
          
      font-family: 'FCIconic';
      margin: 0;
      font-size: 10px;
      line-height: 15px;
      font-weight: 600;
      letter-spacing: 0.25px;
      color: #222222;
      text-align: center;
      }
  }
  
  /* === Mobile capture: Figma spec → card renders at exactly 328×328px ===
   * Header 100px + Table 184px + margin-bottom 8px + Footer 36px = 328px
   * ======================================================================= */
  .pt-price-card--capture-mobile .pt-card-header {
    padding: 18px 14px 8px;
  }
  .pt-price-card--capture-mobile .pt-card-top-bar {
    margin-bottom: 0px;
  }
  .pt-price-card--capture-mobile .pt-card-logo {
    height: 16px;
  }
  .pt-price-card--capture-mobile .pt-card-main-title {
    font-size: 1.25rem;    /* 20px — Figma */
    line-height: 30px;
    gap: 8px;
    margin: 0;
  }
  .pt-price-card--capture-mobile .pt-pt-badge {
    width: 23px;
    height: 24px;
  }
  .pt-price-card--capture-mobile .pt-card-subtitle {
    font-size: 12px;
    line-height: 18px;
    margin: 0;
  }
  .pt-price-card--capture-mobile .pt-card-content-box {
    margin: 0 8px 8px;
  }
  .pt-price-card--capture-mobile .pt-price-table thead th {
    padding: 8px 6px;
    font-size: 10px;
    line-height: 1.25;
  }
  
  .pt-price-card--capture-mobile .pt-price-table thead .pt-th-date {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 1px;
  }
  
  .pt-price-card--capture-mobile .pt-price-table thead .pt-th-label {
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
  }
  .pt-price-card--capture-mobile .pt-price-table tbody td {
    padding: 4px 8px;
    font-size: 10px;
    line-height: 15px;
  }
  .pt-price-card--capture-mobile .pt-card-footer {
    padding: 3px 14px 3px;
  }
  .pt-price-card--capture-mobile .pt-card-footer p {
    font-size: 10px;
    line-height: 15px;
    font-weight: 600;
    margin: 0;
  }
  
  /* === Responsive: Small mobile === */
  @media (max-width: 400px) {
    .pt-price-table thead th {
      padding: 8px 4px;
      font-size: 0.72rem;
    }
  
    .pt-price-table tbody td {
      padding: 4px;
      font-size: 0.72rem;
    }
  
    .pt-price-table thead .pt-th-date {
      font-size: 0.7rem;
    }
  
    .pt-price-table thead .pt-th-label {
      font-size: 0.62rem;
    }
  
    .pt-card-main-title {
      font-size: 1.15rem;
    }
  
    .pt-share-social-list {
      gap: 16px;
    }
  
    .pt-share-social-item img {
      width: 44px;
      height: 44px;
    }
  }
  