/*
Theme Name: MADE-Developers
Theme URI: https://made-developers.com
Author: MADE-Developers
Author URI: https://made-developers.com
Description: Professional WordPress theme for selling and managing Electron desktop applications with WooCommerce and License Manager integration.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: made-developers
Domain Path: /languages

*/

html {
    min-height: 100%;
    margin-top: 0 !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.site-shell-offset {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}

img {
    max-width: 100%;
    height: auto;
}

.theme-section {
    padding: 3rem 1.5rem 5rem;
    background: #f8fafc;
}

.theme-container {
    max-width: 960px;
    margin: 0 auto;
}

.theme-container-wide {
    max-width: 1200px;
}

.theme-surface {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    padding: clamp(1.5rem, 4vw, 3rem);
}

.theme-title {
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.theme-entry + .theme-entry {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.theme-entry-title {
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.theme-entry-title a {
    color: inherit;
    text-decoration: none;
}

.theme-entry-title a:hover {
    color: #2563eb;
}

.theme-meta {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.theme-entry-content {
    color: #334155;
}

.theme-entry-content > * {
    max-width: 100%;
}

.theme-entry-content > *:last-child {
    margin-bottom: 0;
}

.theme-entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
    color: #2563eb;
}

.theme-entry-content a:not(.wp-block-button__link):not(.wp-element-button):hover {
    color: #1d4ed8;
}

.theme-entry-content h2,
.theme-entry-content h3,
.theme-entry-content h4,
.theme-entry-content h5,
.theme-entry-content h6 {
    margin: 1.5rem 0 0.75rem;
    color: #0f172a;
    line-height: 1.2;
}

.theme-entry-content p,
.theme-entry-content ul,
.theme-entry-content ol,
.theme-entry-content blockquote {
    margin: 0 0 1rem;
}

.theme-entry-content ul,
.theme-entry-content ol {
    margin-left: 1.5rem;
    padding-left: 1.25rem;
    list-style-position: outside;
}

.theme-entry-content ul {
    list-style: disc;
}

.theme-entry-content ol {
    list-style: decimal;
}

.theme-entry-content ul ul {
    list-style: circle;
}

.theme-entry-content ol ol {
    list-style: lower-alpha;
}

.theme-entry-content li {
    margin-bottom: 0.4rem;
}

.theme-entry-content ul ul,
.theme-entry-content ul ol,
.theme-entry-content ol ul,
.theme-entry-content ol ol {
    margin-top: 0.5rem;
    margin-left: 1.25rem;
}

.theme-entry-content blockquote {
    padding: 1rem 1.25rem;
    border-left: 4px solid #93c5fd;
    background: #eff6ff;
    color: #1e3a8a;
}

.theme-entry-content pre,
.theme-entry-content .wp-block-preformatted,
.theme-entry-content code,
.theme-entry-content kbd,
.theme-entry-content samp {
    font-family: Consolas, Monaco, monospace;
}

.theme-entry-content pre,
.theme-entry-content .wp-block-preformatted {
    overflow-x: auto;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    white-space: pre-wrap;
}

.theme-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
}

.theme-entry-content th,
.theme-entry-content td {
    padding: 0.75rem 0.9rem;
    border: 1px solid #dbe4f0;
    text-align: left;
    vertical-align: top;
}

.theme-entry-content figure,
.theme-entry-content .wp-block-image,
.theme-entry-content .wp-block-gallery,
.theme-entry-content .wp-block-group,
.theme-entry-content .wp-block-cover,
.theme-entry-content .wp-block-table {
    margin: 0 0 1.5rem;
}

.theme-entry-content .wp-block-image img,
.theme-entry-content .wp-block-cover img,
.theme-entry-content figure img {
    display: block;
}

.theme-entry-content input,
.theme-entry-content textarea,
.theme-entry-content select,
.theme-entry-content button {
    font: inherit;
}

.software-detail {
    display: grid;
    gap: 2rem;
}

.software-detail-media {
    max-width: 420px;
}

.software-detail-main-image-button {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.software-detail-main-image,
.software-detail-media img:not(.software-detail-modal__image) {
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    border: 1px solid #dbe4f0;
    object-fit: cover;
    background: #f8fafc;
}

.software-detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 420px;
}

.software-detail-gallery-thumb {
    padding: 0;
    border: 1px solid #dbe4f0;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.software-detail-gallery-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    background: none !important;
}

.software-detail-gallery-thumb:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
}

.software-detail-gallery-thumb.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.software-detail-modal[hidden] {
    display: none;
}

.software-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.software-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
}

/* Dialog is the constraining box */
.software-detail-modal__dialog {
    position: relative;
    z-index: 1;
    width: 80vw;
    height: 80vh;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image fills the entire dialog box; object-fit:contain handles any aspect ratio */
.software-detail-modal__image {
    display: block;
    width: 100%;
    height: calc(100% - 40px) !important;
    margin: 20px 0;
    object-fit: contain;
    background: #020617;
}

.software-detail-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-detail-modal__nav {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 3rem;
    width: 3rem;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.software-detail-modal__nav--prev {
    left: 0.75rem;
}

.software-detail-modal__nav--next {
    right: 0.75rem;
}

.software-detail-modal__nav:hover {
    background: rgba(30, 41, 59, 0.95);
}

@media (max-width: 782px) {
    .software-detail-modal {
        padding: 0.5rem;
    }

    .software-detail-modal__dialog {
        width: calc(100vw - 1rem);
        height: calc(100vh - 1rem);
        border-radius: 12px;
    }

    .software-detail-modal__image {
        width: 100%;
        height: 100% !important;
    }

    .software-detail-modal__nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .software-detail-modal__nav--prev {
        left: 0.5rem;
    }

    .software-detail-modal__nav--next {
        right: 0.5rem;
    }
}

.software-detail-summary {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.software-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.software-detail-price {
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
}

.software-detail-price span {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.software-detail-status,
.software-detail-note {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.software-detail-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.software-detail-note {
    background: #ecfdf5;
    color: #047857;
}

.software-detail-excerpt {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
}

.software-detail-content {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.software-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.software-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.9rem 1.4rem;
    border-radius: 0.85rem;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.software-detail-button:hover {
    background: #1d4ed8;
}

.software-detail-button.is-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.software-detail-button.is-secondary:hover {
    background: #cbd5e1;
}

@media (min-width: 960px) {
    .software-detail {
        grid-template-columns: minmax(240px, 0.68fr) minmax(420px, 1.32fr);
        align-items: start;
    }

    .software-detail-media {
        justify-self: start;
    }
}

.theme-pagination {
    margin-top: 2rem;
}

.theme-empty {
    margin: 0;
    color: #475569;
    text-align: center;
}

.theme-surface-woocommerce .woocommerce-breadcrumb {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.theme-surface-woocommerce .woocommerce-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.theme-surface-woocommerce .woocommerce-breadcrumb a:hover {
    color: #1d4ed8;
}

.theme-surface-woocommerce .woocommerce-notices-wrapper:empty {
    display: none;
}

.theme-surface-woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

.theme-surface-woocommerce .woocommerce-message,
.theme-surface-woocommerce .woocommerce-info,
.theme-surface-woocommerce .woocommerce-error {
    border-radius: 16px;
}

.theme-surface-woocommerce div.product {
    color: #334155;
}

.theme-surface-woocommerce div.product .product_title {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.1;
}

.theme-surface-woocommerce div.product p.price,
.theme-surface-woocommerce div.product span.price {
    color: #0f172a;
    font-weight: 800;
}

.theme-surface-woocommerce div.product .woocommerce-product-details__short-description,
.theme-surface-woocommerce div.product .product_meta,
.theme-surface-woocommerce .woocommerce-tabs,
.theme-surface-woocommerce .related,
.theme-surface-woocommerce .upsells {
    color: #334155;
}

.theme-surface-woocommerce .quantity .qty {
    min-height: 2.75rem;
}

.theme-surface-woocommerce.single-product .theme-surface,
.single-product .theme-surface-woocommerce {
    overflow: hidden;
}

.theme-surface-woocommerce ul.products {
    margin-top: 1.5rem;
}

.theme-surface-woocommerce .woocommerce-result-count,
.theme-surface-woocommerce .woocommerce-ordering {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .theme-section {
        padding: 2rem 1rem 4rem;
    }

    .theme-surface {
        border-radius: 20px;
    }
}

/* ===========================
   WooCommerce Shared UI
   =========================== */

.woocommerce form .form-row input,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border-color: #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .quantity input.qty:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: block;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    border-radius: 12px;
    padding: 16px 18px;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-notice--error,
.woocommerce ul.woocommerce-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
    border-radius: 12px;
    padding: 16px 18px;
}

.woocommerce ul.woocommerce-error {
    list-style: none;
    margin-bottom: 24px;
}

.woocommerce ul.woocommerce-error li + li {
    margin-top: 8px;
}

.woocommerce .star-rating {
    display: inline-flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 16px;
}

.woocommerce .star-rating span::before {
    color: #fbbf24;
    font-size: 16px;
}

.woocommerce .commentlist {
    list-style: none !important;
    padding: 0 !important;
}

.woocommerce .commentlist li {
    list-style: none !important;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: #3b82f6;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
    background: #10b981;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: #059669;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.22);
}

.woocommerce .quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce .quantity input.qty {
    width: 60px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ===========================
   WooCommerce Store Cards
   =========================== */

.post-type-archive-product .theme-surface-woocommerce,
.tax-product_cat .theme-surface-woocommerce,
.tax-product_tag .theme-surface-woocommerce {
    padding: 2rem;
    border-color: #d9e2ec;
}

.post-type-archive-product .woocommerce-products-header,
.tax-product_cat .woocommerce-products-header,
.tax-product_tag .woocommerce-products-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.post-type-archive-product .woocommerce-products-header__title,
.tax-product_cat .woocommerce-products-header__title,
.tax-product_tag .woocommerce-products-header__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.post-type-archive-product .term-description,
.tax-product_cat .term-description,
.tax-product_tag .term-description {
    margin-top: 0.75rem;
    color: #475569;
    max-width: 60ch;
}

.theme-surface-woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

.theme-surface-woocommerce .woocommerce-result-count,
.theme-surface-woocommerce .woocommerce-ordering {
    margin-bottom: 1.25rem;
}

.theme-surface-woocommerce .woocommerce-result-count {
    color: #64748b;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.theme-surface-woocommerce .woocommerce-ordering select {
    min-width: 210px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    padding: 0.7rem 2.25rem 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.theme-surface-woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.theme-surface-woocommerce ul.products::before,
.theme-surface-woocommerce ul.products::after {
    display: none;
}

.theme-surface-woocommerce ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #d7e0ea;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.theme-surface-woocommerce ul.products li.product > a {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1rem 0;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.theme-surface-woocommerce ul.products li.product:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.theme-surface-woocommerce ul.products li.product a img,
.theme-surface-woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    background: #f8fafc;
    margin: 0 !important;
    border: 1px solid #edf2f7;
}

.theme-surface-woocommerce ul.products li.product .onsale {
    top: 0.75rem !important;
    left: 0.75rem !important;
    right: auto !important;
    min-width: auto;
    min-height: auto;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border: none;
    border-radius: 0;
    background: #0f172a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.theme-surface-woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.theme-surface-woocommerce ul.products li.product .star-rating {
    margin: 0;
    font-size: 14px;
}

.theme-surface-woocommerce ul.products li.product .price {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.theme-surface-woocommerce ul.products li.product .price del {
    color: #94a3b8;
    opacity: 1;
    font-weight: 600;
    margin-right: 0.35rem;
}

.theme-surface-woocommerce ul.products li.product .price ins {
    color: #10b981;
    text-decoration: none;
}

.theme-surface-woocommerce ul.products li.product .button {
    width: calc(100% - 2rem);
    margin: auto 1rem 1rem;
    padding: 10px 14px;
    border-radius: 0;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.theme-surface-woocommerce ul.products li.product .added_to_cart {
    width: calc(100% - 2rem);
    margin: -0.4rem 1rem 1rem;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #10b981;
    border-radius: 0;
    background: #10b981;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-surface-woocommerce ul.products li.product .added_to_cart:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    transform: translateY(-1px);
}


.theme-surface-woocommerce nav.woocommerce-pagination {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.theme-surface-woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: none;
    padding: 0;
}

.theme-surface-woocommerce nav.woocommerce-pagination ul li {
    border: none;
    overflow: visible;
}

.theme-surface-woocommerce nav.woocommerce-pagination ul li a,
.theme-surface-woocommerce nav.woocommerce-pagination ul li span {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4f0;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

.theme-surface-woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.theme-surface-woocommerce nav.woocommerce-pagination ul li .current {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

@media (max-width: 782px) {
    .theme-surface-woocommerce .woocommerce-ordering,
    .theme-surface-woocommerce .woocommerce-result-count {
        float: none !important;
        width: 100%;
    }

    .theme-surface-woocommerce .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }

    .theme-surface-woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
}

/* ===========================
   WooCommerce Review Form
   =========================== */

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea,
.woocommerce-Reviews #respond input:not([type="submit"]),
.woocommerce-Reviews #respond textarea {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    font-size: 0.95rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
#respond textarea:focus,
.woocommerce-Reviews #respond input:not([type="submit"]):focus,
.woocommerce-Reviews #respond textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

/* ===========================
   Proceed to Checkout Button
   =========================== */

/* Classic cart shortcode */
.woocommerce a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 14px 24px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25) !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

.woocommerce a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3) !important;
    color: #fff !important;
}

/* Block-based cart (wp:woocommerce/cart) */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
    display: block !important;
    width: 100% !important;
    padding: 14px 24px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25) !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button:hover {
    background: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3) !important;
    color: #fff !important;
}

/* ===========================
   Place Order Button (Block Checkout)
   =========================== */

.wc-block-components-checkout-place-order-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 16px 28px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3) !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    letter-spacing: 0.01em !important;
}

.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__icon,
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__separator {
    display: none !important;
}

.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35) !important;
    color: #fff !important;
}

/* ===========================
   Offline Payment Instructions — Link as Pay Button
   =========================== */

/* Style any <a> inside the payment method description as a pay button.
   In WooCommerce admin → Payments → [Gateway] → Description, you can add:
   <a href="YOUR_PAYMENT_LINK">Pay via GCash / Maya</a>
*/
.wc-block-components-radio-control-accordion-content a,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 12px !important;
    padding: 12px 28px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.97rem !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3) !important;
    letter-spacing: 0.02em !important;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
}

.wc-block-components-radio-control-accordion-content a:hover,
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content a:hover {
    opacity: 0.92 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4) !important;
    color: #fff !important;
    text-decoration: none !important;
}

