.wh-ptm { margin: 12px 0; }
.wh-ptm-trailer { margin-bottom: 12px; }
.wh-ptm-title { font-size: 1.1rem; font-weight: 600; }
.wh-ptm-price, .wh-ptm-vin, .wh-ptm-stock, .wh-ptm-tax { font-size: .95rem; margin-top: 4px; }
.wh-ptm-button { display: inline-block; border: none; padding: 10px 14px; cursor: pointer; border-radius: 4px; }
.wh-ptm-button.disabled { opacity: .6; cursor: default; }
/* When button is h3 (inline mode) - not clickable */
h3.wh-ptm-button { margin: 0; padding: 0; font-size: 1.5rem; font-weight: 600; cursor: default; display: inline-block; border: none; background: transparent; }
h3.wh-ptm-button.disabled { opacity: .6; cursor: default; }
.wh-ptm-form { margin-top: 12px; }

/* Collapsible Sections */
.wh-ptm-section { margin-bottom: 20px; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; }
.wh-ptm-section-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #f8f9fa; border-bottom: 1px solid #dee2e6; cursor: default; transition: background 0.2s; }
.wh-ptm-section-header:hover { background: #f8f9fa; }
.wh-ptm-section-header:hover .wh-ptm-section-title { color: #007cba; }
.wh-ptm-saved-user-info { font-size: 14px !important; color: #6c757d !important; }
.wh-ptm-saved-name { font-weight: 500 !important; color: #212529 !important; }
.wh-ptm-not-you-link { color: #007cba !important; text-decoration: none !important; margin-left: 4px !important; }
.wh-ptm-not-you-link:hover { text-decoration: underline !important; }
.wh-ptm-section-title { margin: 0 !important; padding: 0 !important; font-size: 16px !important; font-weight: 600 !important; color: #212529 !important; line-height: 1.4 !important; }
.wh-ptm-section-toggle { color: #007cba; font-size: 14px !important; font-weight: 500 !important; display: none !important; }
.wh-ptm-section.wh-ptm-section-active .wh-ptm-section-toggle { display: block !important; }
.wh-ptm-section-header { cursor: default !important; }
.wh-ptm-section-back-link { color: #007cba !important; font-size: 14px !important; font-weight: 500 !important; text-decoration: none !important; cursor: pointer !important; display: none !important; }
.wh-ptm-section.wh-ptm-section-active .wh-ptm-section-back-link { display: block !important; }
.wh-ptm-section-back-link:hover { text-decoration: underline !important; }
.wh-ptm-section-title { cursor: pointer !important; }
.wh-ptm-section-content { display: none; padding: 20px; }
.wh-ptm-section-content.wh-ptm-section-active { display: block; }
.wh-ptm-section.wh-ptm-section-active .wh-ptm-section-content { display: block; }

/* Close button - using anchor with unique styling */
a.wh-ptm-close { 
    position: absolute !important; 
    top: 8px !important; 
    right: 10px !important; 
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 0 !important; 
    background: rgba(0, 0, 0, 0.1) !important; 
    font-size: 24px !important; 
    font-weight: 700 !important;
    color: #333 !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    z-index: 10000 !important;
    transition: background 0.2s, color 0.2s !important;
}
a.wh-ptm-close:hover { 
    background: rgba(0, 0, 0, 0.2) !important; 
    color: #000 !important;
    text-decoration: none !important;
}
a.wh-ptm-close:focus { 
    outline: 2px solid #007cba !important;
    outline-offset: 2px !important;
}
.wh-ptm-row { margin-bottom: 8px; }
.wh-ptm-row label { display: block; margin-bottom: 4px; }
.wh-ptm-row input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.wh-ptm-actions { margin-top: 10px; }
.wh-ptm-submit { background: #222; color: #fff; border: none; padding: 10px 14px; border-radius: 4px; cursor: pointer; }
.wh-ptm-message { margin-top: 10px; font-size: .95rem; }
.wh-ptm-message.ok { color: #1a7f37; }
.wh-ptm-message.err { color: #b91c1c; }
.wh-ptm-message.centered { text-align: center; }
.wh-ptm-message.centered h4 { margin: 10px 0; font-weight: 600; font-size: 20px; }
.wh-ptm-submitted {
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}
.wh-ptm-status-message {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
    font-size: 16px;
}
.wh-ptm-row.wh-ptm-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wh-ptm-row.wh-ptm-row--half .wh-ptm-col label { display: block; margin-bottom: 4px; }
.wh-ptm-row.wh-ptm-row--half .wh-ptm-col input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.wh-ptm-row.wh-ptm-row--city-state-zip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.wh-ptm-row.wh-ptm-row--city-state-zip .wh-ptm-col label { display: block; margin-bottom: 4px; }
.wh-ptm-row.wh-ptm-row--city-state-zip .wh-ptm-col input,
.wh-ptm-row.wh-ptm-row--city-state-zip .wh-ptm-col select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.wh-ptm-modal { position: fixed; inset: 0; display: none; z-index: 9999; overflow-y: auto; }
.wh-ptm-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.wh-ptm-modal-dialog { position: relative; width: min(560px, 92vw); margin: 40px auto; max-height: calc(100vh - 100px); overflow-y: auto; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wh-ptm-modal-header { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 16px 20px !important; border-bottom: 1px solid #dee2e6 !important; }
.wh-ptm-modal-title { font-size: 18px !important; font-weight: 600 !important; color: #212529 !important; margin: 0 !important; padding: 0 !important; padding-right: 70px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; flex: 1 !important; min-width: 0 !important; }
.wh-ptm-modal-body { padding: 16px; }
.wh-ptm-close { position: relative !important; top: auto !important; right: auto !important; display: block !important; width: 32px !important; height: 32px !important; line-height: 32px !important; text-align: center !important; text-decoration: none !important; border: 0 !important; background: rgba(0, 0, 0, 0.1) !important; font-size: 24px !important; font-weight: 700 !important; color: #333 !important; cursor: pointer !important; border-radius: 50% !important; z-index: 10000 !important; transition: background 0.2s, color 0.2s !important; }
.wh-ptm-close:hover { background: rgba(0, 0, 0, 0.2) !important; color: #000 !important; text-decoration: none !important; }
.wh-ptm-close:focus { outline: 2px solid #007cba !important; outline-offset: 2px !important; }

/* Payment section */
.wh-ptm-payment-section { margin: 20px 0; padding: 16px; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; }
.wh-ptm-payment-heading-wrapper { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 12px !important; margin-top: 8px !important; }
.wh-ptm-payment-breakdown { margin-bottom: 16px !important; }
.wh-ptm-payment-heading { font-size: 16px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; color: #495057 !important; margin: 0 !important; padding: 0 !important; }
.wh-ptm-test-mode-badge { display: inline-block !important; padding: 4px 8px !important; background: #ffc107 !important; color: #000 !important; font-size: 0.75rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; border-radius: 4px !important; margin: 0 !important; }
.wh-ptm-payment-amount { font-size: 1.5rem; font-weight: 700; color: #1a7f37; margin-bottom: 4px; }
.wh-ptm-payment-breakdown { font-size: 14px; color: #495057; margin-top: 8px; }
.wh-ptm-payment-line { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.wh-ptm-payment-line.wh-ptm-payment-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid #dee2e6; font-weight: 600; }
.wh-ptm-payment-label { color: #6c757d; font-size: 14px; }
.wh-ptm-payment-value { color: #212529; font-weight: 500; font-size: 14px; }
.wh-ptm-payment-total .wh-ptm-payment-label,
.wh-ptm-payment-total .wh-ptm-payment-value { font-size: 14px; font-weight: 700; color: #1a7f37; }

/* Address fields */
.wh-ptm-row select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; background: white; }
.wh-ptm-row input[type="text"]:focus,
.wh-ptm-row input[type="email"]:focus,
.wh-ptm-row input[type="tel"]:focus,
.wh-ptm-row select:focus { outline: none; border-color: #007cba; box-shadow: 0 0 0 1px #007cba; }

/* Select2 styling for state dropdown */
.wh-ptm-form .select2-container {
    width: 100% !important;
}
.wh-ptm-form .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.wh-ptm-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 8px;
    color: #32325d;
}
.wh-ptm-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 8px;
}
.wh-ptm-form .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Stripe payment container */
#wh-ptm-stripe-container { margin: 16px 0; }
#wh-ptm-stripe-container .stripe-payment-form { margin: 0; }

/* Shared action button - full width, centered text, dark color scheme */
.wh-ptm-action-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px !important;
    margin-top: 16px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: #6c757d !important; /* Dark grey when disabled */
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s, box-shadow 0.2s !important;
    font-size: 24px!important;
}
.wh-ptm-action-button:not(:disabled) {
    background: #000 !important; /* Black when enabled */
}
.wh-ptm-action-button:hover:not(:disabled) {
    background: #333 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Subtle drop shadow */
}
.wh-ptm-action-button:disabled {
    cursor: not-allowed !important;
    opacity: 1 !important; /* Keep full opacity, just different color */
}
#stripe-payment-submit,
#wh-checkout-submit {
    font-size: 24px!important;
}

/* Addons Section */
.wh-ptm-addons-list {
    margin-bottom: 16px;
}
.wh-ptm-addon-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}
.wh-ptm-addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wh-ptm-addon-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}
.wh-ptm-addon-checkbox-input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.wh-ptm-addon-name {
    font-weight: 500;
    font-size: 16px;
    color: #212529;
    padding-left: 10px;
}
.wh-ptm-addon-cost {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
}
.wh-ptm-addon-quantity {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}
.wh-ptm-addon-quantity label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}
.wh-ptm-addon-qty-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.wh-ptm-addons-total {
    font-size: 16px;
    font-weight: 600;
}

