/* FireBot Reseller Portal (/reseller-portal/). Colors follow the site kit: accent #FFB905, dark #262729. */

/* Plain page with no Elementor banner: solid header, content pushed below it (same as the AffiliateWP pages). */
body.firebot-rp-page .hh { background: #000; }
body.firebot-rp-page .hh .img1 { display: none; }
body.firebot-rp-page .hh .img2 { display: block; }
body.firebot-rp-page #content { padding-top: 140px; padding-bottom: 80px; }
body.firebot-rp-page .page-header { display: none; }
@media (max-width: 767px) {
	body.firebot-rp-page #content { padding-top: 120px; padding-bottom: 60px; }
}

.firebot-rp { --rp-accent: #FFB905; --rp-dark: #262729; --rp-line: #e2e2e2; --rp-soft: #f7f7f7; --rp-err: #b32d2e;
	max-width: 1100px; margin: 0 auto; padding: 0 16px; color: var(--rp-dark); }
.firebot-rp p { opacity: 1; }
.firebot-rp h1, .firebot-rp h2, .firebot-rp h3 { color: var(--rp-dark); line-height: 1.2; }
.firebot-rp-title { font-size: 34px; margin: 0 0 20px; text-align: center; }

.firebot-rp-card { background: #fff; border: 1px solid var(--rp-line); border-radius: 14px; padding: 32px; margin: 0 0 24px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.firebot-rp-card h1, .firebot-rp-card h2 { margin-top: 0; }
.firebot-rp-narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .firebot-rp-card { padding: 22px 18px; } .firebot-rp-title { font-size: 26px; } }

/* Steps */
.firebot-rp-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 8px; counter-reset: none; }
.firebot-rp-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--rp-soft); opacity: .65; min-width: 0; }
.firebot-rp-steps li .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ddd; font-weight: 700; font-size: 14px; }
.firebot-rp-steps li .t { display: flex; flex-direction: column; min-width: 0; }
.firebot-rp-steps li strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.firebot-rp-steps li small { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.firebot-rp-steps li.current { opacity: 1; background: #fff7df; box-shadow: inset 0 0 0 2px var(--rp-accent); }
.firebot-rp-steps li.current .n { background: var(--rp-accent); }
.firebot-rp-steps li.done { opacity: 1; }
.firebot-rp-steps li.done .n { background: var(--rp-dark); color: #fff; font-size: 0; }
.firebot-rp-steps li.done .n::after { content: "\2713"; font-size: 14px; }
@media (max-width: 900px) {
	.firebot-rp-steps li .t small { display: none; }
}
@media (max-width: 700px) {
	.firebot-rp-steps li:not(.current) .t { display: none; }
	.firebot-rp-steps li:not(.current) { flex: none; }
}

/* Messages */
.firebot-rp-msg { padding: 14px 18px; border-radius: 10px; margin: 0 0 20px; border-left: 5px solid; background: var(--rp-soft); }
.firebot-rp-msg-error { border-color: var(--rp-err); background: #fcf0f1; }
.firebot-rp-msg-success { border-color: #2e7d32; background: #edf7ee; }
.firebot-rp-msg-info { border-color: var(--rp-accent); background: #fff7df; }

/* Forms */
.firebot-rp-form p { margin: 0 0 16px; }
.firebot-rp-form label, .firebot-rp-form .label { display: block; font-weight: 600; margin-bottom: 6px; }
.firebot-rp-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.firebot-rp-form label.check input { margin-top: 4px; flex: none; }
.firebot-rp-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .firebot-rp-form select, .firebot-rp-form textarea,
.firebot-rp #loginform input[type=text], .firebot-rp #loginform input[type=password] {
	width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 8px; font-size: 16px; background: #fff; color: var(--rp-dark); }
.firebot-rp-form input:focus, .firebot-rp-form select:focus, .firebot-rp #loginform input:focus { outline: 2px solid var(--rp-accent); outline-offset: 1px; border-color: var(--rp-accent); }
.firebot-rp-form .req { color: var(--rp-err); }
.firebot-rp-form .opt { font-weight: 400; opacity: .7; }
.firebot-rp-form .help { display: block; font-size: 14px; line-height: 1.45; opacity: .8; margin: 4px 0 6px; font-weight: 400; }
.firebot-rp-form .firebot-rp-invalid { border-color: var(--rp-err) !important; box-shadow: 0 0 0 1px var(--rp-err); }
.firebot-rp-form .firebot-rp-field-error { display: block; color: var(--rp-err); font-size: 14px; font-weight: 600; margin-top: 6px; }
.firebot-rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.firebot-rp-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .firebot-rp-grid { grid-template-columns: 1fr; } }
.firebot-rp-code { font-size: 24px !important; letter-spacing: .2em; text-align: center; max-width: 280px; }
.firebot-rp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.firebot-rp .button, .firebot-rp #loginform #wp-submit { display: inline-block; padding: 12px 28px; border-radius: 100px; border: 0; background: var(--rp-dark); color: #fff; font-size: 16px; cursor: pointer; text-decoration: none; line-height: 1.3; }
.firebot-rp .button:hover, .firebot-rp #loginform #wp-submit:hover { background: #000; color: #fff; }
.firebot-rp .firebot-rp-primary, .firebot-rp #loginform #wp-submit { background: var(--rp-accent); color: #000; font-weight: 600; }
.firebot-rp .firebot-rp-primary:hover, .firebot-rp #loginform #wp-submit:hover { background: var(--rp-dark); color: #fff; }
.firebot-rp .button[disabled] { opacity: .5; cursor: default; }
.firebot-rp-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.firebot-rp-linkbtn[disabled] { text-decoration: none; opacity: .6; cursor: default; }
.firebot-rp-links { font-size: 15px; }
.firebot-rp hr { border: 0; border-top: 1px solid var(--rp-line); margin: 24px 0; }
.firebot-rp #loginform p { margin: 0 0 16px; }
.firebot-rp #loginform label { display: block; font-weight: 600; margin-bottom: 6px; }
.firebot-rp #loginform .login-remember label { font-weight: 400; }

/* Agreement */
.firebot-rp-agreement { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.firebot-rp-agreement .doc iframe { width: 100%; height: 640px; border: 1px solid var(--rp-line); border-radius: 10px; background: var(--rp-soft); }
.firebot-rp-sign canvas { display: block; width: 100%; max-width: 560px; aspect-ratio: 560 / 160; height: auto; border: 2px dashed #c9c9c9; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.firebot-rp-sign canvas.has-sig { border-style: solid; border-color: var(--rp-dark); }
.firebot-rp-sign select { width: auto !important; margin-right: 8px; }
@media (max-width: 900px) {
	.firebot-rp-agreement { grid-template-columns: 1fr; }
	.firebot-rp-agreement .doc iframe { height: 460px; }
}

/* Kits */
.firebot-rp-kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.firebot-rp-kit { border: 1px solid var(--rp-line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.firebot-rp-kit .img img { width: 100%; height: auto; border-radius: 8px; }
.firebot-rp-kit h3 { margin: 0; font-size: 20px; }
.firebot-rp-kit .price { font-size: 26px; font-weight: 700; }
.firebot-rp-kit .desc { flex: 1; font-size: 15px; }
.firebot-rp-kit .button { align-self: flex-start; }

/* Portal (after sign-up) */
.firebot-rp-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.firebot-rp-head h1 { margin: 0; font-size: 32px; }
.firebot-rp-head p { margin: 0; }
.firebot-rp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; border-bottom: 2px solid var(--rp-line); }
.firebot-rp-tabs a { padding: 10px 16px; text-decoration: none; color: var(--rp-dark); border-radius: 8px 8px 0 0; margin-bottom: -2px; border-bottom: 3px solid transparent; font-weight: 600; }
.firebot-rp-tabs a:hover { background: var(--rp-soft); }
.firebot-rp-tabs a.active { border-bottom-color: var(--rp-accent); }
.firebot-rp-tabs a.cart { margin-left: auto; }
@media (max-width: 700px) {
	.firebot-rp-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.firebot-rp-tabs a { white-space: nowrap; padding: 10px 12px; }
}
.firebot-rp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.firebot-rp-tile { background: #fff; border: 1px solid var(--rp-line); border-radius: 14px; padding: 22px; }
.firebot-rp-tile h3 { margin: 0 0 10px; font-size: 18px; }
.firebot-rp-tile .big { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.firebot-rp-tile .big small { font-size: 15px; font-weight: 400; opacity: .7; }
.firebot-rp-tile .ok { color: #2e7d32; }
.firebot-rp-list { margin: 0 0 10px; padding-left: 18px; }
.firebot-rp-list li { margin-bottom: 6px; }
.firebot-rp-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #fff7df; border: 1px solid var(--rp-accent); white-space: nowrap; }
.firebot-rp-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.firebot-rp-table th, .firebot-rp-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rp-line); vertical-align: middle; }
.firebot-rp-table thead th { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.firebot-rp-table td.img { width: 64px; }
.firebot-rp-table td.img img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.firebot-rp-table input.qty { width: 90px !important; text-align: center; }
.firebot-rp-scroll { overflow-x: auto; }
@media (max-width: 640px) {
	.firebot-rp-order .firebot-rp-table thead { display: none; }
	.firebot-rp-order .firebot-rp-table tr { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--rp-line); }
	.firebot-rp-order .firebot-rp-table td { border: 0; padding: 0; }
	.firebot-rp-order .firebot-rp-table td.img { grid-row: span 2; }
	.firebot-rp-order .firebot-rp-table td:nth-child(3) { grid-column: 2; }
	.firebot-rp-order .firebot-rp-table td:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
.firebot-rp-order-summary { font-weight: 600; min-height: 1.5em; }
.firebot-rp-order-summary .warn { color: var(--rp-err); }
.firebot-rp-res-cat { margin: 28px 0 12px; font-size: 20px; }
.firebot-rp-res-cat:first-of-type { margin-top: 8px; }
.firebot-rp-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.firebot-rp-res-item { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--rp-dark); border: 1px solid var(--rp-line); border-radius: 12px; padding: 12px; background: #fff; transition: box-shadow .2s, transform .2s; }
.firebot-rp-res-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--rp-dark); }
.firebot-rp-res-item .thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--rp-soft); border-radius: 8px; overflow: hidden; }
.firebot-rp-res-item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.firebot-rp-res-item.video .thumb img { object-position: center; }
.firebot-rp-res-item .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.65); }
.firebot-rp-res-item .play::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.firebot-rp-res-item .title { font-weight: 700; line-height: 1.3; }
.firebot-rp-res-item .desc { font-size: 14px; opacity: .8; }
.firebot-rp-res-item .kind { font-size: 13px; font-weight: 600; margin-top: auto; text-decoration: underline; }
.firebot-rp-docs { padding-left: 18px; }
.firebot-rp-docs li { margin-bottom: 8px; }
.firebot-rp-missing { color: var(--rp-err); font-weight: 600; }
.firebot-rp-form label.sub { font-weight: 400; margin-top: 10px; font-size: 14px; }
.firebot-rp-form input[type=file] { display: block; margin-top: 4px; }
.firebot-rp-check { display: block; font-size: 14px; margin-top: 6px; font-weight: 600; }
.firebot-rp-check.ok { color: #2e7d32; }
.firebot-rp-check.bad { color: var(--rp-err); }

/* Link-style buttons ("send a new code", "Clear"): the site kit styles every <button> as a big yellow pill. */
body .firebot-rp button.firebot-rp-linkbtn,
body .firebot-rp button.firebot-rp-linkbtn:hover,
body .firebot-rp button.firebot-rp-linkbtn:focus {
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	padding: 0 !important; margin: 0 !important; color: inherit !important; font: inherit !important;
	text-decoration: underline !important; cursor: pointer; display: inline; line-height: inherit !important;
}
body .firebot-rp button.firebot-rp-linkbtn[disabled] { text-decoration: none !important; opacity: .6; cursor: default; }
