.pw-price-subscribe ins { text-decoration: none; }
.pw-price-subscribe del { opacity: .7; margin-right: 6px; }
.pw-price-subscribe .pw-save { opacity: .8; margin-left: 6px; }


/* Make Woo headings less shouty */
.woocommerce-account h2, .woocommerce-account h3 { margin-bottom: .75rem; }

/* Make product thumbnails consistent */
.pw-thumb img { border-radius: .5rem; }

/* Price display */
.pw-price-subscribe del { opacity: .6; margin-right: .35rem; }
.pw-price-subscribe ins { text-decoration: none; font-weight: 600; }
.pw-price-subscribe .pw-save { color: #6c757d; margin-left: .35rem; }

/* Removed items */
tr.pw-removed { opacity: .45; }

/* Row highlight animation — used when navigating from product page CTAs */
@keyframes pw-row-highlight { 0%,10%{background:#d9f7f3;} 100%{background:transparent;} }
tr.pw-highlight-row { animation: pw-row-highlight 2.5s ease-out; }

/* Totals spacing */
#pwSubTotals .d-flex { padding: .25rem 0; }


body.woocommerce-account table.shop_table th{
	border: none!important;
}

.pw-sub-hero {
  padding: 1.5rem 1rem 0.5rem;
}

.pw-sub-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.pw-sub-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.pw-sub-subtitle {
  color: #6c757d;
  font-size: 1rem;
}

.pw-sub-meta-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  height: 100%;
}

.pw-sub-meta-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.pw-sub-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}


.pw-manage-subscription .card{
	border:#efefef 1px solid!important;
}

.woocommerce table#pwSubItemsTable{
	border-collapse: collapse!important;
}

.woocommerce table#pwSubItemsTable .pw-save{
  display: block;
}

.card#one-off-delivery{
  background-color: #c97bb8!important;
  color: #ffffff;
}

.card#one-off-delivery h5,
.card#one-off-delivery p,
.card#one-off-delivery .text-muted{
  color: #ffffff!important;
}


.card#one-off-delivery legend{
  margin: 0;
  font-size:1em;
  font-weight: bold;
}

#pwEditRenewalDateBtn{
  color:#284241;
  text-decoration: underline!important;
}

/* ── Responsive: subscription items table ────────────────────────────────── */

/* 990px: stack rows as cards and hide Subtotal column */
@media (max-width: 990px) {

    #pwSubItemsTable th:nth-child(5),
    #pwSubItemsTable td.pw-subtotal {
        display: none;
    }

    /* Stack "Edit your subscription" heading and "Add to your subscription" button */
    .pw-sub-items-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Stop the table wrapper from enabling horizontal scroll */
    #pwSubEditForm .table-responsive {
        overflow-x: visible;
    }

    /* Hide column headers */
    #pwSubItemsTable thead {
        display: none !important;
    }

    /* Each row becomes a 2-column card: [thumbnail | stacked content] */
    #pwSubItemsTable tbody tr {
        display: grid !important;
        grid-template-columns: 68px 1fr;
        column-gap: 0.75rem;
        row-gap: 0.2rem;
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    #pwSubItemsTable tbody tr td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        align-self: start;
    }

    /* Thumbnail: column 1, spans all content rows */
    #pwSubItemsTable td.pw-thumb {
        grid-column: 1;
        grid-row: 1 / span 5;
    }

    /* All other cells stack in column 2 */
    #pwSubItemsTable td.pw-name,
    #pwSubItemsTable td.pw-price,
    #pwSubItemsTable td:nth-child(4),
    #pwSubItemsTable td.pw-subtotal,
    #pwSubItemsTable td:last-child {
        grid-column: 2;
    }

    #pwSubItemsTable td.pw-price {
        font-size: 0.9rem;
    }

    /* Actions cell: light divider above */
    #pwSubItemsTable td:last-child:not(:empty) {
        border-top: 1px solid #f0f0f0 !important;
        padding-top: 0.4rem !important;
    }

    /* Hide truly empty cells so they don't create dead grid rows */
    #pwSubItemsTable td:empty {
        display: none !important;
    }

    /* MNM child rows: visually nested beneath their container */
    #pwSubItemsTable tr.pw-mnm-child-row {
        background: #f8f9fa;
        margin-left: 0.75rem;
    }
}

.pw-edit-bundle{
    font-size: 0.9rem!important;
    border-radius: 20px!important;
}